Patch for php_sybase_db.c
| From: | (Alexander Wirtz) | Date: | Sat, 11 Aug 2001 11:59:39 +0000 |
| Subject: | Patch for php_sybase_db.c | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-62931@lists.php.net to get a copy of this message | ||
Hi,
after the oci8-Error during the compile, I found another one in
php_sybase_db.c. I made a patch for a version which is up to the
ZendEngine2.
Greetings
Alexander
--
| Alexander Wirtz | eMail: wirtz@web-active.com |
| web@ctive GmbH | WWW: http://www.web-active.com |
--- php_sybase_db.orig.c Sat Aug 11 12:20:21 2001 +++ php_sybase_db.c Sat Aug 11 12:26:46 2001 @@ -1009,8 +1009,8 @@ php_sybase_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 = &zend_standard_class_def; + Z_OBJPROP_P(return_value) = return_value->value.ht; + Z_OBJCE_P(return_value) = &zend_standard_class_def; } } /* }}} */
--- php_sybase_db.orig.c Sat Aug 11 12:20:21 2001 +++ php_sybase_db.c Sat Aug 11 12:26:46 2001 @@ -1009,8 +1009,8 @@ php_sybase_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 = &zend_standard_class_def; + Z_OBJPROP_P(return_value) = return_value->value.ht; + Z_OBJCE_P(return_value) = &zend_standard_class_def; } } /* }}} */