From: louis at steelbytes dot com
Operating system: win32
PHP version: 5.2.7RC5
PHP Bug Type: CGI related
Bug description: freaky errors with FastCGI
Description:
------------
I was trying to repro a crash I get when using fastcgi and any script more
complex then hello world, and I came across this gem ...
I'm using IIS7 (tried both VistaSP1 and Win2008), with FastCGI and the
attached script fails. but if I shorten the name of the function, then it
doesn't fail!!! freaky.
important note, it doesn't fail the first time, only the 2nd, so hit
refresh a couple of times in your browser. if I switch to CGI, then it
works fine.
what difference could the name of an uncalled function have on
php_mysql.dll? mmm ...
Reproduce code:
---------------
differences versus php.ini-recommended
extension_dir = "./ext"
cgi.force_redirect = 0
index.php
<html><body><?php
function abcdefghijklmopqrstuv($s) { return $s; }
if (!extension_loaded('mysql')) @dl('php_mysql.dll');
if (!extension_loaded('mysql')) die('mysql not loaded');
$dblink = mysql_connect('localhost','root','root');
?></body></html>
Expected result:
----------------
no error or warning
Actual result:
--------------
PHP Warning: mysql_connect() [function.mysql-connect]: Too many open links
(0) in C:\hobby\test\index.php on line 7
--
Edit bug report at http://bugs.php.net/?id=46735&edit=1
--
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=46735&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=46735&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=46735&r=trysnapshot60
Fixed in CVS:
http://bugs.php.net/fix.php?id=46735&r=fixedcvs
Fixed in CVS and need be documented:
http://bugs.php.net/fix.php?id=46735&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=46735&r=alreadyfixed
Need backtrace:
http://bugs.php.net/fix.php?id=46735&r=needtrace
Need Reproduce Script:
http://bugs.php.net/fix.php?id=46735&r=needscript
Try newer version:
http://bugs.php.net/fix.php?id=46735&r=oldversion
Not developer issue:
http://bugs.php.net/fix.php?id=46735&r=support
Expected behavior:
http://bugs.php.net/fix.php?id=46735&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=46735&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=46735&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=46735&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=46735&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=46735&r=dst
IIS Stability:
http://bugs.php.net/fix.php?id=46735&r=isapi
Install GNU Sed:
http://bugs.php.net/fix.php?id=46735&r=gnused
Floating point limitations:
http://bugs.php.net/fix.php?id=46735&r=float
No Zend Extensions:
http://bugs.php.net/fix.php?id=46735&r=nozend
MySQL Configuration Error:
http://bugs.php.net/fix.php?id=46735&r=mysqlcfg