|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests
Pull requests:
HistoryAllCommentsChangesGit/SVN commits
[2019-02-14 11:56 UTC] nikic@php.net
[2019-02-14 11:56 UTC] nikic@php.net
-Status: Open
+Status: Closed
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Oct 28 14:00:01 2025 UTC |
Description: ------------ On accessing non-existing properties on an object PHP under some circumstances produces an instance of stdObj on the fly. In most cases a warning is produced: "Creating default object from empty value" The warning is missing, if array-syntax is used: class test {} $test = new test(); $test->foo->bar['nope'] = 42; Test script: --------------- https://3v4l.org/aakSR