summaryrefslogtreecommitdiff
path: root/ext/mysql/mysql.c
diff options
context:
space:
mode:
authorZeev Suraski <zeev@php.net>1999-05-14 18:25:16 +0000
committerZeev Suraski <zeev@php.net>1999-05-14 18:25:16 +0000
commit1fb61df8a5d7f801be8fb5850ff639b26fc7dd0c (patch)
treeac5415670848e3834080e57c11be0a2fcaf03b64 /ext/mysql/mysql.c
parent67296f0704403c84a5921011dbe44d4fee578cc5 (diff)
downloadphp-git-1fb61df8a5d7f801be8fb5850ff639b26fc7dd0c.tar.gz
* Include all of the standard modules in internal_functions.c.in. Stig - is that
the way you intended it to be? How does the basic_functions module get in there? * Fix to get MySQL objects working, even though I'll probably make a dedicated MySQL object in the future.
Diffstat (limited to 'ext/mysql/mysql.c')
-rw-r--r--ext/mysql/mysql.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/mysql/mysql.c b/ext/mysql/mysql.c
index afe05d3b7e..06b1306793 100644
--- a/ext/mysql/mysql.c
+++ b/ext/mysql/mysql.c
@@ -1481,6 +1481,8 @@ void php3_mysql_fetch_object(INTERNAL_FUNCTION_PARAMETERS)
php3_mysql_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU);
if (return_value->type==IS_ARRAY) {
return_value->type=IS_OBJECT;
+ return_value->value.obj.properties = return_value->value.ht;
+ return_value->value.obj.ce = &standard_class;
}
}
/* }}} */