#26534 [NEW]: stream_get_meta_data() -> Access Violation
| From: | heino@php.net | Date: | Fri, 05 Dec 2003 20:07:49 +0000 |
| Subject: | #26534 [NEW]: stream_get_meta_data() -> Access Violation | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-51733@lists.php.net to get a copy of this message | ||
From: heino@php.net
Operating system: WinXP
PHP version: 5CVS-2003-12-05 (dev)
PHP Bug Type: *General Issues
Bug description: stream_get_meta_data() -> Access Violation
Description:
------------
Something strange has happend stream_get_meta_data() between b1 and b2!
Doing a stream_get_meta_data() on a tcp_socket stream results in an Access
Violation.
The "Actual Result" says it all...
Reproduce code:
---------------
$host = 'localhost';
$port = 80;
$stream = stream_socket_client($host.':'.$port, $errno, $errstr);
// fwrite($stream, "GET / HTTP/1.1\r\nHost: $host\r\n\r\n");
// echo fread($stream, 10240);
var_dump(stream_get_meta_data($stream));
Expected result:
----------------
PHP Version 5.0.0b1:
array(7) {
["stream_type"]=>
string(10) "tcp_socket"
["mode"]=>
string(2) "r+"
["unread_bytes"]=>
int(0)
["seekable"]=>
bool(false)
["timed_out"]=>
bool(false)
["blocked"]=>
bool(true)
["eof"]=>
bool(true)
}
Actual result:
--------------
PHP Version 5.0.0b2 & 5.0.0b3-dev:
PHP has encountered an Access Violation at 010C80AD
--
Edit bug report at http://bugs.php.net/?id=26534&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26534&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26534&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26534&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26534&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26534&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=26534&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=26534&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26534&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26534&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26534&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26534&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26534&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26534&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26534&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26534&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26534&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26534&r=float