Skip to content

Commit f2e5b5e

Browse files
committed
Tweak some PHP settings for better mediawiki compatibility.
1 parent 9163206 commit f2e5b5e

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

deps/libphp5.gyp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@
8484
'--enable-maintainer-zts', '--enable-embed=static',
8585
'--prefix', '<(SHARED_INTERMEDIATE_DIR)/build',
8686
'--enable-opcache=static',
87+
# mediawiki says this is necessary
88+
'--with-zlib', '--enable-mbstring',
8789
# turn off some unnecessary bits
8890
'--disable-cli', '--disable-cgi',
8991
'<@(configure_options)'

lib/php.ini

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,13 @@ html_errors=1
22
register_argc_argv=1
33
implicit_flush=0
44
max_execution_time=0
5-
max_input_time=0
5+
max_input_time=-1
6+
output_buffering=4096
7+
8+
; The following are useful for debugging:
9+
;
10+
; display_startup_errors=1
11+
; display_errors=1
12+
; log_errors=1
13+
; error_reporting=-1
14+
; track_errors=1

0 commit comments

Comments
 (0)