|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-09-24 22:30 UTC] pajoye@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 14:00:01 2025 UTC |
Description: ------------ see the source, properties cannot be set correctly. Reproduce code: --------------- <?php class myZip extends ZipArchive { public $testp = 1; } $z = new myZip; $z->testp = 'foobar'; var_dump($z); ?> Expected result: ---------------- object(myZip)#1 (6) { ["testp"]=> string(6) "foobar" ["status"]=> int(0) ["statusSys"]=> int(0) ["numFiles"]=> int(0) ["filename"]=> string(0) "" ["comment"]=> string(0) "" } Actual result: -------------- Warning: Attempt to assign property of non-object in bug.php on line 7 object(myZip)#1 (6) { ["testp"]=> int(1) ["status"]=> int(0) ["statusSys"]=> int(0) ["numFiles"]=> int(0) ["filename"]=> string(0) "" ["comment"]=> string(0) "" }