From: Wez Furlong Date: Fri, 10 Jun 2005 04:03:43 +0000 (+0000) Subject: initialize type of function X-Git-Tag: php-5.0.1b1~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5c16028eb516ff005cb14b9f7c31acc19698af8f;p=php initialize type of function --- diff --git a/ext/pdo/pdo_dbh.c b/ext/pdo/pdo_dbh.c index 20579a1000..15e2384ebb 100755 --- a/ext/pdo/pdo_dbh.c +++ b/ext/pdo/pdo_dbh.c @@ -981,6 +981,7 @@ int pdo_hash_methods(pdo_dbh_t *dbh, int kind TSRMLS_DC) zend_hash_init_ex(dbh->cls_methods[kind], 8, NULL, NULL, dbh->is_persistent, 0); while (funcs->fname) { + ifunc->type = ZEND_INTERNAL_FUNCTION; ifunc->handler = funcs->handler; ifunc->function_name = funcs->fname; ifunc->scope = dbh->ce; @@ -1037,7 +1038,6 @@ static union _zend_function *dbh_method_get( zend_str_tolower_copy(lc_method_name, method_name, method_len); if (zend_hash_find(&dbh->ce->function_table, lc_method_name, method_len+1, (void**)&fbc) == FAILURE) { - /* not a pre-defined method, nor a user-defined method; check * the driver specific methods */ if (!dbh->cls_methods[PDO_DBH_DRIVER_METHOD_KIND_DBH]) {