Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1683 #1708

Closed
wants to merge 1,232 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
1232 commits
Select commit Hold shift + click to select a range
6a40a3e
Test case for #1467
sjinks Oct 28, 2013
44f7622
Fix #1466
sjinks Oct 28, 2013
9312edc
Merge pull request #1468 from sjinks/issue-1467
Oct 29, 2013
5752327
Merge pull request #1469 from sjinks/issue-1466
Oct 29, 2013
99caadf
Faster version of Phalcon\DI using object handlers
sjinks Oct 28, 2013
617911b
Deny serializaton
sjinks Oct 29, 2013
1e921fd
clone support
sjinks Oct 29, 2013
a5c1dc5
Tests
sjinks Oct 29, 2013
615f686
Throw exception on invalid method call
sjinks Oct 29, 2013
b01cf18
Fix test case for #1455
sjinks Oct 29, 2013
95b40dd
Fix #1470
sjinks Oct 28, 2013
41cd4d3
Merge pull request #1471 from sjinks/issue-1470
Oct 29, 2013
2c61853
Use FILEINFO_MIME_TYPE
dreamsxin Oct 30, 2013
75be9fc
Use FILEINFO_MIME_TYPE
dreamsxin Oct 30, 2013
f1df004
Updated
dreamsxin Oct 30, 2013
df5b93a
Merge pull request #1464 from dreamsxin/1462
Oct 30, 2013
6aef7a2
Merge pull request #1477 from dreamsxin/request_file
Oct 30, 2013
c4351e6
Merge pull request #1473 from sjinks/fastdi
Oct 30, 2013
85ceb1e
Forgot to implement offsetUnset()
sjinks Oct 30, 2013
abe148e
Fix #1485
sjinks Oct 30, 2013
97417ca
Merge pull request #1487 from sjinks/fastdi
Oct 30, 2013
899da2a
Merge pull request #1488 from sjinks/issue-1485
Oct 30, 2013
9e3bf7f
Fix #1486 for v1.3.0
dreamsxin Oct 31, 2013
b9e347a
Enable memcached.so
sjinks Oct 31, 2013
5c9c64b
Merge pull request #1492 from dreamsxin/bug_1486_1.3.0
niden Oct 31, 2013
7ba405d
Fix #1494
sjinks Oct 31, 2013
556c988
Fix Log Formatter getTypeString EMERGENCY bug
SamHennessy Oct 30, 2013
dfe768d
Test case
sjinks Oct 31, 2013
412258c
Merge pull request #1493 from sjinks/memcached
Nov 1, 2013
b5b622a
Merge pull request #1496 from sjinks/issue-1494
Nov 1, 2013
7437261
Merge pull request #1498 from sjinks/logger
Nov 1, 2013
b475730
Test case for #1501
sjinks Nov 1, 2013
742d94b
Fix #1501
sjinks Nov 1, 2013
38e7053
Merge pull request #1503 from sjinks/issue-1501
Nov 2, 2013
3f514e7
Test case for #1504
sjinks Nov 2, 2013
176dfdb
Fix #1504
sjinks Nov 2, 2013
ffa02c4
Implement #1495
sjinks Nov 2, 2013
b7f69e9
Test case for #1509
sjinks Nov 2, 2013
831b230
Fix #1509
sjinks Nov 2, 2013
dea1dc2
Merge pull request #1507 from sjinks/issue-1504
Nov 3, 2013
b41d846
Merge pull request #1508 from sjinks/issue-1495
Nov 3, 2013
fd90710
Merge pull request #1510 from sjinks/issue-1509
Nov 3, 2013
17ef5a9
emergence => emergency
sjinks Nov 3, 2013
502d4a0
Merge pull request #1512 from sjinks/logger
niden Nov 4, 2013
c3a10cf
Fix #1513 use zend_symtable_update instead of zend_hash_update
dreamsxin Nov 5, 2013
48aeb82
Updated
dreamsxin Nov 5, 2013
88789a3
Update file.c
xboston Nov 5, 2013
52219b4
typo
tmihalik Nov 5, 2013
4aa0b08
[NFR]When not found option renturn null
dreamsxin Nov 7, 2013
bd37dfa
[NFR]When not found option renturn null
dreamsxin Nov 7, 2013
8cb22ef
Merge pull request #1517 from dreamsxin/1513
Nov 7, 2013
af3f019
Merge pull request #1521 from xboston/patch-2
Nov 7, 2013
683683a
Merge pull request #1523 from tmihalik/1.3.0
Nov 7, 2013
56bce07
Merge pull request #1531 from dreamsxin/model_validator_1.3.0
Nov 8, 2013
88e6af7
Initialization order matters
sjinks Oct 24, 2013
007e97d
Assets\Filters\Cssmin should implement Assets\FilterInterface
sjinks Oct 24, 2013
6a3e00f
Assets\Filters\Jsmin should implement Assets\FilterInterface
sjinks Oct 24, 2013
50ede68
Updated README.md (#1525)
sjinks Nov 8, 2013
6fd612a
Merge pull request #1539 from sjinks/filterinterface
Nov 8, 2013
2f3ba60
Fix BUG #1536
dreamsxin Nov 11, 2013
beb8b47
Merge pull request #1544 from dreamsxin/1536
Nov 11, 2013
c24994c
Merge pull request #1519 from dreamsxin/selectWriteConnection
Nov 11, 2013
2249676
[#1548] Missing main/php_variables.h header breaks compilation on Win…
Nov 12, 2013
8d79278
Merge pull request #1551 from WooDzu/1.3.0-local-build
Nov 14, 2013
7aa4c2f
Test stubs for ViewSimple
Nov 16, 2013
45c2001
Update ViewSimpleTest.php
Nov 16, 2013
959fef2
Phalcon\Mvc\View\Simple::setViewsDir() should return self
Nov 17, 2013
c5d415e
Use setExpectedException method instead of annotation @expectedException
Nov 17, 2013
a59b1c2
Merge remote-tracking branch 'origin/1.3.0-tests-viewsimple' into 1.3…
Nov 17, 2013
ea5fa03
revert a59b1c2
Nov 17, 2013
e0dbfef
Stubs for Phalcon\Mvc\View
Nov 17, 2013
af6d168
Stubs for partials
Nov 17, 2013
be2596a
debug travis =]
Nov 17, 2013
d6c7104
possible solution for partial not seeing $this->view
Nov 17, 2013
61e7302
possible solution 2 for partial not seeing $this->view
Nov 17, 2013
053788d
Fix #1529
sjinks Nov 18, 2013
b466d75
Bug fix
sjinks Nov 18, 2013
5bc0558
Updated tests
sjinks Nov 18, 2013
0146540
Fix #1534
sjinks Nov 18, 2013
319bce9
Update mysql/phalcon_test.sql
sjinks Nov 18, 2013
e63f137
Test case for #1534
sjinks Nov 18, 2013
087116c
Update testDbMysql()
sjinks Nov 18, 2013
9d4aede
Merge pull request #1563 from WooDzu/1.3.0-tests-views
Nov 18, 2013
d43e90e
Merge pull request #1565 from sjinks/issue-1529
Nov 18, 2013
6589765
Merge pull request #1566 from sjinks/issue-1534
Nov 18, 2013
a2e0d6b
Changed indent style to tabs instead of spaces. Added license header
Nov 18, 2013
a4926b7
Changed indent style to tabs instead of spaces
Nov 18, 2013
b8ca50e
Fixed class name in setExpectedException
Nov 19, 2013
efc71c7
Merge pull request #1568 from WooDzu/1.3.0-tests-views-indents
Nov 20, 2013
43935f1
Updated pattern of Http\Request::getDigestAuth
dreamsxin Nov 20, 2013
7c4907e
Updated pattern of Http\Request::getDigestAuth
dreamsxin Nov 20, 2013
f8b238f
Merge pull request #1571 from dreamsxin/http_request_digest
Nov 20, 2013
caacb9d
Implement #1555
sjinks Nov 20, 2013
1bf7f07
Test case for #1555
sjinks Nov 20, 2013
524fa6b
Update README.md
sjinks Nov 20, 2013
f37aa44
Fix #1567
sjinks Nov 20, 2013
d80976d
Test case for #1567
sjinks Nov 20, 2013
34b0c56
Update test case for #1498
sjinks Nov 20, 2013
1007783
Merge pull request #1572 from sjinks/issue-1555
Nov 21, 2013
f39c582
Merge pull request #1573 from sjinks/patch-1
Nov 21, 2013
e796e0c
Merge pull request #1574 from sjinks/issue-1567
Nov 21, 2013
1d8d7a8
Implement #1575
sjinks Nov 22, 2013
920e9f2
Test case for #1575
sjinks Nov 22, 2013
442665f
Merge pull request #1581 from sjinks/issue-1575
Nov 22, 2013
ccb33e4
Tests for ViewCache
Nov 23, 2013
f6a0cb2
RequestTest::testIssues1442 requires fileinfo extension, skip if not …
Nov 23, 2013
e4a21f1
Fix: Windows test fails due to UNIX-style line ends
Nov 23, 2013
1e4c12d
Fix doc in Phalcon\Mvc\ModuleDefinitionInterface
endeveit Nov 23, 2013
1fd5516
Fix: Windows test fails due to expected UNIX-style line ends
Nov 23, 2013
fed0c41
I'd rather not use symlinks. They make testing on windows even more d…
Nov 23, 2013
3d7227e
Symbolic link to be removed
Nov 23, 2013
c942a7b
Symbolic link replaced with file
Nov 23, 2013
6021ffc
Note in Readme file about testing on Windows
Nov 23, 2013
bab72c6
Symbolic link to be removed
Nov 23, 2013
e575752
Windows test fails due to expected UNIX-style line ends
Nov 23, 2013
69a9c02
Symbolic link replaced with file
Nov 23, 2013
e6fada1
CryptTest cases require mcrypt extension
Nov 23, 2013
63fe666
oops... Wrong extension name
Nov 23, 2013
104fc59
Statement incorrectly assumes that trailing DS from user always equal…
Nov 24, 2013
b25cb10
Fix #1532 Add Phalcon\Assets\Collection::setTargetLocal
dreamsxin Nov 25, 2013
58ddbf4
Merge pull request #1586 from endeveit/1.3.0
Nov 25, 2013
38842e5
Merge pull request #1588 from WooDzu/1.3.0-unit-tests
Nov 25, 2013
b67009d
Merge pull request #1591 from WooDzu/1.3.0-loader-paths
Nov 25, 2013
cc0e879
Merge pull request #1593 from dreamsxin/issue_1532
Nov 25, 2013
f6c6738
Testing issue 1527
Nov 25, 2013
9af2787
Merge remote-tracking branch 'remotes/upstream/1.3.0' into 1.3.0-test…
Nov 25, 2013
97fd2f3
Suppress output from $view->partial()
Nov 25, 2013
9388b10
Merge pull request #1560 from WooDzu/1.3.0-tests-viewsimple
Nov 26, 2013
1e53e53
Backport #1506 from 1.2.5
sjinks Nov 26, 2013
c57fdd4
Merge pull request #1604 from sjinks/issue-1506
Nov 27, 2013
ddf9048
phalcon_dump_current_frame() to debug memory frames
sjinks Nov 28, 2013
f994a3c
zim_Phalcon_Cache_Backend_Memory_get() should update _lastKey
sjinks Nov 28, 2013
428284a
Test case for #1607
sjinks Nov 28, 2013
f2a3d0b
Fix #1607
sjinks Nov 28, 2013
3f5dd6a
Merge pull request #1600 from WooDzu/1.3.0-issue-1527
Nov 28, 2013
d14ea1f
Merge pull request #1611 from sjinks/issue-1607
Nov 28, 2013
f166604
Revert #1600 temporarily
sjinks Nov 28, 2013
d886494
Merge pull request #1614 from sjinks/revert-1600
Nov 29, 2013
dc33da3
Phalcon\Mvc\Model\Row using object handlers
sjinks Nov 27, 2013
78ab6b8
Phalcon\Mvc\Model\Row using object handlers
sjinks Nov 27, 2013
8f96abb
Disallow to override superglobals
sjinks Nov 29, 2013
f65e239
Merge pull request #1606 from sjinks/fast-row
Nov 29, 2013
bbff6d5
Test case for #1617
sjinks Nov 30, 2013
43a8031
Install beanstalkd
sjinks Nov 30, 2013
ce77b38
Be less verbose
sjinks Nov 30, 2013
3883b2b
Unit test for Beanstalk
sjinks Nov 30, 2013
32e82db
Method name bug fix
sjinks Nov 30, 2013
2dfe548
Updated test
sjinks Nov 30, 2013
701e365
Use native functions; fix #1612; fix #1348
sjinks Nov 30, 2013
720344b
Merge pull request #1618 from sjinks/beanstalk
Nov 30, 2013
9be0cfb
Test case for #1480
sjinks Dec 1, 2013
02fde4f
Fix #1480
sjinks Dec 1, 2013
5d137d9
Regenerated parsers
sjinks Dec 1, 2013
d931cf8
Merge pull request #1621 from sjinks/beanstalk
Dec 2, 2013
908d03f
Merge pull request #1617 from sjinks/view-superglobals
Dec 2, 2013
fa4b0d3
Merge pull request #1623 from sjinks/issue-1480
Dec 2, 2013
255094b
Fix phalcon/docs#263
sjinks Dec 2, 2013
d8ff5b3
Merge pull request #1626 from sjinks/1.3.0
Dec 2, 2013
7f10fbb
Optimize Phalcon\Paginator\Adapter\QueryBuilder
sjinks Dec 3, 2013
5b5ecce
Make sure that the 'limit' is positive
sjinks Dec 4, 2013
2e520f9
return ;
sjinks Dec 4, 2013
9634e93
Safer job unserialization
sjinks Dec 4, 2013
162b4e0
Test case
sjinks Dec 4, 2013
395b895
Safe serialization/unserialization
sjinks Dec 4, 2013
4311f65
Test case
sjinks Dec 4, 2013
6f4b3db
Merge pull request #1632 from sjinks/paginator_builder
Dec 4, 2013
f9c9110
Merge pull request #1633 from sjinks/setcurrentpage
Dec 4, 2013
fab567a
Merge pull request #1634 from sjinks/beanstalk-job
Dec 4, 2013
b6e3e90
Test case for #1637
sjinks Dec 5, 2013
4807e84
Use zend_update_property for dynamic properties
sjinks Dec 5, 2013
11001ae
Phalcon\Session\Bag fixes
sjinks Dec 5, 2013
863089c
Fix compilation error under NTS
sjinks Dec 5, 2013
f1b0d5a
Merge pull request #1635 from sjinks/beanstalk-queue
Dec 5, 2013
c513fe3
Merge pull request #1639 from sjinks/issue-1637
Dec 5, 2013
f535d6e
Merge pull request #1641 from sjinks/1.3.0
Dec 5, 2013
8503ddf
Optimized Phalcon\Paginator\Adapter\NativeArray
sjinks Dec 7, 2013
315a26f
Fix #1654
sjinks Dec 8, 2013
84374c0
Test case for #1654
sjinks Dec 8, 2013
fbe6d24
Use native iterators for Phalcon\Validation\Message\Group
sjinks Dec 9, 2013
c55ac8f
Test case
sjinks Dec 9, 2013
6c3a724
Merge pull request #1653 from sjinks/native-array
Dec 9, 2013
1b083cf
Merge pull request #1655 from sjinks/issue-1654
Dec 9, 2013
e94bfed
Merge pull request #1657 from sjinks/group_iterator
Dec 9, 2013
1e4c5f5
Updated CHANGELOG
sjinks Dec 10, 2013
133aa32
Merge pull request #1660 from sjinks/1.3.0
Dec 10, 2013
4a6a95b
Phalcon\Image\GD::crop
dreamsxin Dec 11, 2013
9241407
Faster Phalcon\Translate implementation
sjinks Dec 11, 2013
7017965
Unit test
sjinks Dec 11, 2013
2c6b895
Updated changelog
sjinks Dec 11, 2013
b6afab8
Phalcon\Queue\Beanstalk enhancements
sjinks Dec 6, 2013
938b934
Updated tests
sjinks Dec 6, 2013
113aaef
Updated changelog [ci skip]
sjinks Dec 11, 2013
a9df67a
Added Phalcon\Forms\Element\Radio
sjinks Dec 11, 2013
8614000
Updated changelog
sjinks Dec 11, 2013
771630e
Test for #1646
sjinks Dec 11, 2013
fa4aa64
Fix #1556
sjinks Dec 11, 2013
136bd3c
Test for #1556
sjinks Dec 11, 2013
3f67da4
Updated changelog
sjinks Dec 11, 2013
33666e0
Map Phalcon\Db\FETCH_XXX constants to PDO::FETCH_XXX
sjinks Dec 11, 2013
72072ce
Updated changelog [ci skip]
sjinks Dec 11, 2013
d21bbf9
Regenerating build [ci skip]
andresgutierrez Dec 11, 2013
056440f
Merge pull request #1665 from dreamsxin/1663_1.3.0
Dec 11, 2013
9af252e
Merge pull request #1650 from sjinks/beanstalk
Dec 11, 2013
6950c44
Merge pull request #1668 from sjinks/translate
Dec 11, 2013
f26d0cd
Merge pull request #1671 from sjinks/issue-1646
Dec 11, 2013
803ee9a
Merge pull request #1672 from sjinks/issue-1556
Dec 11, 2013
6f1a112
Merge pull request #1674 from sjinks/issue-1642
Dec 11, 2013
14283ed
Regenerated build/
sjinks Dec 12, 2013
76923e6
fixing a type, and finishing a sentance from @ritter
xboston Dec 13, 2013
af105b8
#1642: use fetchAll() instead of fetch() in Phalcon\Db\Adapter::fetch…
sjinks Dec 13, 2013
d5c13e3
Phalcon\Db optimization
sjinks Dec 13, 2013
4bb5ebf
Fix #1664
sjinks Dec 13, 2013
6ad22c0
Test case for #1664
sjinks Dec 13, 2013
dbd24cb
Updated CHANGELOG
sjinks Dec 13, 2013
2b76dd2
Fix #1690
dreamsxin Dec 14, 2013
61dc60c
Fix #1690 Updated
dreamsxin Dec 14, 2013
526c25c
Updated ConfigTest.php
dreamsxin Dec 14, 2013
bcafd4d
Fix #1679 add param local for Phalcon\Tag::linkTo
dreamsxin Dec 14, 2013
327432c
Fix #1679 Updated TagTest.php
dreamsxin Dec 14, 2013
e6ff10d
Updated
dreamsxin Dec 14, 2013
68d2584
Phalcon\Db\Adapter optimization
sjinks Dec 13, 2013
f380854
Phalcon\Db\Index optimization
sjinks Dec 13, 2013
7befb74
Phalcon\Db\Profiler optimization
sjinks Dec 13, 2013
bc09fe0
Phalcon\Db\Reference optimization
sjinks Dec 13, 2013
a98f244
Phalcon\Db\Result\Pdo optimization
sjinks Dec 13, 2013
dbd99a5
Updated CHANGELOG
sjinks Dec 14, 2013
b0a9a22
Fix #1695
sjinks Dec 15, 2013
5c42f4d
Updated CHANGELOG
sjinks Dec 15, 2013
3788fe0
MySQL dialect: INT(0) => INT
sjinks Dec 15, 2013
732b470
Test case for #1695
sjinks Dec 15, 2013
f67e5e1
Updated CHANGELOG
sjinks Dec 15, 2013
00444fd
Merge pull request #1680 from sjinks/1.3.0
Dec 15, 2013
a32e4f7
Merge pull request #1685 from xboston/patch-3
Dec 15, 2013
b71b63d
Merge pull request #1686 from sjinks/issue-1642
Dec 15, 2013
522d315
Merge pull request #1689 from sjinks/issue-1664
Dec 15, 2013
d112b57
Merge pull request #1691 from dreamsxin/bug_1690p
Dec 15, 2013
9ace2b9
Merge pull request #1692 from dreamsxin/1679
Dec 15, 2013
1f30f48
Merge pull request #1693 from sjinks/db-opt
Dec 15, 2013
58646ee
Merge pull request #1699 from sjinks/issue-1695
Dec 15, 2013
9ef4ef5
getRewriteUri() optimization
sjinks Dec 14, 2013
6e10e72
setDefaults() optimization
sjinks Dec 14, 2013
7fef94e
handle() optimization
sjinks Dec 14, 2013
24fc15b
addXXX() optimization
sjinks Dec 14, 2013
fa0107d
getRouteByXXX() optimization
sjinks Dec 14, 2013
126a451
Fix #1688
sjinks Dec 14, 2013
c059664
Test case for #1688
sjinks Dec 14, 2013
5dbf041
Updated CHANGELOG
sjinks Dec 14, 2013
f3808d7
Merge pull request #1694 from sjinks/router
Dec 15, 2013
d46c678
Fix bug #1683
dreamsxin Dec 17, 2013
a7f96d3
Fix bug #1683
dreamsxin Dec 17, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use FILEINFO_MIME_TYPE
  • Loading branch information
dreamsxin committed Oct 30, 2013
commit 2c6185304654050951f6031319f503510516901a
24 changes: 2 additions & 22 deletions ext/http/request/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ PHP_METHOD(Phalcon_Http_Request_File, getRealType){
}

PHALCON_INIT_VAR(constant);
if (!zend_get_constant(SL("FILEINFO_MIME"), constant TSRMLS_CC)) {
if (!zend_get_constant(SL("FILEINFO_MIME_TYPE"), constant TSRMLS_CC)) {
RETURN_MM_NULL();
}

Expand All @@ -221,27 +221,7 @@ PHP_METHOD(Phalcon_Http_Request_File, getRealType){
phalcon_call_func_p2(mime, "finfo_file", finfo, temp_file);
phalcon_call_func_p1_noret("finfo_close", finfo);

if (Z_TYPE_P(mime) != IS_STRING) {
RETURN_MM_NULL();
}

PHALCON_INIT_VAR(pattern);
ZVAL_STRING(pattern, "#^([a-z\\-]+\\/[a-z0-9\\-\\.\\+]+)(;\\s.+)?$#", 1);

PHALCON_INIT_VAR(matches);
PHALCON_INIT_VAR(ret);
phalcon_preg_match(ret, &ret, pattern, mime, matches TSRMLS_CC);

if (zend_is_true(ret) && phalcon_array_isset_long(matches, 1)) {
PHALCON_OBS_NVAR(ret);
phalcon_array_fetch_long(&ret, matches, 1, PH_NOISY);

phalcon_update_property_this(this_ptr, SL("_real_type"), ret TSRMLS_CC);

RETURN_CTOR(ret);
}

RETURN_MM_NULL();
RETURN_CTOR(ret);
}

/**
Expand Down
53 changes: 53 additions & 0 deletions ext/mvc/collection.c
Original file line number Diff line number Diff line change
Expand Up @@ -2109,3 +2109,56 @@ PHP_METHOD(Phalcon_Mvc_Collection, unserialize){
return;
}

/**
* Runs JavaScript code on the database server.
*
* <code>
*
* $ret = Robots::execute("function() { return 'Hello, world!';}");
* echo $ret['retval'], "\n";
*
* </code>
*
* @param mixed $code
* @param array $args
* @return array
*/
PHP_METHOD(Phalcon_Mvc_Collection, execute){

zval *parameters = NULL, *class_name, *collection, *connection;
zval *unique;
zend_class_entry *ce0;

PHALCON_MM_GROW();

phalcon_fetch_params(1, 0, 1, &parameters);

if (!parameters) {
parameters = PHALCON_GLOBAL(z_null);
}

if (Z_TYPE_P(parameters) != IS_NULL) {
if (Z_TYPE_P(parameters) != IS_ARRAY) {
PHALCON_THROW_EXCEPTION_STR(phalcon_mvc_collection_exception_ce, "Invalid parameters for findFirst");
return;
}
}

PHALCON_INIT_VAR(class_name);
phalcon_get_called_class(class_name TSRMLS_CC);
ce0 = phalcon_fetch_class(class_name TSRMLS_CC);

PHALCON_INIT_VAR(collection);
object_init_ex(collection, ce0);
if (phalcon_has_constructor(collection TSRMLS_CC)) {
phalcon_call_method_noret(collection, "__construct");
}

PHALCON_INIT_VAR(connection);
phalcon_call_method(connection, collection, "getconnection");

unique = PHALCON_GLOBAL(z_true);
phalcon_call_self_p4(return_value, this_ptr, "_getresultset", parameters, collection, connection, unique);
RETURN_MM();
}

7 changes: 7 additions & 0 deletions ext/mvc/collection.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ PHP_METHOD(Phalcon_Mvc_Collection, delete);
PHP_METHOD(Phalcon_Mvc_Collection, toArray);
PHP_METHOD(Phalcon_Mvc_Collection, serialize);
PHP_METHOD(Phalcon_Mvc_Collection, unserialize);
PHP_METHOD(Phalcon_Mvc_Collection, execute);

ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection___construct, 0, 0, 0)
ZEND_ARG_INFO(0, dependencyInjector)
Expand Down Expand Up @@ -137,6 +138,11 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_unserialize, 0, 0, 1)
ZEND_ARG_INFO(0, data)
ZEND_END_ARG_INFO()

