summaryrefslogtreecommitdiff
path: root/Zend/tests/bug41813.phpt
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Fetch for read in nested property assignments"Nikita Popov2020-03-181-1/+1
| | | | | | | | | | | | | | | | | | | This reverts commit bb43a3822e42dbd15b1d416a166549d3980b379a. After thinking about this a bit more, this is now going to be a complete solution for the "readonly properties" case, for example: unset($foo->readOnly->bar); should also be legal and $foo->readOnly['bar'] = 42; should also be legal if $foo->readOnly is not an array but an ArrayAccess object. I think it may be better to distinguish better on the BP_VAR flag level. Reverting for now.
* Fetch for read in nested property assignmentsNikita Popov2020-03-181-1/+1
| | | | | | | | | | | | | | | | | | $a->b->c = 'd'; is now compiled the same way as $b = $a->b; $b->c = 'd'; That is, we perform a read fetch on $a->b, rather than a write fetch. This is possible, because PHP 8 removed auto-vivification support for objects, so $a->b->c = 'd' may no longer modify $a->b proper (i.e. not counting interior mutability of the object). Closes GH-5250.
* Trim trailing whitespace in testsGabriel Caruso2018-10-141-1/+1
|
* Corrected error messages:Dmitry Stogov2015-12-221-1/+1
| | | | | - we don't use NULL for overlaoded objects for ages - fixed array/object mess
* Update exception names in tests after formatting changes.Aaron Piotrowski2015-05-171-1/+1
|
* Tweak uncaught exception message displayNikita Popov2015-05-171-1/+1
| | | | | | | | | | | | | This implements a reduced variant of #1226 with just the following change: -Fatal error: Uncaught exception 'EngineException' with message 'Call to private method foo::bar() from context ''' in %s:%d +Fatal error: Uncaught EngineException: Call to private method foo::bar() from context '' in %s:%d The '' wrapper around messages is very weird if the exception message itself contains ''. Futhermore having the message wrapped in '' doesn't work for the "and defined" suffix of TypeExceptions.
* Display EngineExceptions like ordinary exceptionsNikita Popov2015-05-151-1/+4
| | | | | | | | | TypeException stays as-is for now because it uses messages that are incompatible with the way exception messages are displayed. closure_038.phpt and a few others now show that we're generating too many exceptions for compound operations on undefined properties -- this needs to be fixed in a followup.
* add testAntony Dovgal2007-06-271-0/+12