Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4601887

Browse files
More cleanup of PHP5 conditionals/commented code
1 parent feb582f commit 4601887

2 files changed

Lines changed: 0 additions & 13 deletions

File tree

common.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -275,17 +275,10 @@ typedef struct {
275275
int nb_active;
276276
} ConnectionPool;
277277

278-
#if (PHP_MAJOR_VERSION < 7)
279-
typedef struct {
280-
zend_object std;
281-
RedisSock *sock;
282-
} redis_object;
283-
#else
284278
typedef struct {
285279
RedisSock *sock;
286280
zend_object std;
287281
} redis_object;
288-
#endif
289282

290283
/** Argument info for any function expecting 0 args */
291284
ZEND_BEGIN_ARG_INFO_EX(arginfo_void, 0, 0, 0)

library.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2224,12 +2224,6 @@ redis_unserialize(RedisSock* redis_sock, const char *val, int val_len,
22242224
(const unsigned char *)val + val_len,
22252225
&var_hash);
22262226

2227-
//if (php_var_unserialize(z_ret, (const unsigned char**)&val,
2228-
// (const unsigned char*)val + val_len, &var_hash)
2229-
//) {
2230-
// ret = 1;
2231-
//}
2232-
22332227
PHP_VAR_UNSERIALIZE_DESTROY(var_hash);
22342228
break;
22352229

0 commit comments

Comments
 (0)