Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bfb1b86

Browse files
committed
Define str_efree() macro for PHP 5.3 compatibility
1 parent 80b9f3e commit bfb1b86

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

‎phongo_compat.h‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@
1717
zend_hash_copy(*_std.properties, &class_type->default_properties, (copy_ctor_func_t) zval_add_ref, NULL, sizeof(zval *));
1818
#endif
1919

20+
#if PHP_VERSION_ID < 50400
21+
# define str_efree(s) efree((char*)s)
22+
#else
23+
# include <Zend/zend_string.h>
24+
#endif
25+
2026
#if PHP_VERSION_ID >= 50500
2127
#define ITERATOR_GET_CURRENT_KEY(it, z) \
2228
(it).funcs->get_current_key(&(it), z TSRMLS_CC);

‎src/bson.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#include <ext/spl/spl_array.h>
3131
#include <Zend/zend_hash.h>
3232
#include <Zend/zend_interfaces.h>
33-
#include <Zend/zend_string.h>
3433

3534
/* PHP array helpers */
3635
#include "src/contrib/php_array_api.h"

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /