From: neil dot r dot haslewood at web dot de
Operating system: Windows XP Pro (SP2 build 2600)
PHP version: 5.0.2
PHP Bug Type: CGI related
Bug description: CLI Access Violation in XP
Description:
------------
cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"
PHP API 20031224
PHP Extension 20040412
Tried enclosed from command line and encountered the following several
times:
Windows Error Report Popup states:
'CLI has encountered a problem and needs to close'
Visual C++ debugger traps error:
'Unhandled exception in php.exe (PHP5TS.DLL): 0xC0000005: Access
Violation'
Reproduce code:
---------------
C:\Documents and Settings\Me>php -a
Interactive mode enabled
<?php
$s1 = 'ababab abab ab ab';
$s2 = "abbaaab bbaab aaba";
$r = "/^((ab)+\s)*(ab)+$/";
if(preg_match($r, $s1)){
echo "$s1 valid";
}
else{
echo "$s2 invalid";
}
ababab abab ab ab valid
Windows Error Report Popup then reveals:
'CLI has encountered a problem and needs to close'
Visual C debugger traps error
Expected result:
----------------
$s1 valid
--
Edit bug report at http://bugs.php.net/?id=30818&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30818&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=30818&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=30818&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=30818&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=30818&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=30818&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=30818&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=30818&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=30818&r=support
Expected behavior: http://bugs.php.net/fix.php?id=30818&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=30818&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=30818&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=30818&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30818&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=30818&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=30818&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=30818&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=30818&r=float
MySQL Configuration Error: http://bugs.php.net/fix.php?id=30818&r=mysqlcfg