logo       

cvs: ZendEngine2 / zend_execute_API.c: msg#00051

Subject: cvs: ZendEngine2 / zend_execute_API.c
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++) {

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




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe