From 4c64a731c87681c03af47c26117a46f6eb747497 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Mon, 30 May 2011 04:37:49 +0000 Subject: [PATCH] Avoid pointless creation of a PHP string git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12721 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/php/director.swg | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Lib/php/director.swg b/Lib/php/director.swg index e625f8acb..218a84e3a 100644 --- a/Lib/php/director.swg +++ b/Lib/php/director.swg @@ -107,13 +107,11 @@ namespace Swig { } bool swig_is_overridden_method(char *cname, char *lc_fname) { - zval classname; zend_class_entry **ce; zend_function *mptr; int name_len = strlen(lc_fname); - ZVAL_STRING(&classname, cname, 0); - if (zend_lookup_class(Z_STRVAL_P(&classname), Z_STRLEN_P(&classname), &ce TSRMLS_CC) != SUCCESS) { + if (zend_lookup_class(cname, strlen(cname), &ce TSRMLS_CC) != SUCCESS) { return false; } if (zend_hash_find(&(*ce)->function_table, lc_fname, name_len + 1, (void**) &mptr) != SUCCESS) {