summaryrefslogtreecommitdiff
path: root/Zend/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
* | Fixed bug #70478 (**= does no longer work)Bob Weinand2015-09-121-0/+20
| | | | | | | | Reordered ZEND_(ASSIGN_)POW opcodes in zend_vm_def.h so that it won't be missed in future
* | adds missing tokens to list of semi-reserved words and regenerates test suiteMárcio Almada2015-09-045-60/+234
| |
* | We should keep one refcount to resourceXinchen Hui2015-09-021-8/+9
| |
* | Fixed bug #70398 (SIGSEGV, Segmentation fault zend_ast_destroy_ex)Xinchen Hui2015-09-021-0/+17
| |
* | Fixed bug #70397 (Segmentation fault when using Closure::call and yield)Bob Weinand2015-09-011-0/+15
| |
* | Fixed one more problem related to bug #70187 (Notice: unserialize(): ↵Dmitry Stogov2015-09-011-0/+11
| | | | | | | | Unexpected end of serialized data)
* | Fix bug #62441Nikita Popov2015-08-281-0/+20
| | | | | | | | | | These checks were introduced by 8646d9afce989718cde927c526684bbbc1c96e97 back when name resolution was working differently.
* | Fixed bug #70187 (Notice: unserialize(): Unexpected end of serialized data)Dmitry Stogov2015-08-261-0/+19
| |
* | Fixed Bug #70332 (Wrong behavior while returning reference on object)Xinchen Hui2015-08-231-0/+24
| | | | | | | | | | This fix is actually made for array acessing bug fix (#70262) which is discarded since we have another better fix, anyway now seems this is still useful
* | Re-Fixed bug #70321 (Magic getter breaks reference to array property)Xinchen Hui2015-08-231-0/+49
| |