php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35007 CLI SAPI segfaults with non-existing parameter
Submitted: 2005-10-28 17:23 UTC Modified: 2005-10-30 18:23 UTC
From: sebastian@php.net Assigned:
Status: Not a bug Package: Reproducible crash
PHP Version: 5CVS-2005-10-28 (CVS) OS: Windows XP
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: sebastian@php.net
New email:
PHP Version: OS:

 

 [2005-10-28 17:23 UTC] sebastian@php.net
Description:
------------
C:\home\php>php -non-existing-param
Usage: php [options] [-f] <file> [--] [args...]
       php [options] -r <code> [--] [args...]
       php [options] [-B <begin_code>] -R <code> [-E <end_code>] [--] [args...]
       php [options] [-B <begin_code>] -F <file> [-E <end_code>] [--] [args...]
       php [options] -- [args...]
       php [options] -a

  -a               Run interactively
  -c <path>|<file> Look for php.ini file in this directory
  -n               No php.ini file will be used
  -d foo[=bar]     Define INI entry foo with value 'bar'
  -e               Generate extended information for debugger/profiler
  -f <file>        Parse <file>.
  -h               This help
  -i               PHP information
  -l               Syntax check only (lint)
  -m               Show compiled in modules
  -r <code>        Run PHP <code> without using script tags <?..?>
  -B <begin_code>  Run PHP <begin_code> before processing input lines
  -R <code>        Run PHP <code> for every input line
  -F <file>        Parse and execute <file> for every input line
  -E <end_code>    Run PHP <end_code> after processing all input lines
  -H               Hide any passed arguments from external tools.
  -s               Display colour syntax highlighted source.
  -v               Version number
  -w               Display source with stripped comments and whitespace.
  -z <file>        Load Zend extension <file>.

  args...          Arguments passed to script. Use -- args when first argument
                   starts with - or script is read from stdin

Actual result:
--------------
php5ts_debug.dll!php_message_handler_for_zend(long message=4, void * data=0x00a410d8)  Line 916 + 0xf	C
php5ts_debug.dll!zend_message_dispatcher(long message=4, void * data=0x00a410d8)  Line 866 + 0x10	C
php5ts_debug.dll!shutdown_memory_manager(int silent=0, int full_shutdown=1, void * * * tsrm_ls=0x00a32d78)  Line 561 + 0xb	C
php5ts_debug.dll!alloc_globals_dtor(_zend_alloc_globals * alloc_globals_p=0x00a35e98, void * * * tsrm_ls=0x00a32d78)  Line 509 + 0xd	C
php5ts_debug.dll!tsrm_shutdown()  Line 180 + 0x21	C
php.exe!main(int argc=2, char * * argv=0x00a32cf8)  Line 1155 + 0x8	C
php.exe!mainCRTStartup()  Line 398 + 0x11	C
kernel32.dll!7c816d4f() 	
kernel32.dll!7c8399f3() 	

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-28 17:36 UTC] sebastian@php.net
Fix summary.
 [2005-10-30 18:23 UTC] iliaa@php.net
Cannot replicate on Linux with ZTS build and problem cannot be replicated on Win32 as well.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 14:04:04 2025 UTC