From: alexandre at z-index dot com dot br Operating system: Windows 2000 SP4 PHP version: 4.3.4 PHP Bug Type: Class/Object related Bug description: class method returns other value
Description: ------------ This problem happens when a call a specific method from a class and when a i try a echo this values strange chars (+,*,),#) apear than the real data value. Here goes the sample script: Reproduce code: --------------- <? class y { function x() { $query = "any insert"; $resultado = mysql_query($query); $id = mysql_insert_id($this->Conexao); echo "<br>inside function ".$id; } } $z = new y(); $x = $z->x(); echo "<br>outside function".$x; ?> Expected result: ---------------- inside function 12 outside function 12 Actual result: -------------- inside function 12 outside function ( or inside function 12 outside function * or inside function 12 outside function # -- Edit bug report at http://bugs.php.net/?id=27507&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27507&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27507&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=27507&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=27507&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=27507&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=27507&r=needscript Try newer version: http://bugs.php.net/fix.php?id=27507&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=27507&r=support Expected behavior: http://bugs.php.net/fix.php?id=27507&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=27507&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=27507&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=27507&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27507&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=27507&r=dst IIS Stability: http://bugs.php.net/fix.php?id=27507&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=27507&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=27507&r=float