ID:               28029
 Comment by:       bwb at bweebhosting dot com
 Reported By:      coadmin at hostings dot pl
 Status:           Feedback
 Bug Type:         URL related
 Operating System: FreeBSD 4.9 and 5.2.1
 PHP Version:      4CVS-2004-04-16 (stable)
 New Comment:

I am having this problem as well. The interesting thing is that if I
run:

<?
if (fopen("http://www.cnn.com",r)) echo "OK";
?>

Through a shell as root it works fine and returns ok, as well if I have
fopen open a local file. Through my web browser using it to open a
local file works as well and its only when its trying to open an
outside connection that it hangs. 

This seems to indicate its a run/permission problem with apache maybe?

Thanks, Ben W.


Previous Comments:
------------------------------------------------------------------------

[2004-04-29 23:04:04] [EMAIL PROTECTED]

Disable all zend extensions first..then if you still get the segfault
with non-debug build, get a backtrace of THAT, it might show
_something_..


------------------------------------------------------------------------

[2004-04-29 13:53:41] coadmin at hostings dot pl

Hello,

I cleared my own CFLAGS and also tried to compile with exported
CFLAGS=-O but problem is still recurrent.

I can't reproduce problem in --enable-debug.

I'm waiting for any other hints.

------------------------------------------------------------------------

[2004-04-28 21:00:36] coadmin at hostings dot pl

Hello,

I'm still doing tests. I'll post answer soon. Please keep this ticket.
Thanks.

------------------------------------------------------------------------

[2004-04-23 18:04:28] [EMAIL PROTECTED]

When compiling PHP without debug do you export your own 
CFLAGS? It is possible that with debug your compiler over 
optimizes and consequently breaks the code. If you are not 
setting any optimization options, try doing export 
CFLAGS=-O before running configure/make/make install 
procedure. 

------------------------------------------------------------------------

[2004-04-21 15:30:27] coadmin at hostings dot pl

Heh, the problem is *strange*...

As you reqested, I decided to compile PHP with --enable-debug. All
problems went away... The aren't any segfaults and php stream releated
functions works correctly all the time.

When I compile PHP again, without debug, it reproduces errors
quickly...

I tried PHP-4.3.3 and 4.3.7dev - both of them works preety good with
--enable-debug, and reproduce erros in not debug mode.

What's it? Other configure options are the same. In --enable-debug only
Zend doesn't work, but my scripts doesn't use it.

Please help. I don't know gow to reproduce errors with --enable-debug.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/28029

-- 
Edit this bug report at http://bugs.php.net/?id=28029&edit=1

Reply via email to