|
Lines 66-71
Link Here
|
| 66 |
#define PHP_SSH2_TSRMLS_FETCH() |
66 |
#define PHP_SSH2_TSRMLS_FETCH() |
| 67 |
#endif |
67 |
#endif |
| 68 |
|
68 |
|
|
|
69 |
#if (PHP_MAJOR_VERSION == 5) && (PHP_MINOR_VERSION < 3) |
| 70 |
# define GEARMAN_IS_CALLABLE(callable, check_flags, callable_name) zend_is_callable(callable, check_flags, callable_name) |
| 71 |
#else |
| 72 |
# define GEARMAN_IS_CALLABLE(callable, check_flags, callable_name) zend_is_callable(callable, check_flags, callable_name TSRMLS_CC) |
| 73 |
#endif |
| 74 |
|
| 75 |
|
| 69 |
/* {{{ php_ssh2_alloc_cb |
76 |
/* {{{ php_ssh2_alloc_cb |
| 70 |
* Wrap emalloc() |
77 |
* Wrap emalloc() |
| 71 |
*/ |
78 |
*/ |
|
Lines 257-263
Link Here
|
| 257 |
return 0; |
264 |
return 0; |
| 258 |
} |
265 |
} |
| 259 |
|
266 |
|
| 260 |
if (!handler || !*handler || !zend_is_callable(*handler, 0, NULL)) { |
267 |
if (!handler || !*handler || !GEARMAN_IS_CALLABLE(*handler, 0, NULL)) { |
| 261 |
return -1; |
268 |
return -1; |
| 262 |
} |
269 |
} |
| 263 |
|
270 |
|