summaryrefslogtreecommitdiff
path: root/Zend/tests
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Merge branch 'PHP-5.6' into PHP-7.0"Anatol Belski2015-11-241-27/+6
| | | | This reverts commit 7d2a26b3fd90fb8ef8ab5d1a7134c370f3be0a78.
* Revert "Port the fix of 5.6 to 7.0"Anatol Belski2015-11-241-3/+3
| | | | This reverts commit c2f7fadee2fa176bb020f7833686fbc6cd092bc7.
* Port the fix of 5.6 to 7.0Xinchen Hui2015-11-211-3/+3
|
* Merge branch 'PHP-5.6' into PHP-7.0Xinchen Hui2015-11-211-6/+27
| | | | | | Conflicts: Zend/tests/bug70944.phpt Zend/zend_exceptions.c
* Merge branch 'PHP-5.6' into PHP-7.0Xinchen Hui2015-11-191-0/+16
| | | | | Conflicts: Zend/zend_exceptions.c
* fix test titleAnatol Belski2015-11-171-1/+1
| | | | c/p mistake :)
* Fixed bug #70914 zend_throw_or_error() format string vulnerabilityTaoguang Chen2015-11-171-0/+17
|
* Fixed bug #70912 (Null ptr dereference instantiating class with invalid ↵Xinchen Hui2015-11-171-0/+10
| | | | array property)
* add test for bug #70898Anatol Belski2015-11-171-0/+22
|
* Re-fixed #70895Xinchen Hui2015-11-171-0/+15
|
* Fixed incorrect order of free/finally on exceptionDmitry Stogov2015-11-101-2/+0
|
* Added testsDmitry Stogov2015-11-102-0/+84
|
* Don't propagate into ops that error on non-stringNikita Popov2015-11-081-0/+11
| | | | | To properly support this make update_opN_const fallible -- they are not always called through replace_with_const.
* Strip leading backslash in update_opN_constNikita Popov2015-11-081-0/+13
|
* Fix update_opX_const lowercasingNikita Popov2015-11-081-0/+13
| | | | It was lowering in-place.
* Fixed bug #70873 (Regression on private static properties access)Xinchen Hui2015-11-081-0/+34
|
* Fixed bug #70868 (PCRE JIT and pattern reuse segfault)Xinchen Hui2015-11-081-32/+0
|
* add failing test for bug #70868Márcio Almada2015-11-081-0/+32
|
* Fixed bug #70805 (Segmentation faults whilst running Drupal 8 test suite)Xinchen Hui2015-11-083-0/+126
|
* Fixed bug #70785 (Infinite loop due to exception during identical comparison)Xinchen Hui2015-10-271-0/+25
|
* Fix bug #70782Nikita Popov2015-10-241-0/+10
|
* Merge branch 'PHP-5.6' into PHP-7.0Xinchen Hui2015-10-231-0/+20
| | | | | Conflicts: Zend/zend_ini_scanner.c
* Fixed bug #70430Nikita Popov2015-10-181-0/+10
|
* Fixed bug #70689 (Exception handler does not work as expected)Xinchen Hui2015-10-181-0/+22
|
* Do not create a fake Closure for real Closuresphp-7.0.0RC5Bob Weinand2015-10-141-0/+33
| | | | That is solved by just returning the Closure as is, which is safe due to Closures being immutable objects
* Add more tests for closure bindingNikita Popov2015-10-122-1/+209
|
* Forbid "fake" closure rebindingDmitry Stogov2015-10-121-1/+1
|
* Merge branch 'PHP-5.6' into PHP-7.0Nikita Popov2015-10-101-0/+22
|\ | | | | | | | | Conflicts: Zend/zend_closures.c
| * Fixed bug #70685Nikita Popov2015-10-101-0/+22
| | | | | | | | Doing a less intrusive variant of the PHP 7.0 fix for 5.6.
* | Normalize rebinding failuresNikita Popov2015-10-103-23/+7
| | | | | | | | | | | | | | Move all rebinding checks into one function to make sure they stay in sync. Normalize return value to be NULL for all rebinding failures, instead of returning an improperly bound closure in some cases.
* | Merge branch 'PHP-5.6' into PHP-7.0Nikita Popov2015-10-091-0/+5
|\ \ | |/
| * Improve previous fixNikita Popov2015-10-091-0/+5
| | | | | | | | Don't forbid null binding on plain functions.
* | Merge branch 'PHP-5.6' into PHP-7.0Nikita Popov2015-10-091-0/+11
|\ \ | |/
| * Fixed bug #70681Nikita Popov2015-10-091-0/+11
| |
* | Fixed bug #70630 (Closure::call/bind() crash with ↵Dmitry Stogov2015-10-091-0/+10
| | | | | | | | ReflectionFunction->getClosure())
* | Fix bug #70662Nikita Popov2015-10-081-0/+18
| | | | | | | | | | | | | | | | | | This replaces add_new with update for the RW case. This should not be problematic for performance, as this branch throws a notice. Alternatively add_new could also be replaced with add. I went with update, because it makes $a[0] += 1 behavior the same as $a[0] = $a[0] + 1.
* | Revert "Fixed bug #70630 (Closure::call/bind() crash with ↵Dmitry Stogov2015-10-062-88/+0
| | | | | | | | | | | | ReflectionFunction->getClosure())" This reverts commit 517b5536259ecf7697f353f4bfbafde857fc1f81.
* | Revert "Improve 517b55362 (scope rebinding on method Closures)"Dmitry Stogov2015-10-064-97/+6
| | | | | | | | This reverts commit 881c50252066132f83e190325e344f532be19033.
* | Revert "Allow random $this on non-internal Closures again"Dmitry Stogov2015-10-067-47/+54
| | | | | | | | This reverts commit 35d0405c4790f0ce668c9e1b8b05197e55d29a05.
* | Allow random $this on non-internal Closures againBob Weinand2015-10-057-54/+47
| | | | | | | | | | | | | | | | | | | | As it turns out, there is actually no reason to prevent this, it even was a bigger BC break than expected... Also fixes a memory leak (the Closure leaks) when calling internal functions via Closure by moving it out of leave helper onto caller side for TOP_CODE: $z = new SplStack; $z->push(20); $x = (new ReflectionMethod("SplStack", "pop"))->getClosure($z); var_dump($x());
* | Improve 517b55362 (scope rebinding on method Closures)Bob Weinand2015-10-054-6/+97
| | | | | | | | | | | | Now it is completely impossible to rebind a scoped method Closure (only the kind you get from ReflectionMethod::getClosure()) to a foreign scope Adding a lot of tests to ensure this... Also, properly return NULL in case the Closure could not be created instead of some crippled unbound Closure
* | Fixed bug #70630 (Closure::call/bind() crash with ↵Bob Weinand2015-10-042-0/+88
| | | | | | | | | | | | | | ReflectionFunction->getClosure()) This additionally removes support for binding to an unknown (not in parent hierarchy) scope. Removing support for cross-scope is necessary for certain compile-time assumptions (like class constants) to prevent unexpected results
* | Fixed memory leak.Dmitry Stogov2015-09-231-0/+18
| |
* | Fixed testDmitry Stogov2015-09-231-1/+1
| |
* | Fixed Bug #70557 (Memleak on return type verifying failed)Xinchen Hui2015-09-231-0/+19
| |
* | Fixed bug #70548 (Redundant information printed in case of uncaught engine ↵Xinchen Hui2015-09-232-2/+2
| | | | | | | | exception)
* | Fixed bug #70555 (fun_get_arg() on unsetted vars return UNKNOW)Xinchen Hui2015-09-231-21/+23
| | | | | | | | | | and also keep the indices of func_get_args(). since they are similar issue of #70574, thus reuse its test script.
* | Fixed #70547 similar bug in func_get_argsXinchen Hui2015-09-221-10/+43
| |
* | Fixed bug #70547 (unsetting function variables corrupts backtrace)Xinchen Hui2015-09-221-0/+48
| |
* | Fixed bug #70528 (assert() with instanceof adds apostrophes around class name)Xinchen Hui2015-09-191-0/+23
| |