PHP 4.0 Bug #9952 Updated: get_defined_functions appends whitespace to returned values
| From: | andrei@php.net | Date: | Fri, 23 Mar 2001 14:48:03 +0000 |
| Subject: | PHP 4.0 Bug #9952 Updated: get_defined_functions appends whitespace to returned values | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-49817@lists.php.net to get a copy of this message | ||
ID: 9952
Updated by: andrei
Reported By: cynic@mail.cz
Old-Status: Open
Status: Closed
Bug Type: Unknown/Other Function
Assigned To:
Comments:
Fixed in CVS - thanks.
Previous Comments:
---------------------------------------------------------------------------
[2001-03-23 09:08:58] cynic@php.net
turned out it's not a whitespace, it's null:
$x = get_defined_functions() ;
$x = array_shift( $x['internal'] ) ;
for( $i = 0 ; $i < strlen( $x ) ; $i++ ) {
echo $x[ $i ] , ' : ' , ord( $x[ $i ] ) , "n" ;
}
z : 122
e : 101
n : 110
d : 100
_ : 95
v : 118
e : 101
r : 114
s : 115
i : 105
o : 111
n : 110
: 0
---------------------------------------------------------------------------
[2001-03-23 07:17:56] cynic@mail.cz
NOTE: this is actually a snapshot from yesterday.
signle space is appended to each and every returned function name, this affects both internals and
userland ones.
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9952&edit=2