ID: 22005 Updated by: [EMAIL PROTECTED] Reported By: haafiz at ezwebsolutions dot ca -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: ALL PHP Version: 4.3.0 New Comment:
If this was a MySQL bug it isn't listed in their Bug DB (so I can't offer my information) but anyway I added an alternate example (that parses SHOW STATUS) in the manual. Also, this bug is old and cosmetic. Status->closed. Here's the diff: http://cvs.php.net/diff.php/phpdoc/en/reference/mysql/functions/mysql-stat.xml?r1=1.8&r2=1.10 Previous Comments: ------------------------------------------------------------------------ [2003-06-02 09:41:19] mike at pcmedx dot com I also added this workaround to the doc page. $stat = explode(' ',mysql_stat($this->c_id)); list($stat[6],$stat[7]) = preg_split('/\s(Q.+)/',$stat[6],-1,PREG_SPLIT_DELIM_CAPTURE); ------------------------------------------------------------------------ [2003-02-03 07:17:03] [EMAIL PROTECTED] Reclassified as a documentation bug ------------------------------------------------------------------------ [2003-02-03 06:05:44] [EMAIL PROTECTED] Ok, this is verified but this is not a PHP's bug, but a MySQL's. Please post a MySQL's bug. ------------------------------------------------------------------------ [2003-02-02 11:32:47] [EMAIL PROTECTED] a) split/preg_split uses regex, not explode b) it would not work well as it'd split up everything c) this is not related to html but rather a php string d) the example in the manual uses explode on two spaces If this is indeed true (one space before Queries) than this is a bug ... somewhere. ------------------------------------------------------------------------ [2003-02-02 03:23:43] [EMAIL PROTECTED] In fact there are more space but the HTML output will read only one. Use explode('[[:space:]]',$var) to divide it. (You can verify that by looking at the HTML source. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/22005 -- Edit this bug report at http://bugs.php.net/?id=22005&edit=1
