summaryrefslogtreecommitdiff
path: root/Zend/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fixed bug #67368 (Memory leak with immediately dereferenced array in class ↵Xinchen Hui2014-06-241-0/+12
| | | | constant)
* testcase for 67468 (only for debug build, as I could not create a stable ↵Ferenc Kovacs2014-06-231-0/+11
| | | | segfault without loading other exts like pgsql)
* Merge branch 'PHP-5.5' into PHP-5.6Bob Weinand2014-06-165-0/+73
|\
| * Merge branch 'PHP-5.4' into PHP-5.5Bob Weinand2014-06-165-0/+73
| |\
| | * Added tests for bug 67436Levi Morrison2014-06-155-0/+73
| | |
| | * Fix bug 666222Levi Morrison2014-06-081-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | This also adds some smaller, isolated tests related to bug 66622. Conflicts: Zend/zend_vm_def.h Zend/zend_vm_execute.h
* | | Bug 64744Boro Sitnikovski2014-06-081-1/+1
| | | | | | | | | | | | Show the type of the non-object for more descriptive errors
* | | Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2014-06-089-0/+209
|\ \ \ | |/ / | | | | | | | | | | | | * PHP-5.5: Fix bug 666222 Fix bug 666222
| * | Fix bug 666222Levi Morrison2014-06-089-0/+209
| | | | | | | | | | | | This also adds some smaller, isolated tests related to bug 66622.
* | | Fixed bug #67169: []= after_array_splice incorrectNikita Popov2014-05-021-0/+26
| | | | | | | | | | | | This fixes a regression I introduced in beta 1.
* | | Merge branch 'PHP-5.5' into PHP-5.6Anatol Belski2014-04-181-4/+4
|\ \ \ | |/ / | | | | | | | | | | | | * PHP-5.5: refixed the test related to bug #67072 Improved the fix for bug #67072, thanks Nikita
| * | refixed the test related to bug #67072Anatol Belski2014-04-181-4/+4
| | |
* | | Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2014-04-171-3/+2
|\ \ \ | |/ / | | | | | | | | | * PHP-5.5: Fixed test case for 5328d42
| * | Fixed test case for 5328d42Tjerk Meesters2014-04-171-3/+2
| | |
* | | Fix bug #66660: use str_efree instead of efree to handle interned empty ↵Ferenc Kovacs2014-04-131-0/+13
| | | | | | | | | | | | strings correctly
* | | Fixed disallowal of array usage in constants at run-timeBob Weinand2014-04-113-8/+7
| | | | | | | | | | | | | | | Added at the same time the possibility of array dereferencing to complete the set of features (useful application of arrays in constants)
* | | Fix bug #66015 by reverting "Removed operations on constant arrays."Bob Weinand2014-04-113-0/+36
| | |
* | | Allow T_POW in constant expressionsTjerk Meesters2014-03-071-0/+5
| | |
* | | Disallow use of positional args after unpackingNikita Popov2014-02-269-105/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit disallows the use of trailing positional arguments after argument unpacking was used. The following calls are no longer valid: fn(...$array, $var); fn(...$array1, $var, ...$array2); However, all of the following continue to be valid: fn($var, ...$array); fn(...$array1, ...$array2); fn($var, ...$array1, ...$array2); The reason behind this change is a stack allocation issue pointed out by Dmitry: As of PHP 5.5 the stack necessary for pushing arguments is precomputed and preallocated, as such the individual SEND opcodes no longer verify that there is enough stack space. The unpacked arguments will occupy some of that preallocated space and as such following positional arguments could write past a stack page boundary. An alternative resolution for this issue is to ensure that there is enough space for the remaining arguments in the UNPACK opcode. However making this allocation precise (rather than using a conversative over-estimate) would require some effort. Given that this particular aspect of the feature wasn't very popular in the first place, it doesn't seem worth the effort.
* | | fixed path separator in the testsAnatol Belski2014-02-2110-10/+10
| | |
* | | Add more tests for __debugInfo() and fix leakSara Golemon2014-02-2011-2/+205
| | |
* | | Add __debugInfo() magic methodSara Golemon2014-02-171-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | class Foo { private $val = 'Random, meaningless data'; public function count() { return 42; } public function __debugInfo() { return ['count' => $this->count()]; } } $f = new Foo; var_dump($f);
* | | Fix argument unpacking across stack pagesNikita Popov2014-01-181-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | If multiple unpacks were used (or mixed with normal arguments) parts of the arguments could land on different stack pages. If this occurs the arguments will now be copied to a new stack page. The code used to do this is copied verbatim from the PHP 5.4 branch and only modified to reduce the amount of inlined code.
* | | Implement argument unpackingNikita Popov2014-01-1110-0/+573
| | | | | | | | | | | | RFC: https://wiki.php.net/rfc/argument_unpacking
* | | Merge branch 'PHP-5.5' into PHP-5.6Nikita Popov2014-01-041-0/+26
|\ \ \ | |/ /
| * | Merge branch 'PHP-5.4' into PHP-5.5Nikita Popov2014-01-041-0/+26
| |\ \ | | |/
| | * Fix bug #66286: Incorrect object comparison with inheritanceNikita Popov2014-01-041-0/+26
| | | | | | | | | | | | | | | | | | | | | std_compare_objects immidiately returned 0 if the property tables of both objects contain NULL at some index. Thus it would report objects as equal even though properties following after that differ.
* | | Merge branch 'PHP-5.6' of https://git.php.net/push/php-src into PHP-5.6Xinchen Hui2013-12-1568-3/+1230
|\ \ \ | |/ / |/| |
| * | Fixed bug #65784 (Segfault with finally).Xinchen Hui2013-12-135-0/+117
| | |
| * | Added one more test for constant scalar expressionsBob Weinand2013-12-111-0/+43
| | |
| * | Merge branch 'PHP-5.5' into PHP-5.6Remi Collet2013-12-101-0/+21
| |\ \ | | | | | | | | | | | | | | | | | | | | * PHP-5.5: NEWS Fixed Bug #66218 zend_register_functions breaks reflection
| * | | Fixed bug #66252 (Problems in AST evaluation invalidating valid parent:: ↵Dmitry Stogov2013-12-101-0/+14
| | | | | | | | | | | | | | | | reference. Constant expessions have to be evaluated in context of defining class).
| * | | Merge branch 'use-function' of git://github.com/igorw/php-src into ↵Ferenc Kovacs2013-12-0634-0/+530
| |\ \ \ | | | | | | | | | | | | | | | igorw-use-function
| | * \ \ Merge remote-tracking branch 'upstream/PHP-5.6' into use-functionIgor Wiedler2013-11-0823-10/+543
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/PHP-5.6: (399 commits) Fixed issue #115 (path issue when using phar). Fixed issue #149 (Phar mount points not working with OPcache enabled). Added tests for PHAR/OPCahce incompatibilities Update NEWS Fixed bug #65947 (basename is no more working after fgetcsv in certain situation) Update NEWS Fixed Bug #66043 (Segfault calling bind_param() on mysqli) NEWS entry NEWS entry Fix bug #65946 - pdo_sql_parser.c permanently converts values bound to strings bump API versions Add a couple more test cases to parse_url() tests fix missing change from 'tcp_socket' to the more common 'server' fix many parallel test issues Cleanup temp test file Revert "Fixed issue #115 (path issue when using phar)." Update LiteSpeed SAPI code to V6.4 Fixed typo in Makefile.frag updated NEWS Remove outdate codes, make it clearer, although just a bit.. Update NEWS ... Conflicts: Zend/zend_compile.h
| | * | | | Clarify type of use in error messagesIgor Wiedler2013-10-143-3/+3
| | | | | |
| | * | | | Add "Done" output to distinguish hard from soft failuresIgor Wiedler2013-10-142-0/+8
| | | | | |
| | * | | | Fix issue with global fallback when not in global spaceAnthony Ferrara2013-08-301-0/+18
| | | | | |
| | * | | | Add test for conditional function declarationIgor Wiedler2013-08-291-0/+17
| | | | | |
| | * | | | Handle case sensivity of constants (nikic)Igor Wiedler2013-08-252-0/+25
| | | | | |
| | * | | | self and parent are valid function and const names (nikic)Igor Wiedler2013-08-252-0/+24
| | | | | |
| | * | | | Adjust some test names, remove obsolete and duplicate tests (nikic)Igor Wiedler2013-08-254-39/+2
| | | | | |
| | * | | | Disallow using functions/consts defined in the same fileIgor Wiedler2013-08-2514-55/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Keep track of defined function and const filenames * Prohibit use function foo if function foo exists * Prohibit use const foo if const foo exists
| | * | | | Add test cases for conflicting use and definition in same ns (stas)Igor Wiedler2013-08-236-46/+56
| | | | | |
| | * | | | More test cases for conflicting aliasesIgor Wiedler2013-08-222-0/+41
| | | | | |
| | * | | | Add test case for conflicting use and use function alias (stas)Igor Wiedler2013-08-221-0/+20
| | | | | |
| | * | | | Import namespaced constants via new 'use const' sequenceIgor Wiedler2013-08-229-0/+197
| | | | | |
| | * | | | Correctly distinguish between functions and constantsIgor Wiedler2013-08-221-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So far 'use function' applied to both constants and functions. This patch correctly separates the two.
| | * | | | Add new 'use function' sequence for importing namespaced functionsIgor Wiedler2013-08-227-0/+182
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is specified as the use_function RFC: * https://wiki.php.net/rfc/use_function
| * | | | | Merge branch 'PHP-5.5' into PHP-5.6Nikita Popov2013-12-012-0/+4
| |\ \ \ \ \
| * \ \ \ \ \ Merge branch 'PHP-5.5' into PHP-5.6Nikita Popov2013-11-301-0/+17
| |\ \ \ \ \ \