#22579 [Fbk->Opn]: fopen() number in URL = Bad file descriptor
| From: | ottawasixtyseven at hotmail dot com | Date: | Wed, 12 Mar 2003 04:01:05 +0000 |
| Subject: | #22579 [Fbk->Opn]: fopen() number in URL = Bad file descriptor | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-35397@lists.php.net to get a copy of this message | ||
ID: 22579
User updated by: ottawasixtyseven at hotmail dot com
Reported By: ottawasixtyseven at hotmail dot com
-Status: Feedback
+Status: Open
Bug Type: Filesystem function related
Operating System: ALL
PHP Version: 4.3.0
New Comment:
OK. Just wanted to let you know we're trying to test the latest
snapshot to see if it fixes the fopen problem. I guess we'll have to
weed out the odbc parts.
Previous Comments:
------------------------------------------------------------------------
[2003-03-11 12:49:15] sniper@php.net
I can't get our application running on the latest snapshot. I can run
phpinfo() but when I try to $DB = odbc_connect I get errors. More
specifically, when I first echo $DB I get "Resource id #3" when echo
it
again I get
"FATAL: erealloc(): Unable to allocate 1331643757 bytes"
I have tried installing the latest snapshot on three separate servers.
Two that were already running PHP 4.3 and one clean server.
I'm not able to test if the latest snapshot has fixed the fopen() bug.
Any ideas why my odbc_connect is failing?
--------
What does odbc have to do with fopen() problem?
Test with separate script which doesn't have odbc stuff in it..
And the odbc problem, open a new report about that one.
------------------------------------------------------------------------
[2003-03-06 20:50:16] ottawasixtyseven at hotmail dot com
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 this bug report at http://bugs.php.net/?id=22579&edit=1