[
https://issues.apache.org/jira/browse/VCL-1106?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16667651#comment-16667651
]
ASF subversion and git services commented on VCL-1106:
------------------------------------------------------
Commit e50585005773d6e33a9f475e5843633ae95f221f in vcl's branch
refs/heads/VCL-1106_updates_for_php7 from [~jfthomps]
[ https://git-wip-us.apache.org/repos/asf?p=vcl.git;h=e505850 ]
VCL-1106 - make PHP code compatible with PHP 7
making changes that allow code to run under PHP7 - vast majority of
changes are related to switching from mysql_* functions to mysqli_*
functions
files modified:
addomain.php authentication.php authmethods/itecsauth.php
authmethods/ldapauth.php authmethods/shibauth.php blockallocations.php
computer.php config.php dashboard.php groups.php help.php image.php
managementnode.php oneclick.php privileges.php requests.php resource.php
schedule.php serverprofiles.php siteconfig.php sitemaintenance.php
statistics.php userpreferences.php utils.php vm.php xmlrpcWrappers.php
index.php shibauth/index.php
additional changes in utils.php:
-modified mysql_connect_plus: accept a database argument because the database
is passed to mysqli_connect
-modified dbConnect: removed calls to mysql_select_db and added database
argument to calls to mysql_connect_plus
-added vcl_mysql_escape_string: mysqli_real_escape_string requires the database
handle to be passed; having a wrapper function prevents having to reference the
database handle global variable in every function needing to escape database
data
-modified datetimeToUnix: removed '-1' argument to mktime as it is removed in
php7
-modified unixFlor15: removed '-1' argument to mktime as it is removed in php7
> make PHP code compatible with PHP 7
> -----------------------------------
>
> Key: VCL-1106
> URL: https://issues.apache.org/jira/browse/VCL-1106
> Project: VCL
> Issue Type: Improvement
> Components: web gui (frontend)
> Reporter: Josh Thompson
> Priority: Major
> Fix For: 2.5.1
>
>
> PHP 5.6 is EOL at the end of 2018. The frontend code needs to get updated to
> be compatible with PHP 7. The primary thing that needs to be done is changing
> from mysql_* functions to mysqli_* functions.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)