reading from stdin/thread safe
| From: | Sascha Schumann | Date: | Sun, 26 Sep 1999 20:38:31 +0000 |
| Subject: | reading from stdin/thread safe | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-4941@lists.php.net to get a copy of this message | ||
Hi,
the thread-safe CGI version always crashes, if no input file
is specified (i.e. when stdin is used).
This is a 100% "portable" behaviour (tested under FreeBSD,
Linux, Solaris).
(gdb) bt
#0 ios::fail (this=0x0) at streambuf.h:219
#1 0x3764c in open_file_for_scanning ()
#2 0x379f8 in v_compile_files ()
#3 0x378d0 in compile_files ()
#4 0x2f4bc in php_execute_script (primary_file=0xffbefc20,
compiler_globals=0xf13d0, executor_globals=0xf1878, core_globals=0xf20a8)
at ../php4/main.c:1167
#5 0x353dc in main (argc=1, argv=0xffbefca4) at ../php4/cgi_main.c:470
--
Regards,
Sascha Schumann
Consultant