Skip to content

Commit 37b0dcc

Browse files
committed
Decouple DEBUG_FILE_UPLOAD from ZEND_DEBUG
Enabling ZEND_DEBUG should not result in intrusive program behavior changes.
1 parent cf40f99 commit 37b0dcc

17 files changed

Lines changed: 4 additions & 135 deletions

main/rfc1867.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@
4040
# define HAVE_ATOLL 1
4141
#endif
4242

43-
#define DEBUG_FILE_UPLOAD ZEND_DEBUG
43+
#ifndef DEBUG_FILE_UPLOAD
44+
# define DEBUG_FILE_UPLOAD 0
45+
#endif
4446

4547
static int dummy_encoding_translation(void)
4648
{

tests/basic/rfc1867_anonymous_upload.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
rfc1867 anonymous upload
33
--INI--
44
file_uploads=1
5-
error_reporting=E_ALL&~E_NOTICE
6-
comment=debug builds show some additional E_NOTICE errors
75
upload_max_filesize=1024
86
max_file_uploads=10
97
--POST_RAW--

tests/basic/rfc1867_array_upload.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
rfc1867 array upload
33
--INI--
44
file_uploads=1
5-
error_reporting=E_ALL&~E_NOTICE
6-
comment=debug builds show some additional E_NOTICE errors
75
upload_max_filesize=1024
86
max_file_uploads=10
97
--POST_RAW--

tests/basic/rfc1867_boundary_1.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
rfc1867 boundary 1
33
--INI--
44
post_max_size=1024
5-
error_reporting=E_ALL&~E_NOTICE
6-
comment=debug builds show some additional E_NOTICE errors
75
--POST_RAW--
86
Content-Type: multipart/form-data; boundary="------------------------------------foobar"
97
--------------------------------------foobar

tests/basic/rfc1867_boundary_2.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
rfc1867 boundary 2
33
--INI--
44
post_max_size=1024
5-
error_reporting=E_ALL&~E_NOTICE
6-
comment=debug builds show some additional E_NOTICE errors
75
--POST_RAW--
86
Content-Type: multipart/form-data; boundary=------------------------------------foo, bar
97
--------------------------------------foo

tests/basic/rfc1867_empty_upload.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
rfc1867 empty upload
33
--INI--
44
file_uploads=1
5-
error_reporting=E_ALL&~E_NOTICE
6-
comment=debug builds show some additional E_NOTICE errors
75
upload_max_filesize=1024
86
max_file_uploads=10
97
--POST_RAW--

tests/basic/rfc1867_file_upload_disabled.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
rfc1867 file_upload disabled
33
--INI--
44
file_uploads=0
5-
error_reporting=E_ALL&~E_NOTICE
6-
comment=debug builds show some additional E_NOTICE errors
75
--POST_RAW--
86
Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737
97
-----------------------------20896060251896012921717172737

tests/basic/rfc1867_garbled_mime_headers.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
rfc1867 garbled mime headers
33
--INI--
44
file_uploads=1
5-
error_reporting=E_ALL&~E_NOTICE
6-
comment=debug builds show some additional E_NOTICE errors
75
upload_max_filesize=1024
86
--POST_RAW--
97
Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737

tests/basic/rfc1867_invalid_boundary.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
rfc1867 invalid boundary
33
--INI--
44
post_max_size=1024
5-
error_reporting=E_ALL&~E_NOTICE
6-
comment=debug builds show some additional E_NOTICE errors
75
--POST_RAW--
86
Content-Type: multipart/form-data; boundary="foobar
97
-----------------------------20896060251896012921717172737

tests/basic/rfc1867_malicious_input.phpt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
rfc1867 malicious input
33
--INI--
44
file_uploads=1
5-
error_reporting=E_ALL&~E_NOTICE
6-
comment=debug builds show some additional E_NOTICE errors
75
upload_max_filesize=1024
86
--POST_RAW--
97
Content-Type: multipart/form-data; boundary=---------------------------20896060251896012921717172737

0 commit comments

Comments
 (0)