php.net |  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
Votes:5
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
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: jlampa at poczta dot onet dot pl
New email:
PHP Version: OS:

 

 [2005-12-30 20:04 UTC] jlampa at poczta dot onet dot pl
Description:
------------
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

Patches

Pull Requests

History

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

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...
 

submit.php:
===========

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

=== 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: Thu Dec 26 12:01:30 2024 UTC