php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35099 After Upgrade Applications Timeout after session_start() Called.
Submitted: 2005-11-04 06:15 UTC Modified: 2005-11-04 18:31 UTC
From: webmaster at rdc dot ab dot ca Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.4.1 OS: FreeBSD 4.9-STABLE
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: webmaster at rdc dot ab dot ca
New email:
PHP Version: OS:

 

 [2005-11-04 06:15 UTC] webmaster at rdc dot ab dot ca
Description:
------------
Previously to upgrading php-4.4.1 we had no apparent problems with the php session_start() function. After the upgrade we noticed that this one specific script was starting to fail at random occurrences on a production web page.

I did try removing the Zend Optimizer, changing the max_execution setting and remming out the session_start() function. In all cases the only difference was the remming out of the session_start().

Currently we have downgraded to php 4.4.0, everything works fine again, but are nervous about the security issues attached to that.

NOTE: It does look similar to #17451, I'm confused about why the difference between 4.4.0 and 4.4.1 and hence submitting this.

## Configure Line 

./configure  
--with-mysql=/usr/local/mysql/ 
--with-apache=../apache_1.3.34 --with-jpeg-dir=/usr/local/include --with-png-dir=/usr/local/include --with-freetype-dir=/usr/local/include/freetype2 --with-ttf=/usr/local/ttf 
--enable-shmop 
--with-zlib-dir=/usr/local/zlib/ 
--with-mcrypt 
--with-openssl=/usr/local/ssl/

## Unique information...

## Unique PHP.INI information...

zend_optimizer.version=2.5.10a
session.cache_expire = 15
output_buffering = 4096
allow_call_time_pass_reference = Off
memory_limit = 16M (1024MB Base Ram)
display_errors = Off
log_errors = On
error_log = "OUR_LOCAL_PATH"
variables_order = "GPCS"
register_globals = On <<-- php_value register_globals 0 in apache.
register_argc_argv = Off
default_socket_timeout = 60
session.save_path = /tmp <<-- chmod'd 1777
max_execution_time = 30


Reproduce code:
---------------
## Sample Script

<?php
  session_start();
  printf("Got here!<br />\n"); // Doesn't get here.
  exit();
?>

Expected result:
----------------
Got here!

Actual result:
--------------
Times out.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-11-04 09:04 UTC] derick@php.net
Do not file bugs when you have Zend extensions (zend_extension=)
loaded. Examples are Zend Optimizer, Zend Debugger, Turck MM Cache,
APC, Xdebug and ionCube loader.  These extensions often modify engine
behavior which is not related to PHP itself.

.
 [2005-11-04 18:31 UTC] webmaster at rdc dot ab dot ca
> I did try removing the Zend Optimizer, 

Bogus? Maybe I will reword this.

I REMOVED the Zend Optimizer and the problem STILL OCCURRED.

A key point her folks:

./php-4.4.0/
gmake install
cd ../apache-1.3.34
sh config.ourSpecificConfig
gmake
/usr/local/apache/bin/apachectrl stop
gmake install
/usr/local/apache/bin/apachectrl start
**RELOAD THE PAGE WORKS**

-- VERSUS -- 

./php-4.4.1/
gmake install
cd ../apache-1.3.34
sh config.ourSpecificConfig
gmake
/usr/local/apache/bin/apachectrl stop
gmake install
/usr/local/apache/bin/apachectrl start
**RELOAD THE PAGE FAILS**

What would you do Derick?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 19:01:32 2024 UTC