From:             pprocacci at datapipe dot com
Operating system: FreeBSD4.7-Stable
PHP version:      4.3.0
PHP Bug Type:     Reproducible crash
Bug description:  fopen causes core dump

PHP Version => 4.3.0

System => FreeBSD lucky 4.7-RELEASE-p4 FreeBSD 4.7-RELEASE-p4 #0: Mon 
i386
Build Date => Feb 17 2003 01:29:45
Configure Command =>  './configure' '--with-apxs=/usr/local/sbin/apxs'
'--with-config-file-path=/usr/local/etc' '--enable-versioning'
'--with-regex=system' '--without-gd' '--without-mysql'
'--with-gd=/usr/local' '--enable-gd-native-ttf'
'--with-freetype-dir=/usr/local' '--with-jpeg-dir=/usr/local'
'--with-png-dir=/usr/local' '--with-zlib' '--with-bz2=/usr' '--with
-mcrypt=/usr/local' '--with-mhash=/usr/local' '--with-pdflib=/usr/local'
'--with-zlib-dir=/usr' '--with-jpeg-dir=/usr/local'
'--with-png-dir=/usr/local' '--with-tiff-dir=/usr/local' '
--with-imap=/usr/local' '--with-mysql=/usr/local'
'--with-pgsql=/usr/local' '--with-dbase' '--with-gdbm=/usr/local'
'--with-ldap=/usr/local' '--with-openssl=/usr' '--with-snmp=/usr/lo
cal' '--enable-ucd-snmp-hack' '--with-openssl=/usr'
'--with-expat-dir=/usr/local' '--with-xmlrpc' '--enable-xslt'
'--with-xslt-sablot=/usr/local' '--enable-wddx' '--with-dom=/usr/loca
l' '--enable-ftp' '--with-curl=/usr/local' '--with-gettext=/usr/local'
'--with-iconv=/usr/local' '--with-pspell=/usr/local' '--enable-mbregex'
'--enable-mbstring' '--enable-yp' '--ena
ble-bcmath' '--with-hyperwave=yes' '--with-mcve=/usr/local'
'--with-ming=/usr/local' '--with-mcal=/usr/local' '--enable-sockets'
'--enable-sysvsem' '--enable-sysvshm' '--enable-trans-sid'
'--with-yaz=/usr/local/bin' '--prefix=/usr/local'
'i386-portbld-freebsd4.7'
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /usr/local/etc
PHP API => 20020918
PHP Extension => 20020429
Zend Extension => 20021010
Debug Build => no
Thread Safety => disabled
Registered PHP Streams => php, http, ftp, https, ftps, compress.bzip2,
compress.zlib  


I know this sounds rediculous, but  the following dumps core:

#!/usr/local/bin/php
<?php

$fp = fopen("http://xanthus.net";, "r");

if(!is_resource($fp))
        die("Couldn't open xanthus.net\n");


fclose($fp);

?>

#######################
while this one doesn't
#######################

#!/usr/local/bin/php
<?php

$fp = fopen("http://php.net";, "r");

if(!is_resource($fp))
        die("Couldn't open php.net\n");


fclose($fp);

?>

############################
There seems to be a problem with the way php handles redirects.  That page
"xanthus.net" gets redirected to elsewhere, while php.net doesn't (or at
least I think this is the reason.)
-- 
Edit bug report at http://bugs.php.net/?id=22283&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22283&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22283&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22283&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22283&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22283&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22283&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22283&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22283&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22283&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22283&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22283&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22283&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22283&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22283&r=gnused

Reply via email to