Skip to content

Commit

Permalink
php: annoy Jos and Ad by enabling warnings by default...
Browse files Browse the repository at this point in the history
... when using the core.git mount hook.  :)

Does not affect the packages/images.
  • Loading branch information
fichtner committed Apr 1, 2015
1 parent 8d1809e commit f6c6889
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@ install:
# move all sources to their destination
@mkdir -p ${DESTDIR}/usr/local
@cp -r ${.CURDIR}/src/* ${DESTDIR}/usr/local
# disable warnings for production systems
@sed -i '' -e 's/E_STRICT/E_STRICT | E_WARNING/g' \
${DESTDIR}/usr/local/etc/rc.php_ini_setup
# bootstrap pkg(8) files that are not in sources
@mkdir -p ${DESTDIR}/usr/local/etc/pkg/repos
@cp ${.CURDIR}/pkg/OPNsense.conf ${DESTDIR}/usr/local/etc/pkg/repos
@echo /usr/local/etc/pkg/repos/OPNsense.conf
@cp ${.CURDIR}/pkg/pkg.conf ${DESTDIR}/usr/local/etc
@echo /usr/local/etc/pkg.conf
# and finally pretty-print a list of files present
# finally pretty-print a list of files present
@(cd ${.CURDIR}/src; find * -type f) | \
xargs -n1 printf "/usr/local/%s\n"

Expand Down
2 changes: 1 addition & 1 deletion src/etc/rc.php_ini_setup
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ zlib.output_compression = Off
zlib.output_compression_level = 1
include_path = ".:/usr/local/etc/inc:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg:/usr/local/opnsense/mvc:/usr/local/share/pear:/usr/local/opnsense/contrib"
ignore_repeated_errors = on
error_reporting = E_ALL ^ (E_WARNING | E_NOTICE | E_DEPRECATED | E_STRICT)
error_reporting = E_ALL ^ (E_NOTICE | E_DEPRECATED | E_STRICT)
display_errors=on
log_errors=on
error_log=/tmp/PHP_errors.log
Expand Down

0 comments on commit f6c6889

Please sign in to comment.