[srm-cvs] CVS Update: - Add #ifdef check, PHP 4.3.x doesnt want the TSRMLS_CC there.

From: <d.rethans[@]jdimedia.nl>
Date: Wed Apr 23 2003 - 13:20:59 CEST

Date: Wed Apr 23 13:20:57 CEST 2003
User: Derick Rethans
Directory: php_srm

Log Message:
 [0.05]
 - Add #ifdef check, PHP 4.3.x doesnt want the TSRMLS_CC there.
 
Modified files:
           php_srm/srm_util.c (version: 1.18)

[FILE: /php_srm/srm_util.c]

--- php_srm/srm_util.c:1.17 Sun Apr 13 15:16:02 2003 GMT
+++ php_srm/srm_util.c Wed Apr 23 09:20:57 2003 GMT
@@ -18,7 +18,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: cvstemp,v 1.17 2003/04/13 17:16:02 derick Exp $ */
+/* $Id: cvstemp,v 1.18 2003/04/23 11:20:57 derick Exp $ */
 
 #include "php.h"
 #include <srm_client.h>
@@ -237,7 +237,11 @@
                                                         /* Copy key to a buffer which ends with \0 */
                                                         t = calloc (((srm_hash_element *) SRM_LLIST_VALP(record))->key.value.str.len + 1, 1);
                                                         memcpy (t, ((srm_hash_element *) SRM_LLIST_VALP(record))->key.value.str.val, ((srm_hash_element *) SRM_LLIST_VALP(record))->key.value.str.len);
+#ifdef ZEND_ENGINE_2
                                                         add_property_zval_ex (result_array, t, ((srm_hash_element *) SRM_LLIST_VALP(record))->key.value.str.len + 1, test TSRMLS_CC);
+#else
+ add_property_zval_ex (result_array, t, ((srm_hash_element *) SRM_LLIST_VALP(record))->key.value.str.len + 1, test);
+#endif
                                                         break;
                                         }
                                 }
Received on Wed Apr 23 13:21:01 2003

This archive was generated by hypermail 2.1.8 : Tue Jan 06 2009 - 02:00:04 CET