helly           Mon Jan 23 02:26:32 2006 UTC

  Modified files:              (Branch: PHP_5_1)
    /php-src/ext/spl    spl_iterators.c 
  Log:
  - MFH Fix error message
  
http://cvs.php.net/viewcvs.cgi/php-src/ext/spl/spl_iterators.c?r1=1.73.2.20&r2=1.73.2.21&diff_format=u
Index: php-src/ext/spl/spl_iterators.c
diff -u php-src/ext/spl/spl_iterators.c:1.73.2.20 
php-src/ext/spl/spl_iterators.c:1.73.2.21
--- php-src/ext/spl/spl_iterators.c:1.73.2.20   Sun Jan  1 19:55:27 2006
+++ php-src/ext/spl/spl_iterators.c     Mon Jan 23 02:26:32 2006
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: spl_iterators.c,v 1.73.2.20 2006/01/01 19:55:27 helly Exp $ */
+/* $Id: spl_iterators.c,v 1.73.2.21 2006/01/23 02:26:32 helly Exp $ */
 
 #ifdef HAVE_CONFIG_H
 # include "config.h"
@@ -859,7 +859,7 @@
                        if (((flags & CIT_CALL_TOSTRING) && (flags & 
(CIT_TOSTRING_USE_KEY|CIT_TOSTRING_USE_CURRENT)))
                        || ((flags & 
(CIT_TOSTRING_USE_KEY|CIT_TOSTRING_USE_CURRENT)) == 
(CIT_TOSTRING_USE_KEY|CIT_TOSTRING_USE_CURRENT))) {
                                php_set_error_handling(EH_NORMAL, NULL 
TSRMLS_CC);
-                               
zend_throw_exception(spl_ce_InvalidArgumentException, "Flags must contain only 
one of CIT_CALL_TOSTRING, CIT_TOSTRING_USE_KEY, CIT_TOSTRING_USE_CURRENT", 0 
TSRMLS_CC);
+                               
zend_throw_exception(spl_ce_InvalidArgumentException, "Flags must contain only 
one of CATCH_GET_CHILD, CALL_TOSTRING, TOSTRING_USE_KEY, TOSTRING_USE_CURRENT", 
0 TSRMLS_CC);
                                return NULL;
                        }
                        intern->u.caching.flags |= flags & CIT_PUBLIC;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to