ZEND_BEGIN_ARG_INFO_EX(arginfo_phalcon_mvc_collection_execute, 0, 0, 1)
ZEND_ARG_INFO(0, code)
ZEND_ARG_INFO(0, args)
ZEND_END_ARG_INFO()

PHALCON_INIT_FUNCS(phalcon_mvc_collection_method_entry){
PHP_ME(Phalcon_Mvc_Collection, __construct, arginfo_phalcon_mvc_collection___construct, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL|ZEND_ACC_CTOR)
PHP_ME(Phalcon_Mvc_Collection, setId, arginfo_phalcon_mvc_collection_setid, ZEND_ACC_PUBLIC)
Expand Down Expand Up @@ -179,6 +185,7 @@ PHALCON_INIT_FUNCS(phalcon_mvc_collection_method_entry){
PHP_ME(Phalcon_Mvc_Collection, toArray, NULL, ZEND_ACC_PUBLIC)
PHP_ME(Phalcon_Mvc_Collection, serialize, NULL, ZEND_ACC_PUBLIC)
PHP_ME(Phalcon_Mvc_Collection, unserialize, arginfo_phalcon_mvc_collection_unserialize, ZEND_ACC_PUBLIC)
PHP_ME(Phalcon_Mvc_Collection, execute, arginfo_phalcon_mvc_collection_execute, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
PHP_FE_END
};