php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9427 PHP hangs when packets aren't returned when using session_start()
Submitted: 2001-02-23 13:06 UTC Modified: 2001-10-16 01:40 UTC
From: rargo at mcleodusa dot com Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.4pl1 OS: Linux Mandrake 7.2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: rargo at mcleodusa dot com
New email:
PHP Version: OS:

 

 [2001-02-23 13:06 UTC] rargo at mcleodusa dot com
Short script:
<? mysql_connect("10.0.0.244", "user", "passwd");?>
Really any socket connection code.

Configure Command:
'./configure' '--with-apxs=/usr/sbin/apxs' '--with-mysql=/usr'
 '--with-mcrypt=../mcrypt-2.2.6' '--with-mhash=../mhash-0.8.4' '--with-ldap' '--with-fdftk' '--with-pdflib' '--with-zlib' '--with-gd' '--with-pspell' '--with-oci8' '--with-java=/opt/IBMJava2-13' '--enable-sigchild'

Pretty much the default php.ini.

We noticed this occurring once we put the machine inside a DMZ.  If PHP tries to connect to an address that the DMZ isn't allowing, the DMZ throws the packets away and PHP sits there waiting for a response.  This only happens when session_start() is called in the page.  If session_start() is commented out, the normal PHP warnings appear telling me of mysql or ldap not being able to connect.  

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-07 12:49 UTC] derick@php.net
Marking as fix before 4.0.6
 [2001-10-16 01:40 UTC] ssb@php.net
I'm not sure what PHP should do here.  If an external library (mysql) does a connect and your firewall drops packages, that's a configuration problem and IMHO not something PHP should go to great efforts to try handling.  I think you will find that most software behaves this way (hangs until tcp connect times out) when facing a similar setup.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu May 08 07:01:27 2025 UTC