]> granicus.if.org Git - php/commitdiff
- There is no %v in 5.1 (found by Tony)
authorMarcus Boerger <helly@php.net>
Mon, 6 Mar 2006 10:09:13 +0000 (10:09 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 6 Mar 2006 10:09:13 +0000 (10:09 +0000)
ext/spl/spl_iterators.c

index f5bc893602a32f898f6ecfe7f3c5e9b1dcf64081..533223d48be647e20591051b8c9698d69660264a 100755 (executable)
@@ -817,7 +817,7 @@ int spl_dual_it_call_method(char *method, INTERNAL_FUNCTION_PARAMETERS)
 
 #define SPL_CHECK_CTOR(intern, classname) \
        if (intern->dit_type == DIT_Unknown) { \
-               zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Classes derived from %v must call %v::__construct()", \
+               zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "Classes derived from %v must call %s::__construct()", \
                                (spl_ce_##classname)->name, (spl_ce_##classname)->name); \
                return; \
        }
@@ -836,7 +836,7 @@ static spl_dual_it_object* spl_dual_it_construct(INTERNAL_FUNCTION_PARAMETERS, z
        intern = (spl_dual_it_object*)zend_object_store_get_object(getThis() TSRMLS_CC);
        
        if (intern->dit_type != DIT_Unknown) {
-               zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "%v::getIterator() must be called exactly once per instance", ce_base->name);
+               zend_throw_exception_ex(spl_ce_BadMethodCallException, 0 TSRMLS_CC, "%s::getIterator() must be called exactly once per instance", ce_base->name);
                return NULL;
        }