php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14453 session_start() provokes a crash of php/apache
Submitted: 2001-12-12 08:37 UTC Modified: 2002-02-02 22:18 UTC
Votes:7
Avg. Score:4.4 ± 0.7
Reproduced:6 of 6 (100.0%)
Same Version:6 (100.0%)
Same OS:5 (83.3%)
From: nfankhauser at swissonline dot ch Assigned:
Status: Closed Package: Session related
PHP Version: 4.1.0 OS: win2k
Private report: No CVE-ID: None
 [2001-12-12 08:37 UTC] nfankhauser at swissonline dot ch
<?
session_start();
?>

this script will cause php/apache to crash.

used configuration: 
php 4.10 / win32 as SAPI
apache 1.3.20 / win32

unfortunately, I don't have the time now to further investigate the problem... please contact me if there are any workarounds / solutions for this problem!

regards
n. fankhauser

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-14 09:16 UTC] nfankhauser at swissonline dot ch
hi

I found the cause for these crashes:
If in the php.ini is a wrong path for the session files, php crashes without further notice, whereas php 4.0.6 reported this when trying to start a session with session_start():

Warning: open(./tmp\sess_7a7c42ff822a8016bb5d7b5625a4bc89, O_RDWR) failed: m (2) in c:\some\path\file.php on line 7

this should be adressed in a future release, because crashes for such reasons are not acceptible (even more if an older version behaved correctly!).

regards
n. fankhauser
 [2001-12-22 11:31 UTC] sander@php.net
Reproduced with the final 4.1.0 on Windows 2000 with Apache 1.3.22.
 [2002-01-12 06:34 UTC] lazybutt666 at yahoo dot com
A suggestion to help reduce this error:
In future releases php.ini-dist's session.save_path should contain the value of c:\php\temp\ or something and not "/tmp" which does not exist on Windows platforms!
 [2002-01-17 13:26 UTC] flash at drewnels dot net
changing the path fixes the crash problem when session.save_handler is set to 'files'... but what causes the crash when it is set to  'user' ?
 [2002-01-18 01:41 UTC] nohn@php.net
Reproduced this Crash with PHP 4.1.1 (www.php4win.com) and Apache 1.3.22 on Windows NT 4 Server.
 [2002-01-29 01:16 UTC] aurigus at aurigus dot net
I also noticed this running WinXP, Apache 2.0.28 and PHP 4.1.1. As stated, Setting the correct temp directory for sessions fixed problem. 

Thanks.
 [2002-02-02 22:18 UTC] yohgaki@php.net
This bug has been fixed in CVS.
 [2003-06-24 17:22 UTC] mugane at hotmail dot com
I have a similar problem... So I tried to switch session.save_path to the directory that currently has a bunch of sess_03796f43ceb58a273cc6f3d22474e99d - like files in it (presumably the session path) - no luck. 

Perhaps someone in the know could advise on how one would determine the correct directory or if there are any special syntax rules in defining it...

P
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jul 02 00:01:36 2024 UTC