From:             bah at xpto dot org
Operating system: n/a
PHP version:      5CVS-2005-06-28 (dev)
PHP Bug Type:     Feature/Change Request
Bug description:  output_reset_rewrite_vars doesnt check the number of 
parameters

Description:
------------
Index: output.c
===================================================================
RCS file: /repository/php-src/main/output.c,v
retrieving revision 1.166
diff -u -r1.166 output.c
--- output.c    28 Apr 2005 14:20:28 -0000      1.166
+++ output.c    28 Jun 2005 19:41:33 -0000
@@ -1042,6 +1042,10 @@
    Reset(clear) URL rewriter values */
 PHP_FUNCTION(output_reset_rewrite_vars)
 {
+       if (ZEND_NUM_ARGS() != 0) {
+               ZEND_WRONG_PARAM_COUNT();
+       }
+
        if (php_url_scanner_reset_vars(TSRMLS_C) == SUCCESS) {
                RETURN_TRUE;
        } else {


-- 
Edit bug report at http://bugs.php.net/?id=33502&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=33502&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=33502&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=33502&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=33502&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=33502&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=33502&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=33502&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=33502&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=33502&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=33502&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=33502&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=33502&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=33502&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=33502&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=33502&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=33502&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=33502&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=33502&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=33502&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=33502&r=mysqlcfg

Reply via email to