cvs: ZendEngine2 / zend_execute.c zend_object_handlers.c zend_objects.c php-src/tests/classes factory_and_singleton_002.phpt
factory_and_singleton_003.phpt factory_and_singleton_004.phpt factory_and_singleton_005.phpt factory_and_singleton_006.phpt
factory_and_singleton_007.phpt factory_and_singleton_008.phpt
| From: | Marcus Boerger | Date: | Tue, 02 Sep 2003 14:08:59 +0000 |
| Subject: | cvs: ZendEngine2 / zend_execute.c zend_object_handlers.c zend_objects.c php-src/tests/classes factory_and_singleton_002.phpt factory_and_singleton_003.phpt factory_and_singleton_004.phpt factory_and_singleton_005.phpt factory_and_singleton_006.phpt factory_and_singleton_007.phpt factory_and_singleton_008.phpt |
||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-1792@lists.php.net to get a copy of this message | ||
helly Tue Sep 2 10:08:59 2003 EDT
Modified files:
/php-src/tests/classes factory_and_singleton_002.phpt
factory_and_singleton_003.phpt
factory_and_singleton_004.phpt
factory_and_singleton_005.phpt
factory_and_singleton_006.phpt
factory_and_singleton_007.phpt
factory_and_singleton_008.phpt
/ZendEngine2 zend_execute.c zend_object_handlers.c zend_objects.c
Log:
Synch/Unify error messages related to function/method calls
Index: php-src/tests/classes/factory_and_singleton_002.phpt diff -u php-src/tests/classes/factory_and_singleton_002.phpt:1.5 php-src/tests/classes/factory_and_singleton_002.phpt:1.6 --- php-src/tests/classes/factory_and_singleton_002.phpt:1.5 Sat Aug 9 10:34:44 2003 +++ php-src/tests/classes/factory_and_singleton_002.phpt Tue Sep 2 10:08:58 2003 @@ -97,4 +97,4 @@ int(1) Done -Warning: Call to protected test::__destruct from context '' during shutdown ignored in Unknown on line 0 +Warning: Call to protected test::__destruct() from context '' during shutdown ignored in Unknown on line 0 Index: php-src/tests/classes/factory_and_singleton_003.phpt diff -u php-src/tests/classes/factory_and_singleton_003.phpt:1.1 php-src/tests/classes/factory_and_singleton_003.phpt:1.2 --- php-src/tests/classes/factory_and_singleton_003.phpt:1.1 Tue Jul 1 14:34:42 2003 +++ php-src/tests/classes/factory_and_singleton_003.phpt Tue Sep 2 10:08:58 2003 @@ -15,4 +15,4 @@ echo "Done\n"; ?> --EXPECTF-- -Fatal error: Call to protected constructor from context '' %sfactory_and_singleton_003.php on line %d +Fatal error: Call to protected test::__construct() from context '' %sfactory_and_singleton_003.php on line %d Index: php-src/tests/classes/factory_and_singleton_004.phpt diff -u php-src/tests/classes/factory_and_singleton_004.phpt:1.1 php-src/tests/classes/factory_and_singleton_004.phpt:1.2 --- php-src/tests/classes/factory_and_singleton_004.phpt:1.1 Tue Jul 1 15:12:23 2003 +++ php-src/tests/classes/factory_and_singleton_004.phpt Tue Sep 2 10:08:58 2003 @@ -15,4 +15,4 @@ echo "Done\n"; ?> --EXPECTF-- -Fatal error: Call to private constructor from context '' %sfactory_and_singleton_004.php on line %d +Fatal error: Call to private test::__construct() from context '' %sfactory_and_singleton_004.php on line %d Index: php-src/tests/classes/factory_and_singleton_005.phpt diff -u php-src/tests/classes/factory_and_singleton_005.phpt:1.3 php-src/tests/classes/factory_and_singleton_005.phpt:1.4 --- php-src/tests/classes/factory_and_singleton_005.phpt:1.3 Sat Aug 9 10:32:33 2003 +++ php-src/tests/classes/factory_and_singleton_005.phpt Tue Sep 2 10:08:58 2003 @@ -16,4 +16,4 @@ echo "Done\n"; ?> --EXPECTF-- -Fatal error: Call to protected test::__destruct from context '' in %sfactory_and_singleton_005.php on line %d +Fatal error: Call to protected test::__destruct() from context '' in %sfactory_and_singleton_005.php on line %d Index: php-src/tests/classes/factory_and_singleton_006.phpt diff -u php-src/tests/classes/factory_and_singleton_006.phpt:1.3 php-src/tests/classes/factory_and_singleton_006.phpt:1.4 --- php-src/tests/classes/factory_and_singleton_006.phpt:1.3 Sat Aug 9 10:32:33 2003 +++ php-src/tests/classes/factory_and_singleton_006.phpt Tue Sep 2 10:08:58 2003 @@ -16,5 +16,5 @@ echo "Done\n"; ?> --EXPECTF-- -Fatal error: Call to private test::__destruct from context '' in %sfactory_and_singleton_006.php on line %d +Fatal error: Call to private test::__destruct() from context '' in %sfactory_and_singleton_006.php on line %d Index: php-src/tests/classes/factory_and_singleton_007.phpt diff -u php-src/tests/classes/factory_and_singleton_007.phpt:1.1 php-src/tests/classes/factory_and_singleton_007.phpt:1.2 --- php-src/tests/classes/factory_and_singleton_007.phpt:1.1 Tue Jul 1 15:59:50 2003 +++ php-src/tests/classes/factory_and_singleton_007.phpt Tue Sep 2 10:08:58 2003 @@ -17,4 +17,4 @@ echo "Done\n"; ?> --EXPECTF-- -Fatal error: Call to protected __clone from context '' %sfactory_and_singleton_007.php on line %d +Fatal error: Call to protected test::__clone() from context '' %sfactory_and_singleton_007.php on line %d Index: php-src/tests/classes/factory_and_singleton_008.phpt diff -u php-src/tests/classes/factory_and_singleton_008.phpt:1.2 php-src/tests/classes/factory_and_singleton_008.phpt:1.3 --- php-src/tests/classes/factory_and_singleton_008.phpt:1.2 Tue Jul 1 17:05:02 2003 +++ php-src/tests/classes/factory_and_singleton_008.phpt Tue Sep 2 10:08:58 2003 @@ -17,4 +17,4 @@ echo "Done\n"; ?> --EXPECTF-- -Fatal error: Call to private __clone from context '' %sfactory_and_singleton_008.php on line %d +Fatal error: Call to private test::__clone() from context '' %sfactory_and_singleton_008.php on line %d Index: ZendEngine2/zend_execute.c diff -u ZendEngine2/zend_execute.c:1.533 ZendEngine2/zend_execute.c:1.534 --- ZendEngine2/zend_execute.c:1.533 Sun Aug 31 07:38:31 2003 +++ ZendEngine2/zend_execute.c Tue Sep 2 10:08:59 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_execute.c,v 1.533 2003/08/31 11:38:31 helly Exp $ */ +/* $Id: zend_execute.c,v 1.534 2003/09/02 14:08:59 helly Exp $ */ #define ZEND_INTENSIVE_DEBUGGING 0 @@ -2475,7 +2475,7 @@ } if (zend_hash_find(EG(function_table), function_name_strval, function_name_strlen+1, (void **) &function)==FAILURE) { - zend_error(E_ERROR, "Call to undefined function: %s()", function_name_strval); + zend_error(E_ERROR, "Call to undefined function %s()", function_name_strval); } if (!is_const) { @@ -3122,13 +3122,13 @@ /* Ensure that if we're calling a private function, we're allowed to do so. */ if (ce != EG(scope)) { - zend_error(E_ERROR, "Call to private __clone from context '%s'", EG(scope) ? EG(scope)->name : ""); + zend_error(E_ERROR, "Call to private %s::__clone() from context '%s'", ce->name, EG(scope) ? EG(scope)->name : ""); } } else if ((clone->common.fn_flags & ZEND_ACC_PROTECTED)) { /* Ensure that if we're calling a protected function, we're allowed to do so. */ if (!zend_check_protected(clone->common.scope, EG(scope))) { - zend_error(E_ERROR, "Call to protected __clone from context '%s'", EG(scope) ? EG(scope)->name : ""); + zend_error(E_ERROR, "Call to protected %s::__clone() from context '%s'", ce->name, EG(scope) ? EG(scope)->name : ""); } } } Index: ZendEngine2/zend_object_handlers.c diff -u ZendEngine2/zend_object_handlers.c:1.65 ZendEngine2/zend_object_handlers.c:1.66 --- ZendEngine2/zend_object_handlers.c:1.65 Sun Aug 17 15:11:48 2003 +++ ZendEngine2/zend_object_handlers.c Tue Sep 2 10:08:59 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_object_handlers.c,v 1.65 2003/08/17 19:11:48 helly Exp $ */ +/* $Id: zend_object_handlers.c,v 1.66 2003/09/02 14:08:59 helly Exp $ */ #include "zend.h" #include "zend_globals.h" @@ -765,13 +765,13 @@ /* Ensure that if we're calling a private function, we're allowed to do so. */ if (object->value.obj.handlers->get_class_entry(object TSRMLS_CC) != EG(scope)) { - zend_error(E_ERROR, "Call to private constructor from context '%s'", EG(scope) ? EG(scope)->name : ""); + zend_error(E_ERROR, "Call to private %s::%s() from context '%s'", constructor->common.scope->name, constructor->common.function_name, EG(scope) ? EG(scope)->name : ""); } } else if ((constructor->common.fn_flags & ZEND_ACC_PROTECTED)) { /* Ensure that if we're calling a protected function, we're allowed to do so. */ if (!zend_check_protected(constructor->common.scope, EG(scope))) { - zend_error(E_ERROR, "Call to protected constructor from context '%s'", EG(scope) ? 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) ? EG(scope)->name : ""); } } } Index: ZendEngine2/zend_objects.c diff -u ZendEngine2/zend_objects.c:1.37 ZendEngine2/zend_objects.c:1.38 --- ZendEngine2/zend_objects.c:1.37 Sat Aug 9 10:32:33 2003 +++ ZendEngine2/zend_objects.c Tue Sep 2 10:08:59 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_objects.c,v 1.37 2003/08/09 14:32:33 helly Exp $ */ +/* $Id: zend_objects.c,v 1.38 2003/09/02 14:08:59 helly Exp $ */ #include "zend.h" #include "zend_globals.h" @@ -50,7 +50,7 @@ zend_nuke_object(object TSRMLS_CC); /* unfortunately we *must* destroy it now anyway */ zend_error(EG(in_execution) ? E_ERROR : E_WARNING, - "Call to private %s::__destruct from context '%s'%s", + "Call to private %s::__destruct() from context '%s'%s", ce->name, EG(scope) ? EG(scope)->name : "", EG(in_execution) ? "" : " during shutdown ignored"); @@ -64,7 +64,7 @@ zend_nuke_object(object TSRMLS_CC); /* unfortunately we *must* destroy it now anyway */ zend_error(EG(in_execution) ? E_ERROR : E_WARNING, - "Call to protected %s::__destruct from context '%s'%s", + "Call to protected %s::__destruct() from context '%s'%s", ce->name, EG(scope) ? EG(scope)->name : "", EG(in_execution) ? "" : " during shutdown ignored");
Index: php-src/tests/classes/factory_and_singleton_002.phpt diff -u php-src/tests/classes/factory_and_singleton_002.phpt:1.5 php-src/tests/classes/factory_and_singleton_002.phpt:1.6 --- php-src/tests/classes/factory_and_singleton_002.phpt:1.5 Sat Aug 9 10:34:44 2003 +++ php-src/tests/classes/factory_and_singleton_002.phpt Tue Sep 2 10:08:58 2003 @@ -97,4 +97,4 @@ int(1) Done -Warning: Call to protected test::__destruct from context '' during shutdown ignored in Unknown on line 0 +Warning: Call to protected test::__destruct() from context '' during shutdown ignored in Unknown on line 0 Index: php-src/tests/classes/factory_and_singleton_003.phpt diff -u php-src/tests/classes/factory_and_singleton_003.phpt:1.1 php-src/tests/classes/factory_and_singleton_003.phpt:1.2 --- php-src/tests/classes/factory_and_singleton_003.phpt:1.1 Tue Jul 1 14:34:42 2003 +++ php-src/tests/classes/factory_and_singleton_003.phpt Tue Sep 2 10:08:58 2003 @@ -15,4 +15,4 @@ echo "Done\n"; ?> --EXPECTF-- -Fatal error: Call to protected constructor from context '' %sfactory_and_singleton_003.php on line %d +Fatal error: Call to protected test::__construct() from context '' %sfactory_and_singleton_003.php on line %d Index: php-src/tests/classes/factory_and_singleton_004.phpt diff -u php-src/tests/classes/factory_and_singleton_004.phpt:1.1 php-src/tests/classes/factory_and_singleton_004.phpt:1.2 --- php-src/tests/classes/factory_and_singleton_004.phpt:1.1 Tue Jul 1 15:12:23 2003 +++ php-src/tests/classes/factory_and_singleton_004.phpt Tue Sep 2 10:08:58 2003 @@ -15,4 +15,4 @@ echo "Done\n"; ?> --EXPECTF-- -Fatal error: Call to private constructor from context '' %sfactory_and_singleton_004.php on line %d +Fatal error: Call to private test::__construct() from context '' %sfactory_and_singleton_004.php on line %d Index: php-src/tests/classes/factory_and_singleton_005.phpt diff -u php-src/tests/classes/factory_and_singleton_005.phpt:1.3 php-src/tests/classes/factory_and_singleton_005.phpt:1.4 --- php-src/tests/classes/factory_and_singleton_005.phpt:1.3 Sat Aug 9 10:32:33 2003 +++ php-src/tests/classes/factory_and_singleton_005.phpt Tue Sep 2 10:08:58 2003 @@ -16,4 +16,4 @@ echo "Done\n"; ?> --EXPECTF-- -Fatal error: Call to protected test::__destruct from context '' in %sfactory_and_singleton_005.php on line %d +Fatal error: Call to protected test::__destruct() from context '' in %sfactory_and_singleton_005.php on line %d Index: php-src/tests/classes/factory_and_singleton_006.phpt diff -u php-src/tests/classes/factory_and_singleton_006.phpt:1.3 php-src/tests/classes/factory_and_singleton_006.phpt:1.4 --- php-src/tests/classes/factory_and_singleton_006.phpt:1.3 Sat Aug 9 10:32:33 2003 +++ php-src/tests/classes/factory_and_singleton_006.phpt Tue Sep 2 10:08:58 2003 @@ -16,5 +16,5 @@ echo "Done\n"; ?> --EXPECTF-- -Fatal error: Call to private test::__destruct from context '' in %sfactory_and_singleton_006.php on line %d +Fatal error: Call to private test::__destruct() from context '' in %sfactory_and_singleton_006.php on line %d Index: php-src/tests/classes/factory_and_singleton_007.phpt diff -u php-src/tests/classes/factory_and_singleton_007.phpt:1.1 php-src/tests/classes/factory_and_singleton_007.phpt:1.2 --- php-src/tests/classes/factory_and_singleton_007.phpt:1.1 Tue Jul 1 15:59:50 2003 +++ php-src/tests/classes/factory_and_singleton_007.phpt Tue Sep 2 10:08:58 2003 @@ -17,4 +17,4 @@ echo "Done\n"; ?> --EXPECTF-- -Fatal error: Call to protected __clone from context '' %sfactory_and_singleton_007.php on line %d +Fatal error: Call to protected test::__clone() from context '' %sfactory_and_singleton_007.php on line %d Index: php-src/tests/classes/factory_and_singleton_008.phpt diff -u php-src/tests/classes/factory_and_singleton_008.phpt:1.2 php-src/tests/classes/factory_and_singleton_008.phpt:1.3 --- php-src/tests/classes/factory_and_singleton_008.phpt:1.2 Tue Jul 1 17:05:02 2003 +++ php-src/tests/classes/factory_and_singleton_008.phpt Tue Sep 2 10:08:58 2003 @@ -17,4 +17,4 @@ echo "Done\n"; ?> --EXPECTF-- -Fatal error: Call to private __clone from context '' %sfactory_and_singleton_008.php on line %d +Fatal error: Call to private test::__clone() from context '' %sfactory_and_singleton_008.php on line %d Index: ZendEngine2/zend_execute.c diff -u ZendEngine2/zend_execute.c:1.533 ZendEngine2/zend_execute.c:1.534 --- ZendEngine2/zend_execute.c:1.533 Sun Aug 31 07:38:31 2003 +++ ZendEngine2/zend_execute.c Tue Sep 2 10:08:59 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_execute.c,v 1.533 2003/08/31 11:38:31 helly Exp $ */ +/* $Id: zend_execute.c,v 1.534 2003/09/02 14:08:59 helly Exp $ */ #define ZEND_INTENSIVE_DEBUGGING 0 @@ -2475,7 +2475,7 @@ } if (zend_hash_find(EG(function_table), function_name_strval, function_name_strlen+1, (void **) &function)==FAILURE) { - zend_error(E_ERROR, "Call to undefined function: %s()", function_name_strval); + zend_error(E_ERROR, "Call to undefined function %s()", function_name_strval); } if (!is_const) { @@ -3122,13 +3122,13 @@ /* Ensure that if we're calling a private function, we're allowed to do so. */ if (ce != EG(scope)) { - zend_error(E_ERROR, "Call to private __clone from context '%s'", EG(scope) ? EG(scope)->name : ""); + zend_error(E_ERROR, "Call to private %s::__clone() from context '%s'", ce->name, EG(scope) ? EG(scope)->name : ""); } } else if ((clone->common.fn_flags & ZEND_ACC_PROTECTED)) { /* Ensure that if we're calling a protected function, we're allowed to do so. */ if (!zend_check_protected(clone->common.scope, EG(scope))) { - zend_error(E_ERROR, "Call to protected __clone from context '%s'", EG(scope) ? EG(scope)->name : ""); + zend_error(E_ERROR, "Call to protected %s::__clone() from context '%s'", ce->name, EG(scope) ? EG(scope)->name : ""); } } } Index: ZendEngine2/zend_object_handlers.c diff -u ZendEngine2/zend_object_handlers.c:1.65 ZendEngine2/zend_object_handlers.c:1.66 --- ZendEngine2/zend_object_handlers.c:1.65 Sun Aug 17 15:11:48 2003 +++ ZendEngine2/zend_object_handlers.c Tue Sep 2 10:08:59 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_object_handlers.c,v 1.65 2003/08/17 19:11:48 helly Exp $ */ +/* $Id: zend_object_handlers.c,v 1.66 2003/09/02 14:08:59 helly Exp $ */ #include "zend.h" #include "zend_globals.h" @@ -765,13 +765,13 @@ /* Ensure that if we're calling a private function, we're allowed to do so. */ if (object->value.obj.handlers->get_class_entry(object TSRMLS_CC) != EG(scope)) { - zend_error(E_ERROR, "Call to private constructor from context '%s'", EG(scope) ? EG(scope)->name : ""); + zend_error(E_ERROR, "Call to private %s::%s() from context '%s'", constructor->common.scope->name, constructor->common.function_name, EG(scope) ? EG(scope)->name : ""); } } else if ((constructor->common.fn_flags & ZEND_ACC_PROTECTED)) { /* Ensure that if we're calling a protected function, we're allowed to do so. */ if (!zend_check_protected(constructor->common.scope, EG(scope))) { - zend_error(E_ERROR, "Call to protected constructor from context '%s'", EG(scope) ? 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) ? EG(scope)->name : ""); } } } Index: ZendEngine2/zend_objects.c diff -u ZendEngine2/zend_objects.c:1.37 ZendEngine2/zend_objects.c:1.38 --- ZendEngine2/zend_objects.c:1.37 Sat Aug 9 10:32:33 2003 +++ ZendEngine2/zend_objects.c Tue Sep 2 10:08:59 2003 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_objects.c,v 1.37 2003/08/09 14:32:33 helly Exp $ */ +/* $Id: zend_objects.c,v 1.38 2003/09/02 14:08:59 helly Exp $ */ #include "zend.h" #include "zend_globals.h" @@ -50,7 +50,7 @@ zend_nuke_object(object TSRMLS_CC); /* unfortunately we *must* destroy it now anyway */ zend_error(EG(in_execution) ? E_ERROR : E_WARNING, - "Call to private %s::__destruct from context '%s'%s", + "Call to private %s::__destruct() from context '%s'%s", ce->name, EG(scope) ? EG(scope)->name : "", EG(in_execution) ? "" : " during shutdown ignored"); @@ -64,7 +64,7 @@ zend_nuke_object(object TSRMLS_CC); /* unfortunately we *must* destroy it now anyway */ zend_error(EG(in_execution) ? E_ERROR : E_WARNING, - "Call to protected %s::__destruct from context '%s'%s", + "Call to protected %s::__destruct() from context '%s'%s", ce->name, EG(scope) ? EG(scope)->name : "", EG(in_execution) ? "" : " during shutdown ignored");