php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39670 get_defined_functions() returns junk values after the key 1048
Submitted: 2006-11-29 00:30 UTC Modified: 2006-11-29 10:06 UTC
Votes:1
Avg. Score:1.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: denveroid at sitemaker dot ru Assigned:
Status: Not a bug Package: Unknown/Other Function
PHP Version: 4.4.4 OS: Linux
Private report: No CVE-ID: None
 [2006-11-29 00:30 UTC] denveroid at sitemaker dot ru
Description:
------------
get_defined_functions() returns junk values after the key 1048 in the resulted array.
Look at the reproduce code.
Also tested in 5.2.0 - not reproduced.

Reproduce code:
---------------
<?php

$funcs = get_defined_functions();
print_r($funcs['internal']);

?>

Expected result:
----------------
The result array should be list of internal PHP functions

Actual result:
--------------
The part of resulted array:

    ...
    [1043] => zend_current_obfuscation_level
    [1044] => zend_runtime_obfuscate
    [1045] => zend_obfuscate_class_name
    [1046] => zend_get_id
    [1047] => zend_loader_version
    [1048] => zend_optimizer_version
    [1049] => uer1qc[<lm*uj
hb0
    [1050] => pf?c9zei9whzf
    [1051] => jyjl
u%(i
    [1052] => fiecaz9/hxv^%"pmx
c`y2?
    [1053] => ri*vh1.+8d8c]_'sc
    [1054] => tntp\q4=zt~np{cq{vk(s|ts
    ....

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-11-29 10:06 UTC] tony2001@php.net
Do not file bugs when you have Zend extensions (zend_extension=)
loaded. Examples are Zend Optimizer, Zend Debugger, Turck MM Cache,
APC, Xdebug and ionCube loader.  These extensions often modify engine
behavior which is not related to PHP itself.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Dec 08 16:00:01 2025 UTC