ID:               38488
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Open
 Bug Type:         Streams related
 Operating System: win32
 PHP Version:      5CVS-2006-08-18 (CVS)
 New Comment:

I'm unable to get my system to crash (CGI and CLI). What SAPI are you
using?


Previous Comments:
------------------------------------------------------------------------

[2006-08-18 02:31:47] [EMAIL PROTECTED]

Description:
------------
Access to standard streams using "php://stdin" and family names
produces crash. The reason probably is in a buggy _get_osfhandle()
function that doesn't return proper HANDLES for standard system
streams. We need find out a workaround for this problem.

the bug is probably related to bug #7960

Reproduce code:
---------------
<?php
$f = fopen("php://stdout", "w+");
fwrite($f, "Hello\n");
?>

Expected result:
----------------
Hello

Actual result:
--------------
Crash with the following stack trace

NTDLL! 7c90eb74()
NTDLL! 7c90eb94()
_php_stream_fopen_from_fd(int 0, const char * 0x00416fb0 `string',
const char * 0x00000000, int 0, char * 0x1070a25c `string', unsigned
int 246, char * 0x00000000, unsigned int 0, void * * * 0x02714fe0) line
200 + 24 bytes
php_stream_url_wrap_php(_php_stream_wrapper * 0x108a5d28
_php_stream_php_wrapper, char * 0x00416fa6, char * 0x00416fb0 `string',
int 8, char * * 0x00000000, _php_stream_context * 0x00000000, int 1,
char * 0x106dd51c `string', unsigned int 1774, char * 0x004165c8
`string', unsigned int 498, void * * * 0x02714fe0) line 246 + 41 bytes
_php_stream_open_wrapper_ex(char * 0x00416fa0 `string', char *
0x00416fb0 `string', int 0, char * * 0x00000000, _php_stream_context *
0x00000000, int 0, char * 0x004165c8 `string', unsigned int 498, char *
0x00000000, unsigned int 0, void * * * 0x02714fe0) line 1774 + 111
bytes
cli_register_file_handles(void * * * 0x02714fe0) line 498 + 52 bytes
main(int 2, char * * 0x026f8fc0) line 1030 + 12 bytes



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=38488&edit=1

Reply via email to