From: <ol...@us...> - 2011-05-30 04:37:55
|
Revision: 12721 http://swig.svn.sourceforge.net/swig/?rev=12721&view=rev Author: olly Date: 2011-05-30 04:37:49 +0000 (Mon, 30 May 2011) Log Message: ----------- Avoid pointless creation of a PHP string Modified Paths: -------------- trunk/Lib/php/director.swg Modified: trunk/Lib/php/director.swg =================================================================== --- trunk/Lib/php/director.swg 2011-05-27 13:57:42 UTC (rev 12720) +++ trunk/Lib/php/director.swg 2011-05-30 04:37:49 UTC (rev 12721) @@ -107,13 +107,11 @@ } 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) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |