#25504 [NEW]: not reporting wrong parameter count
| From: | thierry dot graff at laposte dot net | Date: | Fri, 12 Sep 2003 00:28:57 +0000 |
| Subject: | #25504 [NEW]: not reporting wrong parameter count | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-47486@lists.php.net to get a copy of this message | ||
From: thierry dot graff at laposte dot net
Operating system: windows XP pro
PHP version: 4.3.3
PHP Bug Type: Reproducible crash
Bug description: not reporting wrong parameter count
Description:
------------
The following call :
$matches = preg_match_all($pattern, $str);
will not lead to an error message saying that one parameter is missing,
but the interpreter crashes, and the following message is displayed :
"CGI Error
The specified CGI application misbehaved by not returning a complete set
of HTTP headers. The headers it did return are:"
(no header specified in the message)
The correct call :
preg_match_all($pattern, $str, $matches);
works properly.
Reproduce code:
---------------
$matches = preg_match_all($pattern, $str);
Expected result:
----------------
Warning: Wrong parameter count for preg_match_all()
Actual result:
--------------
CGI Error
The specified CGI application misbehaved by not returning a complete set
of HTTP headers. The headers it did return are:
--
Edit bug report at http://bugs.php.net/?id=25504&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25504&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25504&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25504&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25504&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25504&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25504&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25504&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25504&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25504&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25504&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25504&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25504&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25504&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25504&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25504&r=gnused