PHP 4.0 Bug #7880 Updated: PHP_URL_FOPEN doesn't work

From: Date: Mon, 20 Nov 2000 08:35:27 +0000
Subject: PHP 4.0 Bug #7880 Updated: PHP_URL_FOPEN doesn't work
Groups: php.dev 
Request: Send a blank email to php-dev+get-38548@lists.php.net to get a copy of this message
ID: 7880 Updated by: jason Reported By: Alan@Halachmi.net Status: Feedback Bug Type: *URL Functions Assigned To: jason@php.net Comments: I just noticed your update about the cgi version working. When you build php 4.0.3pl1 for apxs, can you verify the define statement I listed above exists in php_config.h? I just want to rule out the possibility of a build problem. The other information I requested would be helpful as well -Jason Previous Comments: --------------------------------------------------------------------------- [2000-11-20 03:19:00] jason@php.net Can you try trussing apache in single process mode ( truss ./httpd -X ). Request the script, and see if it actually makes a socket connect request. From your description, it most likely will not. Also can you give me the details of your compile environment( what make and cc you are using) Im sure you have thought of this, but is there a possibility of a corrupt build? Have you tried removing config.cache, reconfiguring, and rerunning? Check your php_config.h to verify that #define PHP_URL_FOPEN 1 exists. If all of these check out try building a seperate tree as a standalone cgi, run ./php < test-furl.php and see if you get the same results. -Jason --------------------------------------------------------------------------- [2000-11-20 03:11:55] Alan@Halachmi.net I compiled the CGI version of 4.0.3pl1 and the scripts noted in this bug DOES run in the CGI version. --------------------------------------------------------------------------- [2000-11-20 02:38:06] jason@php.net Sorry, I was wrong, the ini directive did not make 4.0.3pl1 Ill take a look into this. -Jason --------------------------------------------------------------------------- [2000-11-20 02:02:46] Alan@Halachmi.net I have added the following line to my php.ini file, as it was not included in the php.ini-dist for 4.0.3pl1: allow_url_fopen = On; This did not change the behavior or the error. I ran a truss to ensure that the apxs was loaded the correct php.ini file and the correct libs. From the output of truss, I am certain that the correct DSO and php.ini are being read. --------------------------------------------------------------------------- [2000-11-20 01:44:50] jason@php.net As of 4.0.3, url_fopen is ini enabled not compile time enabled. Verify that youe php.ini contains "allow_url_fopen = On" I have tested this across Solaris 2.6-2.8 and it works fine. I'm marking this as bogus, reopen if you still have problems. -Jason --------------------------------------------------------------------------- The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online. Full Bug description available at: http://bugs.php.net/?id=7880

« previous php.dev (#38548) next »