php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62103 get_declared_classes and get_declared_interfaces and get_defined_functions bug!
Submitted: 2012-05-22 04:09 UTC Modified: 2015-01-25 04:22 UTC
From: yyb8 at vip dot qq dot com Assigned:
Status: No Feedback Package: Unknown/Other Function
PHP Version: 5.3.13 OS: windows 2003
Private report: No CVE-ID: None
 [2012-05-22 04:09 UTC] yyb8 at vip dot qq dot com
Description:
------------
get_declared_classes() and get_declared_interfaces() print every item twice!!!
at windows 2003 and iis fastcgi!

and get_defined_functions() is print every item twice too with unreadable codes(error code).
 


Test script:
---------------
$f = get_defined_functions();
echo '<pre>';
print_r($f['internal']); 
print_r(get_declared_classes());
print_r(get_declared_interfaces());

Expected result:
----------------
Array
(
    [0] => Traversable
    [1] => IteratorAggregate
    [2] => Iterator
    [3] => ArrayAccess
    [4] => Serializable
    [5] => RecursiveIterator
    [6] => OuterIterator
    [7] => Countable
    [8] => SeekableIterator
    [9] => SplObserver
    [10] => SplSubject
    [11] => Reflector
    )


Actual result:
--------------
Array
(
    [0] => Traversable
    [1] => IteratorAggregate
    [2] => Iterator
    [3] => ArrayAccess
    [4] => Serializable
    [5] => RecursiveIterator
    [6] => OuterIterator
    [7] => Countable
    [8] => SeekableIterator
    [9] => SplObserver
    [10] => SplSubject
    [11] => Reflector
    [12] => Reflector
    [13] => SplSubject
    [14] => SplObserver
    [15] => SeekableIterator
    [16] => Countable
    [17] => OuterIterator
    [18] => RecursiveIterator
    [19] => Serializable
    [20] => ArrayAccess
    [21] => Iterator
    [22] => IteratorAggregate
    [23] => Traversable
)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-05-22 06:31 UTC] reeze dot xia at gmail dot com
I can't reproduce it in MacOS.
 [2015-01-13 16:44 UTC] danack@php.net
-Status: Open +Status: Feedback
 [2015-01-13 16:44 UTC] danack@php.net
I can't reproduce this on either OSX or Centos.

If you think this is still an issue in a supported version of PHP, please can you make sure that you have no zend_extensions loaded and retry.
 [2015-01-25 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 05:01:30 2024 UTC