#24602 [NEW]: get_class_vars

From: Date: Fri, 11 Jul 2003 11:58:52 +0000
Subject: #24602 [NEW]: get_class_vars
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-43750@lists.php.net to get a copy of this message
From: rasaliba at kyube dot com Operating system: Win 2000 PHP version: 5.0.0b1 (beta1) PHP Bug Type: Scripting Engine problem Bug description: get_class_vars Description: ------------ when calling the get_class_vars function on an object, the __autoload function is called with an argument equal to "object". So this sums up that __autoload is in two cases: 1- when using the New operator. (correct) 2- when using the get_class_vars (?????) Reproduce code: --------------- <?php $c = new CircleObject("Circle1"); echo "------\n"; $arr = get_class_vars($c); echo "------\n"; function __autoload($class) { echo("auto loading [".$class."]\n"); switch ($class) { case "circleobject": require_once ("$class.php"); break; } } ?> Expected result: ---------------- Content-type: text/html X-Powered-By: PHP/5.0.0b1 auto loading [circleobject] ------ ------ Actual result: -------------- Content-type: text/html X-Powered-By: PHP/5.0.0b1 auto loading [circleobject] ------ auto loading [object] ------ -- Edit bug report at http://bugs.php.net/?id=24602&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24602&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24602&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24602&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24602&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24602&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24602&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24602&r=support Expected behavior: http://bugs.php.net/fix.php?id=24602&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24602&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24602&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24602&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24602&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24602&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24602&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24602&r=gnused

« previous php.bugs (#43750) next »