[packages/php] disable reading system ini file, and safe mode

glen glen at pld-linux.org
Thu Jan 17 14:22:56 CET 2013


commit 4318afb376ead7c51ee7402b4f21daa1526be38d
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Jan 17 15:01:53 2013 +0200

    disable reading system ini file, and safe mode
    
    otherwise it would print safe mode warning (can't open /usr/share) to
    output and of course no real output

 file-magic.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/file-magic.patch b/file-magic.patch
index 3320726..f942c42 100644
--- a/file-magic.patch
+++ b/file-magic.patch
@@ -8,4 +8,4 @@ rebuild data file for now
  $(builddir)/libmagic/apprentice.lo: $(srcdir)/data_file.c
 +MIME_MAGIC_DB ?= /usr/share/misc/magic.mgc
 +$(srcdir)/data_file.c: $(MIME_MAGIC_DB) $(SAPI_CLI_PATH)
-+	$(SAPI_CLI_PATH) $(srcdir)/create_data_file.php $< > $@
++	$(SAPI_CLI_PATH) -n -dsafe_mode=off $(srcdir)/create_data_file.php $< > $@
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php.git/commitdiff/c2d33e29ad925eddfa0bb8ccfcf59de75248460b



More information about the pld-cvs-commit mailing list