From: prof_moriarty at veryfast dot biz Operating system: win98 PHP version: 4.3.2 PHP Bug Type: MySQL related Bug description: missing space
Description: ------------ Exeptionally minor bug, but a bug nonetheless. mysql_stat, documentation says that the resulting string should be explodable into 7 elements However in reality it can only be broken up into 6 elements. It's broken up using double space. I've used preg_replace, and explode, and either way i only get 6 results when splitting via double space " ". Basically, there's a missing space in the output, between the end of 'open tables', and the start of 'queries per sec'. Shouldn't take a fraction of a sec to fix. :) Reproduce code: --------------- var_dump(explode(' ', mysql_stat())); Expected result: ---------------- Array ( [0] => Uptime: 5380 [1] => Threads: 2 [2] => Questions: 1321299 [3] => Slow queries: 0 [4] => Opens: 26 [5] => Flush tables: 1 [6] => Open tables: 17 [7] => Queries per second avg: 245.595 ) Actual result: -------------- array(7) { [0]=> string(12) "Uptime: 6910" [1]=> string(10) "Threads: 2" [2]=> string(15) "Questions: 2229" [3]=> string(15) "Slow queries: 0" [4]=> string(9) "Opens: 77" [5]=> string(15) "Flush tables: 1" [6]=> string(45) "Open tables: 13 Queries per second avg: 0.323" } -- Edit bug report at http://bugs.php.net/?id=24628&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24628&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24628&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=24628&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24628&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24628&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24628&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24628&r=support Expected behavior: http://bugs.php.net/fix.php?id=24628&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24628&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24628&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24628&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24628&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24628&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24628&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24628&r=gnused