Skip to content

Commit f664c1b

Browse files
pboyd04derickr
authored andcommitted
str_efree() not defined in PHP7
1 parent bd15395 commit f664c1b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

phongo_compat.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@
4848
zend_hash_copy(*_std.properties, &class_type->default_properties, (copy_ctor_func_t) zval_add_ref, NULL, sizeof(zval *));
4949
#endif
5050

51-
#if PHP_VERSION_ID < 50400
51+
#if PHP_VERSION_ID >= 70000
52+
# define str_efree(s) efree((char*)s)
53+
#elif PHP_VERSION_ID < 50400
5254
# define str_efree(s) efree((char*)s)
5355
#else
5456
# include <Zend/zend_string.h>

0 commit comments

Comments
 (0)