From: ottawasixtyseven at hotmail dot com Operating system: ALL PHP version: 4.3.0 PHP Bug Type: Filesystem function related Bug description: fopen() number in URL = Bad file descriptor
This bug has been reported a few times but keeps getting closed. It is still a problem in PHP 4.3.0 Also see closed bug http://bugs.php.net/bug.php?id=9862 There is a serious problem with fopen when there are numbers in the URL: http://www.xxxxxxx.com:8080/some.php?Origin=a&DocNum=1 Result: Warning: fopen() [function.fopen]: php_hostconnect: connect failed in C:\phpfiles\some.php on line 150 Warning: fopen(http://www.xxxxxxx.com:8080/some.php?Origin=a&DocNum=1) [function.fopen]: failed to create stream: Bad file descriptor in C:\phpfiles\some.php on line 150 Remove the port number in the URL and it works fine: http://www.xxxxxxx.com/some.php?Origin=a&DocNum=1 This seems to be a random bug that occurs on some machines and not others. We can reproduce it 100% of the time if someone wants to check on our server. Please don't just test this on one machine and report back that it works for you. There is something wrong here and we really need to get to the bottom of it. It's not a redirection problem. Thanks. Keep up the great work! Ottawa -- Edit bug report at http://bugs.php.net/?id=22579&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22579&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22579&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22579&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22579&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22579&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22579&r=support Expected behavior: http://bugs.php.net/fix.php?id=22579&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22579&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22579&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22579&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22579&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22579&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22579&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22579&r=gnused
