php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53807 Apache CRASH (getopt)
Submitted: 2011-01-21 22:39 UTC Modified: 2011-11-23 02:47 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 1 (0.0%)
From: hm at mail dot ru Assigned: laruence (profile)
Status: Closed Package: Output Control
PHP Version: 5.3.5 OS: WINDOWS XP SP3 x86
Private report: No CVE-ID: None
 [2011-01-21 22:39 UTC] hm at mail dot ru
Description:
------------
Apache is restarting (crash) after launch the script in browser.

Test script:
---------------
<?php
    $options = getopt('t:d:e:l');

Expected result:
----------------
Crash apache


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-28 21:55 UTC] felipe@php.net
-Status: Open +Status: Feedback
 [2011-01-28 21:55 UTC] felipe@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php for *NIX and
http://bugs.php.net/bugs-generating-backtrace-win32.php for Win32

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.


 [2011-11-22 08:57 UTC] dio at integraasp dot com
Description :
same problem with getopt, apache connection was reset after runs the following script from browser. in the CLI, the script works fine.

the script:
---------------
<?php
    $arrOpt = getopt("d:");

result in the browser :
---------------
The connection was reset
 [2011-11-23 02:47 UTC] laruence@php.net
I believe this bug has been fixed in: http://svn.php.net/viewvc?
view=revision&revision=312079

thanks
 [2011-11-23 02:47 UTC] laruence@php.net
-Status: Feedback +Status: Closed -Assigned To: +Assigned To: laruence
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Sep 18 15:01:25 2020 UTC