File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,9 @@ sed -ri 's/^\s*memory_limit\s*=.*/memory_limit = 256M/g' ${RPM_BUILD_ROOT}%{pref
149149# Set the default timezone for php
150150sed -ri 's/^(\s|;)*date.timezone\s*= .*/date.timezone = "UTC"/g' ${RPM_BUILD_ROOT}%{prefix }/httpd/php/lib/php.ini
151151
152+ # Set the phar readonly Off for php
153+ sed -ri 's/^(\s|;)phar.readonly = On/phar.readonly = Off/' ${RPM_BUILD_ROOT}%{prefix }/httpd/php/lib/php.ini
154+
152155echo "extension= curl.so" >> ${RPM_BUILD_ROOT}%{prefix }/httpd/php/lib/curl.ini
153156echo "extension= openssl.so" >> ${RPM_BUILD_ROOT}%{prefix }/httpd/php/lib/openssl.ini
154157rm -rf ${RPM_BUILD_ROOT}%{prefix }/httpd/conf
Original file line number Diff line number Diff line change @@ -139,6 +139,9 @@ install: build
139139 # Set the default timezone for php to UTC
140140 sed -ri 's/^(\s|;)*date.timezone\s*=.*/date.timezone = "UTC"/g' $(CURDIR)/debian/tmp$(PREFIX)/httpd/php/lib/php.ini
141141
142+ # Set the phar readonly Off for php
143+ sed -ri 's/^(\s|;)phar.readonly = On/phar.readonly = Off/' $(CURDIR)/debian/tmp$(PREFIX)/httpd/php/lib/php.ini
144+
142145 echo "extension=curl.so" >> $(CURDIR)/debian/tmp$(PREFIX)/httpd/php/lib/curl.ini
143146 echo "extension=openssl.so" >> $(CURDIR)/debian/tmp$(PREFIX)/httpd/php/lib/openssl.ini
144147
You can’t perform that action at this time.
0 commit comments