r1856 - in trunk/ext/src/core: DB OSQL

From: <voxusAT@ATshadanakar.org>
Date: Sun, 9 Jul 2006 00:01:02 +0400 (MSD)

Author: voxus
Date: 2006-07-09 00:01:02 +0400 (Sun, 09 Jul 2006)
New Revision: 1856

Modified:
   trunk/ext/src/core/DB/Dialect.c
   trunk/ext/src/core/OSQL/DBValue.c
Log:
+ ref-related voodoo in calling methods

Modified: trunk/ext/src/core/DB/Dialect.c
===================================================================
--- trunk/ext/src/core/DB/Dialect.c 2006-07-08 19:16:33 UTC (rev 1855)
+++ trunk/ext/src/core/DB/Dialect.c 2006-07-08 20:01:02 UTC (rev 1856)
@@ -174,6 +174,8 @@
                         getThis()
                 );
         } else {
+ SEPARATE_ZVAL_TO_MAKE_IS_REF(&field);
+
                 zend_call_method_with_1_params(
                         &getThis(),
                         Z_OBJCE_P(getThis()),
@@ -204,6 +206,8 @@
                 Z_TYPE_P(value) == IS_OBJECT
                 && instanceof_function(Z_OBJCE_P(value), onphp_ce_DBValue TSRMLS_CC)
         ) {
+ SEPARATE_ZVAL_TO_MAKE_IS_REF(&value);
+
                 zend_call_method_with_1_params(
                         &this,
                         Z_OBJCE_P(this),

Modified: trunk/ext/src/core/OSQL/DBValue.c
===================================================================
--- trunk/ext/src/core/OSQL/DBValue.c 2006-07-08 19:16:33 UTC (rev 1855)
+++ trunk/ext/src/core/OSQL/DBValue.c 2006-07-08 20:01:02 UTC (rev 1856)
@@ -56,6 +56,8 @@
         
         value = ONPHP_READ_PROPERTY(getThis(), "value");
         
+ SEPARATE_ZVAL_TO_MAKE_IS_REF(&value);
+
         zend_call_method_with_1_params(
                 &dialect,
                 Z_OBJCE_P(dialect),
Received on Sun Jul 09 2006 - 00:01:02 MSD

This archive was generated by hypermail 2.2.0 : Sat Oct 27 2007 - 20:19:13 MSD