summaryrefslogtreecommitdiff
path: root/Zend/tests
Commit message (Collapse)AuthorAgeFilesLines
* Separate slow path with make_real_object() and related code into "cold" ↵Dmitry Stogov2018-02-201-2/+0
| | | | function.
* Remove empty sections in testsGabriel Caruso2018-02-141-1/+0
|
* Remove trailing whitespace in inc filesGabriel Caruso2018-02-102-14/+14
|
* Fix some misspellingsGabriel Caruso2018-02-068-10/+10
|
* Use bool instead of boolean while throwing a type errorGabriel Caruso2018-02-048-70/+70
| | | | | | | | | | PHP requires boolean typehints to be written "bool" and disallows "boolean" as an alias. This changes the error messages to match the actual type name and avoids confusing messages like "must be of type boolean, boolean given". This a followup to ce1d69a1f6dcf15d43029301059c25e5bc09a577, which implements the same change for integer->int.
* Use int instead of integer in type errorsGabriel Caruso2018-02-0433-111/+111
| | | | | | | PHP requires integer typehints to be written "int" and does not allow "integer" as an alias. This changes type error messages to match the actual type name and avoids confusing messages like "must be of the type integer, integer given".
* Remove some references to E_STRICT in testsNikita Popov2018-02-0323-42/+12
| | | | | | | run-tests.php enforces error_reporting=E_ALL (including E_STRICT), setting this explicitly in not necessary. Conversely, after the removal of some E_STRICT errors, explicitly excluding it is no longer necessary in some places.
* Remove superfluous SKIPIF sections in Zend testsGabriel Caruso2018-02-0312-30/+4
|
* Use %d when expecting line number in testsGabriel Caruso2018-02-025-5/+5
|
* Merge branch 'PHP-7.2'Nikita Popov2018-01-152-0/+75
|\
| * Merge branch 'PHP-7.1' into PHP-7.2Nikita Popov2018-01-152-0/+75
| |\
| | * Fixed bug #75079Nikita Popov2018-01-152-0/+75
| | |
* | | Merge branch 'PHP-7.2'Nikita Popov2018-01-131-0/+27
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.1' into PHP-7.2Nikita Popov2018-01-131-0/+27
| |\ \ | | |/
| | * Fix generator GC if yield from parent chain does not reach rootNikita Popov2018-01-131-0/+27
| | | | | | | | | | | | | | | | | | | | | Parents may be unlinked while another generator sharing part of the chain is running. As such, we cannot assume that the parent chain goes all the way to the root. Instead walk backwards from root to leaf, like we also do during destruction.
* | | Merge branch 'PHP-7.2'Nikita Popov2018-01-121-0/+22
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.1' into PHP-7.2Nikita Popov2018-01-121-0/+22
| |\ \ | | |/
| | * Fixed bug #75396Nikita Popov2018-01-121-0/+22
| | | | | | | | | | | | | | | | | | Do not run finally blocks in generators on unclean shutdown (e.g. caused by exit). This is consistent with how finally blocks outside of generators behave.
* | | Merge branch 'PHP-7.2'Nikita Popov2018-01-091-0/+18
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.1' into PHP-7.2Nikita Popov2018-01-091-0/+18
| |\ \ | | |/
| | * Fixed bug #75786Nikita Popov2018-01-091-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | SEND_UNPACK on iterators was duplicating references in-place, which effectively leaks the original value and causes an off-by-one refcount on the duplicated value. Replace this with a deref, as an actual duplication is not even needed in this case.
* | | Merge branch 'instanceof-const' of https://github.com/nikic/php-srcXinchen Hui2018-01-032-11/+10
|\ \ \ | | | | | | | | | | | | | | | | * 'instanceof-const' of https://github.com/nikic/php-src: Return false for instanceof on literal
| * | | Return false for instanceof on literalNikita Popov2017-12-192-11/+10
| | | |
* | | | Add _IS_NUMBER as cast_object() target typeNikita Popov2017-12-264-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | convert_scalar_to_number() will now call cast_object() with an _IS_NUMBER argument, in which case the cast handler should return either an integer or floating point number, whichever is more appropriate. Previously convert_scalar_to_number() unconditionally converted objects to integers instead. Fixes bug #53033. Fixes bug #54973. Fixes bug #73108.
* | | | Fixed bug #54043Nikita Popov2017-12-231-0/+20
|/ / /
* | | Merge branch 'PHP-7.2'Nikita Popov2017-12-162-0/+61
|\ \ \ | |/ /
| * | Fix #75607 - Check if existing static trait property is a ref before comparingPedro Magalhães2017-12-162-0/+61
| | |
* | | Implement list() reference assignmentsDavid Walker2017-12-0912-14/+547
| | | | | | | | | | | | | | | | | | | | | | | | Support list() reference assignments of the form: list(&$a, list(&$b, $c)) = $d; RFC: https://wiki.php.net/rfc/list_reference_assignment
* | | Merge branch 'PHP-7.2'Xinchen Hui2017-11-291-0/+64
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | * PHP-7.2: Update NEWS Fixed bug #75573 (Segmentation fault in 7.1.12 and 7.0.26) Revert "ext/sodium: pwhash: do not warn on low parameters" Conflicts: Zend/zend_object_handlers.c
| * | Merge branch 'PHP-7.1' into PHP-7.2Xinchen Hui2017-11-291-0/+64
| |\ \ | | |/ | | | | | | | | | * PHP-7.1: Fixed bug #75573 (Segmentation fault in 7.1.12 and 7.0.26)
| | * Fixed bug #75573 (Segmentation fault in 7.1.12 and 7.0.26)Xinchen Hui2017-11-291-0/+64
| | |
* | | 63911: Compare opcodes of the op_array to determine different functionsPedro Magalhães2017-11-221-0/+26
| | |
* | | Merge branch 'PHP-7.2'Nikita Popov2017-11-152-0/+89
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.1' into PHP-7.2Nikita Popov2017-11-152-0/+89
| |\ \ | | |/
| | * Fixed #74862: Unable to clone instance when private __clone definedDanielCiochiu2017-11-152-0/+89
| | | | | | | | | | | | | | | Even though __clone was implemented as private and called only from parent class, child extending class instance could not be cloned.
* | | Allow trailing commas in function and method callsSammy Kaye Powers2017-11-065-0/+129
| | |
* | | Fix #74922 - Try to resolve constants when importing trait propertiesPedro Magalhães2017-11-025-0/+76
| | |
* | | Fixed string interning during constants substitutionDmitry Stogov2017-11-011-0/+12
| | |
* | | Revert "Fixed string interning during constants substitution"Dmitry Stogov2017-11-011-12/+0
| | | | | | | | | | | | This reverts commit e0924c52fc7c69b483b5416c609ce7f008584845.
* | | Fixed string interning during constants substitutionDmitry Stogov2017-11-011-0/+12
| | |
* | | Fix gc_029_zts.phpt testNikita Popov2017-10-302-39/+0
| | | | | | | | | | | | | | | ZTS and NTS now behave the same here, so reduce this back to a single test.
* | | Merge branch 'PHP-7.2'Dmitry Stogov2017-10-268-0/+162
|\ \ \ | |/ / | | | | | | | | | * PHP-7.2: Fixed indirect modification of magic ArrayAccess method arguments
| * | Merge branch 'PHP-7.1' into PHP-7.2Dmitry Stogov2017-10-268-0/+162
| |\ \ | | |/ | | | | | | | | | * PHP-7.1: Fixed indirect modification of magic ArrayAccess method arguments
| | * Merge branch 'PHP-7.0' into PHP-7.1Dmitry Stogov2017-10-268-0/+162
| | |\ | | | | | | | | | | | | | | | | * PHP-7.0: Fixed indirect modification of magic ArrayAccess method arguments
| | | * Fixed indirect modification of magic ArrayAccess method argumentsDmitry Stogov2017-10-268-0/+162
| | | |
| * | | Merge branch 'PHP-7.1' into PHP-7.2Dmitry Stogov2017-10-262-0/+34
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.1: Backport tests
| | * | Merge branch 'PHP-7.0' into PHP-7.1Dmitry Stogov2017-10-262-0/+34
| | |\ \ | | | |/ | | | | | | | | | | | | * PHP-7.0: Backport tests
| | | * Backport testsDmitry Stogov2017-10-262-0/+34
| | | |
* | | | Restore object copying on magic method calls (It was removed in master only).Dmitry Stogov2017-10-262-0/+34
| | | |
* | | | Merge branch 'PHP-7.2'Dmitry Stogov2017-10-267-1/+112
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.2: Fixed indirect modification of magic method arguments.