Skip to content

Commit df93649

Browse files
author
Rahul Priyadarshi
committed
Segfault due to INTERNED strings in PHP-5.4.x
1 parent ee626ad commit df93649

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

php_ibm_db2.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ extern zend_module_entry ibm_db2_module_entry;
3636
#include <stdlib.h>
3737
#include <sqlcli1.h>
3838

39+
/* Needed for backward compatibility (IS_INTERNED not defined prior to PHP-5.4) */
40+
#ifndef IS_INTERNED
41+
#define IS_INTERNED(s) (0)
42+
#endif
43+
3944
/* needed for backward compatibility (SQL_XML not defined prior to DB2 v9) */
4045
#ifndef SQL_XML
4146
#define SQL_XML -370

0 commit comments

Comments
 (0)