ID: 38943 Updated by: [EMAIL PROTECTED] Reported By: judas dot iscariote at gmail dot com -Status: Open +Status: Closed Bug Type: Zip Related Operating System: Linux PHP Version: 5CVS-2006-09-24 (CVS) -Assigned To: +Assigned To: pajoye New Comment:
This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Thanks for this small test case :) Fixed in 5.2 cvs and HEAD (6). Pecl release will follow later this week. Previous Comments: ------------------------------------------------------------------------ [2006-09-24 21:27:39] judas dot iscariote at gmail dot com 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) "" } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38943&edit=1