Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
d99025a1
Commit
d99025a1
authored
Nov 16, 2014
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rc: prepare for PHP 5.6 and remove pre-5.5 compat
parent
5baa7593
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
rc.php_ini_setup
etc/rc.php_ini_setup
+7
-4
No files found.
etc/rc.php_ini_setup
View file @
d99025a1
...
@@ -29,12 +29,15 @@
...
@@ -29,12 +29,15 @@
PLATFORM
=
`
/bin/cat /etc/platform
`
PLATFORM
=
`
/bin/cat /etc/platform
`
MIN_REALMEM_FOR_APC
=
512
MIN_REALMEM_FOR_APC
=
512
if
[
-d
/usr/local/lib/php/20121212
]
;
then
if
[
-d
/usr/local/lib/php/20131226
]
;
then
# PHP 5.6
EXTENSIONSDIR
=
"/usr/local/lib/php/20131226/"
elif
[
-d
/usr/local/lib/php/20121212
]
;
then
# PHP 5.5
EXTENSIONSDIR
=
"/usr/local/lib/php/20121212/"
EXTENSIONSDIR
=
"/usr/local/lib/php/20121212/"
elif
[
-d
/usr/local/lib/php/20090626
]
;
then
EXTENSIONSDIR
=
"/usr/local/lib/php/20090626/"
else
else
EXTENSIONSDIR
=
"/usr/local/lib/php/20060613/"
echo
"No supported PHP version was found."
exit
1
fi
fi
# Grab amount of memory that is detected
# Grab amount of memory that is detected
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment