ID: 10979
Updated by: sniper
Old-Status: Open
Status: Closed
Bug Type: Reproducible crash
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 

This seems to be fixed in PHP 4.0.6RC1. 
Please try it:

Reopen if it segfaults with that.


Previous Comments:

[2001-05-21 00:02:00] [EMAIL PROTECTED]
I'm writing a little method in a debug class that outputs 
all of the loaded classes for the system, using 

My class started to segfault with this code:

        function _output_all_classes() {

                $this->_output_header('All Classes');

                $classes = get_declared_classes();
                foreach ($classes as $key) {
                        echo $key;
                        echo "n";

                        $class_methods = get_class_methods($key);
                        if ($class_methods != '') {
                                foreach ($class_methods as $key) {
                                        echo "    ";
                                        echo $key;

                        echo "nn";

                        $vars = get_class_vars($key);
                        if ($vars != '') {
                                foreach ($vars as $key) {
                                        echo "    ";
                                        echo $key;



So I got a list, and tested each name individually.

This code segfaults apache:


not a bid deal, as this is a default class, but I think 
this is probably unexpected behavior :)



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to