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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: cynic at mail dot cz
New email:
PHP Version: OS:

 

 [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-2020 The PHP Group
All rights reserved.
Last updated: Tue Sep 29 01:01:25 2020 UTC