From: leandro dot rhcp99 at gmail dot com Operating system: Ubuntu 7.10 PHP version: 5.2.5 PHP Bug Type: Unknown/Other Function Bug description: Function get_object_vars produce diferent output when use on 5.2.3 and 5.2.5
Description: ------------ I'm php user and move my php projects from 5.2.3 to 5.2.5. In this changing I've got some problems on function get_object_vars. And seeing the changelog (http://bugs.php.net/bug.php?id=40757) I've noted that have some changes on this function. Reproduce code: --------------- class Modelo { public function __construct() { echo "Construtor Teste:<br />"; echo "<pre>"; print_r(array_keys(get_object_vars($this))); echo "</pre>"; } } class Teste extends Modelo { //Atributte private $atributo1; private $atributo2; public function setAtributo1($atributo1) { $this->atributo1 = $atributo1; } public function getAtributo1(){ return $this->atributo1; } public function setAtributo2($atributo2) { $this->atributo2 = $atributo2; } public function getAtributo2(){ return $this->atributo2; } } $objeto = new Teste(); Expected result: ---------------- Array ( [0] => atributo1 [1] => atributo2 ) Actual result: -------------- Array ( ) -- Edit bug report at http://bugs.php.net/?id=44111&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=44111&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44111&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44111&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44111&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44111&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44111&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44111&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44111&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44111&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44111&r=support Expected behavior: http://bugs.php.net/fix.php?id=44111&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44111&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44111&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44111&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=44111&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=44111&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44111&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44111&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44111&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44111&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44111&r=mysqlcfg