From: michael at calwell-computing dot co dot uk Operating system: All PHP version: 5.3.0alpha3 PHP Bug Type: Feature/Change Request Bug description: Extract() to work on data objects
Description: ------------ extract() currently only extracts arrays into variables. I think it would be good to be able to extract data objects too. Reproduce code: --------------- e.g. $car1->wheels = 4; $car1->horsepower = 40; $car1->seats = 2; extract($car1, EXTR_PREFIX_ALL, 'car1'); /* $car1_wheels = 4 $car1_horsepower = 40 ... */ -- Edit bug report at http://bugs.php.net/?id=46977&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=46977&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=46977&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=46977&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=46977&r=fixedcvs Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=46977&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=46977&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=46977&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=46977&r=needscript Try newer version: http://bugs.php.net/fix.php?id=46977&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=46977&r=support Expected behavior: http://bugs.php.net/fix.php?id=46977&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=46977&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=46977&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=46977&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46977&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=46977&r=dst IIS Stability: http://bugs.php.net/fix.php?id=46977&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=46977&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=46977&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=46977&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=46977&r=mysqlcfg
