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
149
149
# Set the default timezone for php
150
150
sed -ri 's/^(\s|;)*date.timezone\s*= .*/date.timezone = "UTC"/g' ${RPM_BUILD_ROOT}%{prefix }/httpd/php/lib/php.ini
151
151
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
+
152
155
echo "extension= curl.so" >> ${RPM_BUILD_ROOT}%{prefix }/httpd/php/lib/curl.ini
153
156
echo "extension= openssl.so" >> ${RPM_BUILD_ROOT}%{prefix }/httpd/php/lib/openssl.ini
154
157
rm -rf ${RPM_BUILD_ROOT}%{prefix }/httpd/conf
Original file line number Diff line number Diff line change @@ -139,6 +139,9 @@ install: build
139
139
# Set the default timezone for php to UTC
140
140
sed -ri 's/^(\s|;)*date.timezone\s*=.*/date.timezone = "UTC"/g' $(CURDIR)/debian/tmp$(PREFIX)/httpd/php/lib/php.ini
141
141
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
+
142
145
echo "extension=curl.so" >> $(CURDIR)/debian/tmp$(PREFIX)/httpd/php/lib/curl.ini
143
146
echo "extension=openssl.so" >> $(CURDIR)/debian/tmp$(PREFIX)/httpd/php/lib/openssl.ini
144
147
You can’t perform that action at this time.
0 commit comments