From 084f887ec1312b4a5eb371818fb0443655f99dbf Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E3=82=88=E3=82=84?= Date: Thu, 16 Feb 2012 20:48:36 +0900 Subject: [PATCH] 5.4 => zend_list_insert(swf, le_swfed TSRMLS_CC); 5.3 and before => zend_list_insert(swf, le_swfed) --- src/php_swfed.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/php_swfed.c b/src/php_swfed.c index ce5e7c4..2e26ce3 100644 --- a/src/php_swfed.c +++ b/src/php_swfed.c @@ -284,7 +284,11 @@ PHP_METHOD(swfed, __construct) { if (swf == NULL) { php_error_docref(NULL TSRMLS_CC, E_ERROR, "Couldn't create swf object"); } +#if (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION > 3) || (PHP_MAJOR_VERSION > 5) ret = zend_list_insert(swf, le_swfed TSRMLS_CC); +#else + ret = zend_list_insert(swf, le_swfed); +#endif object_init_ex(getThis(), swfeditor_ce); add_property_resource(getThis(), "swfed", ret); zend_list_addref(ret); -- 2.11.0