For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > January 2005 > #22005 [Opn->Csd]: mysql_stat space problems









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author #22005 [Opn->Csd]: mysql_stat space problems
philip@php.net

2005-01-26, 8:56 pm

ID: 22005
Updated by: philip@php.net
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/...?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] georg@php.net

Reclassified as a documentation bug


------------------------------------------------------------------------

[2003-02-03 06:05:44] nicos@php.net

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] philip@php.net

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] nicos@php.net

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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com