php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9952 get_defined_functions appends whitespace to returned values
Submitted: 2001-03-23 07:17 UTC Modified: 2001-03-23 09:48 UTC
From: cynic at mail dot cz Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 4.0 Latest CVS (23/03/2001) OS: NT 5
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
2 + 6 = ?
Subscribe to this entry?

 
 [2001-03-23 07:17 UTC] cynic at mail dot 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-23 09:08 UTC] 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 09:48 UTC] andrei@php.net
Fixed in CVS - thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 16:01:28 2024 UTC