Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 304865 Details for
Bug 407441
dev-php/pecl-memcache-3.0.6-r1 with dev-lang/php-5.4 - work/php5.4/memcache.c:721:4: error: too few arguments to function 'zend_list_insert'
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
php-5.4_compatibility.patch
php-5.4_compatibility.patch (text/plain), 3.47 KB, created by
Sergiy Borodych
on 2012-03-10 20:25:32 UTC
(
hide
)
Description:
php-5.4_compatibility.patch
Filename:
MIME Type:
Creator:
Sergiy Borodych
Created:
2012-03-10 20:25:32 UTC
Size:
3.47 KB
patch
obsolete
>--- memcache.c 2012-03-10 21:57:45.690797178 +0200 >+++ memcache.c 2012-03-10 22:16:21.169773707 +0200 >@@ -718,7 +718,7 @@ > mmc_server_free(mmc TSRMLS_CC); > mmc = NULL; > } else { >- zend_list_insert(mmc, le_memcache_server); >+ MEMCACHE_LIST_INSERT(mmc, le_memcache_server); > } > } > else if (le->type != le_memcache_server || le->ptr == NULL) { >@@ -735,7 +735,7 @@ > mmc = NULL; > } > else { >- zend_list_insert(mmc, le_memcache_server); >+ MEMCACHE_LIST_INSERT(mmc, le_memcache_server); > } > } > else { >@@ -775,7 +775,7 @@ > if (zend_hash_find(Z_OBJPROP_P(mmc_object), "connection", sizeof("connection"), (void **)&connection) == FAILURE) { > pool = mmc_pool_new(TSRMLS_C); > pool->failure_callback = &php_mmc_failure_callback; >- list_id = zend_list_insert(pool, le_memcache_pool); >+ list_id = MEMCACHE_LIST_INSERT(pool, le_memcache_pool); > add_property_resource(mmc_object, "connection", list_id); > } > else { >@@ -836,7 +836,7 @@ > int list_id; > mmc_pool_t *pool = mmc_pool_new(TSRMLS_C); > pool->failure_callback = &php_mmc_failure_callback; >- list_id = zend_list_insert(pool, le_memcache_pool); >+ list_id = MEMCACHE_LIST_INSERT(pool, le_memcache_pool); > mmc_object = return_value; > object_init_ex(mmc_object, memcache_ce); > add_property_resource(mmc_object, "connection", list_id); >@@ -986,7 +986,7 @@ > > /* check for userspace callback */ > if (param != NULL && zend_hash_find(Z_OBJPROP_P((zval *)param), "_failureCallback", sizeof("_failureCallback"), (void **)&callback) == SUCCESS && Z_TYPE_PP(callback) != IS_NULL) { >- if (IS_CALLABLE(*callback, 0, NULL)) { >+ if (MEMCACHE_IS_CALLABLE(*callback, 0, NULL)) { > zval *retval = NULL; > zval *host, *tcp_port, *udp_port, *error, *errnum; > zval **params[5]; >@@ -1213,7 +1213,7 @@ > } > > if (failure_callback != NULL && Z_TYPE_P(failure_callback) != IS_NULL) { >- if (!IS_CALLABLE(failure_callback, 0, NULL)) { >+ if (!MEMCACHE_IS_CALLABLE(failure_callback, 0, NULL)) { > php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid failure callback"); > RETURN_FALSE; > } >@@ -1275,7 +1275,7 @@ > } > > if (failure_callback != NULL && Z_TYPE_P(failure_callback) != IS_NULL) { >- if (!IS_CALLABLE(failure_callback, 0, NULL)) { >+ if (!MEMCACHE_IS_CALLABLE(failure_callback, 0, NULL)) { > php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid failure callback"); > RETURN_FALSE; > } >@@ -1340,7 +1340,7 @@ > } > > if (Z_TYPE_P(failure_callback) != IS_NULL) { >- if (!IS_CALLABLE(failure_callback, 0, NULL)) { >+ if (!MEMCACHE_IS_CALLABLE(failure_callback, 0, NULL)) { > php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid failure callback"); > RETURN_FALSE; > } >--- php_memcache.h 2011/11/20 18:08:00 319584 >+++ php_memcache.h 2011/11/20 18:50:38 319585 >@@ -156,9 +156,15 @@ > ZEND_END_MODULE_GLOBALS(memcache) > > #if (PHP_MAJOR_VERSION == 5) && (PHP_MINOR_VERSION >= 3) >-# define IS_CALLABLE(cb_zv, flags, cb_sp) zend_is_callable((cb_zv), (flags), (cb_sp) TSRMLS_CC) >+# define MEMCACHE_IS_CALLABLE(cb_zv, flags, cb_sp) zend_is_callable((cb_zv), (flags), (cb_sp) TSRMLS_CC) > #else >-# define IS_CALLABLE(cb_zv, flags, cb_sp) zend_is_callable((cb_zv), (flags), (cb_sp)) >+# define MEMCACHE_IS_CALLABLE(cb_zv, flags, cb_sp) zend_is_callable((cb_zv), (flags), (cb_sp)) >+#endif >+ >+#if (PHP_MAJOR_VERSION == 5) && (PHP_MINOR_VERSION >= 4) >+# define MEMCACHE_LIST_INSERT(item, list) zend_list_insert(item, list TSRMLS_CC); >+#else >+# define MEMCACHE_LIST_INSERT(item, list) zend_list_insert(item, list); > #endif > > /* internal functions */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 407441
:
304639
|
304641
| 304865