cvs: ZendEngine2 / zend_execute_API.c

From: Date: Mon, 20 Feb 2006 20:03:37 +0000
Subject: cvs: ZendEngine2 / zend_execute_API.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4597@lists.php.net to get a copy of this message
helly Mon Feb 20 20:03:37 2006 UTC Modified files: /ZendEngine2 zend_execute_API.c Log: - Synch zend_call_function() with VM function call helper http://cvs.php.net/viewcvs.cgi/ZendEngine2/zend_execute_API.c?r1=1.357&r2=1.358&diff_format=u Index: ZendEngine2/zend_execute_API.c diff -u ZendEngine2/zend_execute_API.c:1.357 ZendEngine2/zend_execute_API.c:1.358 --- ZendEngine2/zend_execute_API.c:1.357 Mon Feb 20 20:00:46 2006 +++ ZendEngine2/zend_execute_API.c Mon Feb 20 20:03:36 2006 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_execute_API.c,v 1.357 2006/02/20 20:00:46 helly Exp $ */ +/* $Id: zend_execute_API.c,v 1.358 2006/02/20 20:03:36 helly Exp $ */ #include <stdio.h> #include <signal.h> @@ -861,11 +861,16 @@ fci->object_pp = fci_cache->object_pp; } - if (EX(function_state).function->common.fn_flags & ZEND_ACC_DEPRECATED) { - zend_error(E_NOTICE, "Function %s%s%s() is deprecated", - EX(function_state).function->common.scope ? EX(function_state).function->common.scope->name : "", - EX(function_state).function->common.scope ? "::" : "", - EX(function_state).function->common.function_name); + if (EX(function_state).function->common.fn_flags & (ZEND_ACC_ABSTRACT|ZEND_ACC_DEPRECATED)) { + if (EX(function_state).function->common.fn_flags & ZEND_ACC_ABSTRACT) { + zend_error_noreturn(E_ERROR, "Cannot call abstract method %v::%v()", EX(function_state).function->common.scope->name, EX(function_state).function->common.function_name); + } + if (EX(function_state).function->common.fn_flags & ZEND_ACC_DEPRECATED) { + zend_error(E_NOTICE, "Function %s%s%s() is deprecated", + EX(function_state).function->common.scope ? EX(function_state).function->common.scope->name : "", + EX(function_state).function->common.scope ? "::" : "", + EX(function_state).function->common.function_name); + } } for (i=0; i<fci->param_count; i++) {

« previous php.zend-engine.cvs (#4597) next »