Skip to content

Commit 5ee32ba

Browse files
committed
PHP_FE_END + ZEND_MOD_END
1 parent 9eb9048 commit 5ee32ba

File tree

4 files changed

+12
-16
lines changed

4 files changed

+12
-16
lines changed

common.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,17 @@ extern void (*_php_var_serialize)(smart_str *, zval **, php_serialize_data_t * T
363363
extern int (*_php_var_unserialize)(zval **, const unsigned char **, const unsigned char *, php_unserialize_data_t * TSRMLS_DC);
364364
#define php_var_unserialize(rval, p, max, var_hash) _php_var_unserialize(&rval, p, max, var_hash TSRMLS_CC)
365365
typedef int strlen_t;
366+
367+
/* PHP_MOD_END exists since 5.3.7 */
368+
#ifndef ZEND_MOD_END
369+
#define ZEND_MOD_END { NULL, NULL, NULL, 0 }
370+
#endif
371+
372+
/* PHP_FE_END exists since 5.3.7 */
373+
#ifndef PHP_FE_END
374+
#define PHP_FE_END { NULL, NULL, NULL }
375+
#endif
376+
366377
#else
367378
#include <zend_smart_str.h>
368379
#include <ext/standard/php_smart_string.h>

redis.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -343,12 +343,7 @@ static zend_function_entry redis_functions[] = {
343343

344344
PHP_MALIAS(Redis, evaluate, eval, NULL, ZEND_ACC_PUBLIC)
345345
PHP_MALIAS(Redis, evaluateSha, evalsha, NULL, ZEND_ACC_PUBLIC)
346-
/* PHP_FE_END exists since 5.3.7 */
347-
#ifdef PHP_FE_END
348346
PHP_FE_END
349-
#else
350-
{NULL, NULL, NULL}
351-
#endif
352347
};
353348

354349
static const zend_module_dep redis_deps[] = {

redis_array.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,7 @@ zend_function_entry redis_array_functions[] = {
8989
/* Aliases */
9090
PHP_MALIAS(RedisArray, delete, del, NULL, ZEND_ACC_PUBLIC)
9191
PHP_MALIAS(RedisArray, getMultiple, mget, NULL, ZEND_ACC_PUBLIC)
92-
/* PHP_FE_END exists since 5.3.7 */
93-
#ifdef PHP_FE_END
9492
PHP_FE_END
95-
#else
96-
{NULL, NULL, NULL}
97-
#endif
9893
};
9994

10095
static void redis_array_free(RedisArray *ra) {

redis_cluster.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,7 @@ zend_function_entry redis_cluster_functions[] = {
227227
PHP_ME(RedisCluster, geodist, NULL, ZEND_ACC_PUBLIC)
228228
PHP_ME(RedisCluster, georadius, NULL, ZEND_ACC_PUBLIC)
229229
PHP_ME(RedisCluster, georadiusbymember, NULL, ZEND_ACC_PUBLIC)
230-
/* PHP_FE_END exists since 5.3.7 */
231-
#ifdef PHP_FE_END
232-
PHP_FE_END
233-
#else
234-
{NULL, NULL, NULL}
235-
#endif
230+
PHP_FE_END
236231
};
237232

238233
/* Our context seeds will be a hash table with RedisSock* pointers */

0 commit comments

Comments
 (0)