summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWez Furlong <wez@php.net>2005-06-10 04:03:43 +0000
committerWez Furlong <wez@php.net>2005-06-10 04:03:43 +0000
commit5c16028eb516ff005cb14b9f7c31acc19698af8f (patch)
tree7f29763d21d3a5bb5bfe41e2f709f597919eacaa
parentbe76bd5278ff3c9b772df6acc9a9623f6fafe199 (diff)
downloadphp-git-5c16028eb516ff005cb14b9f7c31acc19698af8f.tar.gz
initialize type of function
-rwxr-xr-xext/pdo/pdo_dbh.c2
1 files changed, 1 insertions, 1 deletions
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]) {