Skip to content

Commit bc92917

Browse files
committed
Merge remote-tracking branch 'origin/PHP-5.6' into str_size_and_int64_56_backport
* origin/PHP-5.6: fixed ZEND_DEBUG usage updated libmagic.patch added missing stdint header, bug #66907
2 parents 5168611 + 0d5121a commit bc92917

File tree

5 files changed

+18
-3
lines changed

5 files changed

+18
-3
lines changed

Zend/zend.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ ZEND_API void zend_deactivate(TSRMLS_D) /* {{{ */
954954

955955
zend_destroy_rsrc_list(&EG(regular_list) TSRMLS_CC);
956956

957-
#ifdef ZEND_DEBUG
957+
#if ZEND_DEBUG
958958
if (GC_G(gc_enabled) && !CG(unclean_shutdown)) {
959959
gc_collect_cycles(TSRMLS_C);
960960
}

ext/fileinfo/libmagic.patch

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3286,4 +3286,16 @@ diff -u libmagic.orig/softmagic.c libmagic/softmagic.c
32863286
break;
32873287
}
32883288
case FILE_INDIRECT:
3289+
diff -u libmagic.orig/strcasestr.c libmagic/strcasestr.c
3290+
--- libmagic.orig/strcasestr.c Thu Dec 5 17:57:50 2013
3291+
+++ libmagic/strcasestr.c Sun May 4 21:29:20 2014
3292+
@@ -37,6 +37,8 @@
3293+
__RCSID("$NetBSD: strncasecmp.c,v 1.2 2007/06/04 18:19:27 christos Exp $");
3294+
#endif /* LIBC_SCCS and not lint */
3295+
3296+
+#include "php_stdint.h"
3297+
+
3298+
#include <assert.h>
3299+
#include <ctype.h>
3300+
#include <string.h>
32893301

ext/fileinfo/libmagic/strcasestr.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ __RCSID("$NetBSD: strcasestr.c,v 1.3 2005/11/29 03:12:00 christos Exp $");
3737
__RCSID("$NetBSD: strncasecmp.c,v 1.2 2007/06/04 18:19:27 christos Exp $");
3838
#endif /* LIBC_SCCS and not lint */
3939

40+
#include "php_stdint.h"
41+
4042
#include <assert.h>
4143
#include <ctype.h>
4244
#include <string.h>

ext/interbase/php_ibase_includes.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535

3636
#define IB_STATUS (IBG(status))
3737

38+
/* XXX ZEND_DEBUG_ is misleading, it should be something like IBASE_DEBUG. */
3839
#ifdef ZEND_DEBUG_
3940
#define IBDEBUG(a) php_printf("::: %s (%d)\n", a, __LINE__);
4041
#endif

ext/standard/html.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ static inline size_t write_octet_sequence(unsigned char *buf, enum entity_charse
901901
#if 0
902902
return php_mb2_int_to_char(buf, code);
903903
#else
904-
#ifdef ZEND_DEBUG
904+
#if ZEND_DEBUG
905905
assert(code <= 0xFFU);
906906
#endif
907907
*buf = code;
@@ -912,7 +912,7 @@ static inline size_t write_octet_sequence(unsigned char *buf, enum entity_charse
912912
#if 0 /* idem */
913913
return php_mb2_int_to_char(buf, code);
914914
#else
915-
#ifdef ZEND_DEBUG
915+
#if ZEND_DEBUG
916916
assert(code <= 0xFFU);
917917
#endif
918918
*buf = code;

0 commit comments

Comments
 (0)