sniper Tue Dec 21 01:57:15 2004 EDT Modified files: (Branch: PHP_5_0) /php-src/ext/sybase php_sybase_db.c Log: MFH: - Fixed bug #28248 (Can not compile --with-sybase and freetds) http://cvs.php.net/diff.php/php-src/ext/sybase/php_sybase_db.c?r1=1.62&r2=1.62.2.1&ty=u Index: php-src/ext/sybase/php_sybase_db.c diff -u php-src/ext/sybase/php_sybase_db.c:1.62 php-src/ext/sybase/php_sybase_db.c:1.62.2.1 --- php-src/ext/sybase/php_sybase_db.c:1.62 Sat Jul 10 03:46:08 2004 +++ php-src/ext/sybase/php_sybase_db.c Tue Dec 21 01:57:15 2004 @@ -20,7 +20,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_sybase_db.c,v 1.62 2004/07/10 07:46:08 andi Exp $ */ +/* $Id: php_sybase_db.c,v 1.62.2.1 2004/12/21 06:57:15 sniper Exp $ */ #ifdef HAVE_CONFIG_H @@ -1108,9 +1108,11 @@ { php_sybase_fetch_hash(INTERNAL_FUNCTION_PARAM_PASSTHRU); if (Z_TYPE_P(return_value)==IS_ARRAY) { - Z_TYPE_P(return_value)=IS_OBJECT; - Z_OBJPROP_P(return_value) = Z_ARRVAL_P(return_value); - Z_OBJCE_P(return_value) = ZEND_STANDARD_CLASS_DEF_PTR; + object_and_properties_init( + return_value, + ZEND_STANDARD_CLASS_DEF_PTR, + Z_ARRVAL_P(return_value) + ); } } /* }}} */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php