|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35854 PHP hangs on session-related functions on form submit
Submitted: 2005-12-30 20:04 UTC Modified: 2006-01-07 01:00 UTC
Avg. Score:4.2 ± 1.6
Reproduced:4 of 4 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: jlampa at poczta dot onet dot pl Assigned:
Status: No Feedback Package: Session related
PHP Version: 4.4.1 OS: Windows XP Professional
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
27 + 41 = ?
Subscribe to this entry?

 [2005-12-30 20:04 UTC] jlampa at poczta dot onet dot pl
SOMETIMES, after POST-ing a form, a script hangs on any session-related function. This problm appears and stops at random. It only happens on one server, I haven't been able to reproduce it in any other environment

Reproduce code:
Eg. session_start() or session_register()

Expected result:
The session-related functions should work properly instead of hanging. 

Actual result:
Script hangs on first session-related function


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-12-30 20:08 UTC]
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at

If you can provide more information, feel free to add it
to this bug and change the status back to "Open".

Thank you for your interest in PHP.

 [2006-01-07 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2006-06-09 13:35 UTC] geert at hauwaerts dot be
I have exactly the same problem:

As jlampa described the problem appears and stops at random.

When I first load the page (no session started yet) I get the HTML code. After submitting the form nothing hapens and the page look lik it's stuck in a foreach/while loop.

When puttting exit; before session start (right before submitting) it doesn't happen.

So I am 100% sure that session_start() hangs for some reason...


<form method="get" action="?">
    <select name="router" onchange="this.form.submit();">
        <option value="">select a router</option>
        <option value="Freebix" ></option>
    <input type="submit" value="select"/>

=== END ===
 [2006-06-09 13:37 UTC] geert at hauwaerts dot be
Oh, and I am using PHP 5.1.4 compiled by source on Gentoo.

Below are my configure lines:

'./configure' '--with-config-file-path=/etc' '--with-apxs2=/usr/local/apache/bin/apxs' '--enable-safe-mode' '--disable-ipv6' '--with-openssl' '--with-zlib' '--enable-bcmath' '--with-bz2' '--enable-calendar' '--with-curl' '--with-inifile' '--with-flatfile' '--enable-dbase' '--enable-dbx' '--enable-exif' '--enable-ftp' '--with-gd' '--with-gettext' '--with-gmp' '--with-imap' '--with-imap-ssl' '--with-mcrypt' '--with-mhash' '--with-mysql' '--with-readline' '--with-mm' '--with-snmp' '--enable-sockets' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--with-tidy' '--with-xsl' '--enable-yp' '--with-pear' '--with-zip' '--enable-gd-native-ttf' '--with-ttf' '--with-jpeg-dir=/usr/lib' '--with-freetype-dir=/usr/lib'
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 29 09:01:33 2024 UTC