]> granicus.if.org Git - php/commitdiff
oops.. fix copy/paste typo
authorAntony Dovgal <tony2001@php.net>
Wed, 5 Jul 2006 11:54:08 +0000 (11:54 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 5 Jul 2006 11:54:08 +0000 (11:54 +0000)
Zend/zend_object_handlers.c

index 35dd5ce9e8ec2568b29ef26486e9936463926cec..f880d441ef9acb8fd9d3eadcdc9ee1407a4b17ad 100644 (file)
@@ -910,9 +910,9 @@ ZEND_API union _zend_function *zend_std_get_constructor(zval *object TSRMLS_DC)
                         */
                        if (!zend_check_protected(zend_get_function_root_class(constructor), EG(scope))) {
                                if (EG(scope)) {
-                                       zend_error(E_ERROR, "Call to private %s::%s() from context '%s'", constructor->common.scope->name, constructor->common.function_name, EG(scope)->name);
+                                       zend_error(E_ERROR, "Call to protected %s::%s() from context '%s'", constructor->common.scope->name, constructor->common.function_name, EG(scope)->name);
                                } else {
-                                       zend_error(E_ERROR, "Call to private %s::%s() from invalid context", constructor->common.scope->name, constructor->common.function_name);
+                                       zend_error(E_ERROR, "Call to protected %s::%s() from invalid context", constructor->common.scope->name, constructor->common.function_name);
                                }
                        }
                }