[PHP-DEV] PHP 4.0 Bug #8099: Segmentation Fault when executing fopen() From: jeff <email protected>
Date: 12/04/00

From: jeff <email protected>
Operating system: Debian Linux/Woody
PHP version: 4.0.3pl1
PHP Bug Type: Reproduceable crash
Bug description: Segmentation Fault when executing fopen()

I've narrowed the code snipp down to this.

$page = fopen("http://web.slashdot.org", "r");
...
fclose($page);

it seems fopen() is causing a segfault, I've tried normal files on my filesystem, same crash.

here's a backtrace

#0 0x4011e717 in memcpy() from /lib/libc.so.6
#1 0x403a228b in _estrndup () from /usr/lib/apache/1.3/libphp4.so
#2 0404226d1 in url_parse () from /usr/lib/apache/1.3.libphp4.so

Machine Infomation:
PII 300 128 meg ram
Kernel: 2.4.0-test 5
php release php4.0.3-pl1 (debian release 7)
apache 1.3.14 (debian release 1)
libc6 2.2 (debian release 4)

-- 
Edit Bug report at: http://bugs.php.net/?id=8099&edit=1

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>