From: [EMAIL PROTECTED]
Operating system: redhat-7.1b
PHP version: 4.0.6
PHP Bug Type: Reproducible crash
Bug description: changing allow_url_fopen from "off" to "on" crashes fopen()
Using
Apache-1.3.20
PHP-4.0.6
glibc-2.2.3
PHP compiled as DSO, no other options
./configure --with-apxs=/usr/local/apache/bin/apxs
Note, this is not the same as bug #9672
Updating glibc does solve that problem see
http://bugs.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=2181
/usr/local/lib/php.ini
[PHP]
engine = On
allow_url_fopen = Off
My httpd.conf contains (in a VirtualHost),
php_admin_flag allow_url_fopen On
A test script
<?php
$fp = fopen( "http://www.php.net", "r" );
if( $fp )
{
fclose($fp);
print "fopen() success\n";
}
?>
Backtrace:
#0 __strtol_internal (nptr=0x403adba0 "", endptr=0x81128bc,
base=4,
group=-1073748792) at eval.c:36
#1 0x402bee14 in zend_hash_find (ht=0x403adba0,
arKey=0x81128bc "http://www.php.net", nKeyLength=4,
pData=0xbfffe4c8)
at zend_hash.c:850
#2 0x402cd259 in php_fopen_url_wrapper (path=0x81128bc
"http://www.php.net",
mode=0x810d5c4 "r", options=4, issock=0xbfffe508,
socketd=0xbfffe50c,
opened_path=0x0) at fopen_wrappers.c:445
#3 0x4031f2fb in php_if_fopen (ht=2,
return_value=0x810d5a4, this_ptr=0x0,
return_value_used=1) at file.c:639
#4 0x402acd5c in execute (op_array=0x8109efc) at
./zend_execute.c:1504
#5 0x402bae95 in zend_execute_scripts (type=8,
file_count=3) at zend.c:752
#6 0x402cc30b in php_execute_script
(primary_file=0xbffff890) at main.c:1206
#7 0x402c8bae in apache_php_module_main (r=0x8107644,
display_source_mode=0)
at sapi_apache.c:89
#8 0x402c9541 in send_php (r=0x8107644,
display_source_mode=0, filename=0x0)
at mod_php4.c:536
#9 0x402c956a in send_parsed_php (r=0x8107644) at
mod_php4.c:547
#10 0x080558d3 in ap_invoke_handler () at eval.c:41
#11 0x08069667 in process_request_internal () at eval.c:41
#12 0x080696c8 in ap_process_request () at eval.c:41
#13 0x08060b69 in child_main () at eval.c:41
#14 0x08060d14 in make_child () at eval.c:41
#15 0x08060e88 in startup_children () at eval.c:41
#16 0x080614d7 in standalone_main () at eval.c:41
#17 0x08061cf3 in main () at eval.c:41
#18 0x400ca6b7 in __libc_start_main (main=0x806195c <main>,
argc=2,
ubp_av=0xbffffb64, init=0x804ead0 <_init>,
fini=0x80969bc <_fini>,
rtld_fini=0x4000db64 <_dl_fini>, stack_end=0xbffffb5c)
at ../sysdeps/generic/libc-start.c:129
--
Edit bug report at: http://bugs.php.net/?id=12748&edit=1
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]