[prev in list] [next in list] [prev in thread] [next in thread]
List: php-internals
Subject: [PHP-DEV] Bug #10828: sometimes get_extension_funcs() kills PHP
From: jo () feuersee ! de
Date: 2001-05-12 12:32:35
[Download RAW message or body]
From: jo@feuersee.de
Operating system: Linux 2.4.4
PHP version: 4.0.5
PHP Bug Type: PHP options/info functions
Bug description: sometimes get_extension_funcs() kills PHP
I tried to print out all available PHP functions using
get_loaded_extensions() and get_extension_funcs():
<?php
print("<h3>PHP" . phpversion() . "</h3>\n");
print("<ol>\n");
$ext = get_loaded_extensions();
sort($ext);
for($i = 0; $i < count($ext); $i++) {
$name = $ext[$i];
print("<li><b>$name</b>:</li>\n<ol>\n");
$func = get_extension_funcs($name);
sort($func);
for($j = 0; $j < count($func); $j++) {
print("<li><code>$func[$j]()</code></li>\n");
}
print("</ol>\n");
}
print("</ol>\n");
?>
and this worked well with PHP4.0.3pl1.
However, since PHP4.0.4pl1/5, the Apache (1.3.19)
subprocess dies:
[Sat May 12 14:26:49 2001] [notice] child pid 746 exit
signal Segmentation fault (11)
When commenting out the get_extension_funcs() call, all is
well. Even replacing the argument to a const (eg.
get_extension_funcs("exif") ) works.
I tried to reproduce the error in a more simple way, but
failed:
<?php
$name = "exif";
print_r(get_extension_funcs($name));
?>
works as expected. Still the script above fails.
--
Edit Bug report at: http://bugs.php.net/?id=10828&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net
For additional commands, e-mail: php-dev-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic