Re: PHP 4.0 Bug #3160: crash in filesize

From: Date: Mon, 10 Jan 2000 17:11:45 +0000
Subject: Re: PHP 4.0 Bug #3160: crash in filesize
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-14468@lists.php.net to get a copy of this message
>> $proxy = "SOME_HTTP_PROXY"; >> $sock = pfsockopen($proxy, 8080); >> fputs($sock,"GET SOME_FTP_URL HTTP/1.0\n\n"); >> echo filesize($sock); >> ?> >> >> crashes PHP (tested on command line). Addendum - I've misread the manual, filesize is applied on names, not handles, unlike fstat. But the bug is still there - it shouldn't crash in any case. -- Stanislav Malyshev stas@zend.com +972-3-6139665

« previous php.dev (#14468) next »