From: jed at jed dot bz Operating system: * PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: Flawed Example in Manual
Description: ------------ http://us2.php.net/manual/en/migration5.incompatible.php Example B-2, "An object with no properties is no longer considered "empty"" is incorrect. Who would I talk to about CVS access so I can fix this stuff? This is a glaring mistake, since $t *definitely* contains an instance reference regardless of what the class contains. Reproduce code: --------------- Below. Expected result: ---------------- <?php class test { } $t = new test(); var_dump(empty($t)); // echo bool(false) if (!$t) { // Will NOT be executed } ?> Actual result: -------------- <?php class test { } $t = new test(); var_dump(empty($t)); // echo bool(false) if (!$t) { // Will be executed } ?> -- Edit bug report at http://bugs.php.net/?id=30847&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30847&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30847&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30847&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30847&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30847&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30847&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30847&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30847&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30847&r=support Expected behavior: http://bugs.php.net/fix.php?id=30847&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30847&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30847&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30847&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30847&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30847&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30847&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30847&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30847&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30847&r=mysqlcfg