#26534 [Opn->Fbk]: stream_get_meta_data() -> Access Violation

From: Date: Fri, 05 Dec 2003 20:23:07 +0000
Subject: #26534 [Opn->Fbk]: stream_get_meta_data() -> Access Violation
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-51734@lists.php.net to get a copy of this message
ID: 26534 Updated by: wez@php.net Reported By: heino@php.net -Status: Open +Status: Feedback Bug Type: *General Issues Operating System: WinXP PHP Version: 5CVS-2003-12-05 (dev) New Comment: I think I just fixed this; can you try the next php5 snapshot? (dated after this report) Previous Comments: ------------------------------------------------------------------------ [2003-12-05 15:07:49] heino@php.net 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 this bug report at http://bugs.php.net/?id=26534&edit=1

« previous php.bugs (#51734) next »