[ 
https://issues.apache.org/jira/browse/VCL-1138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17805796#comment-17805796
 ] 

ASF subversion and git services commented on VCL-1138:
------------------------------------------------------

Commit 8ff93235d346ef44947cc7a60e1d6ce60e99d184 in vcl's branch 
refs/heads/develop from Josh Thompson
[ https://gitbox.apache.org/repos/asf?p=vcl.git;h=8ff93235 ]

VCL-1138 - make PHP code compatible with PHP 8

generally:
-added default values when processing POST or GET input data so NULL values 
aren't assigned
-removed calls to get_magic_quotes_gpc and stripslashes
-changed how date and time values are formatted to remove calls to strftime
-added checks for variables having NULL value before using string functions 
(such as strpos, strlen) on them
-for some classes, added some variable declarations to top of class

additional specifics:
help.php: changed calls to mysql_fetch_assoc to call mysqli_fetch_assoc
requests.php: modified printImageDescription to use new function htmlwrap that 
wraps strings without counting the characters used by html tags
utils.php:
-changed __autoload to vclAutoLoader registered with spl_autoload_register
-added doPSQuery, similar to doQuery but uses prepared statements
-added minToDaysHourMin
-added htmlwrap
-modified getVariable, getVariablesRegex, and setVariable to use doPSQuery 
instead of doQuery
-modified getFSlocales to use fgets and strip_tags instead of fgetss


> make PHP code compatible with PHP 8
> -----------------------------------
>
>                 Key: VCL-1138
>                 URL: https://issues.apache.org/jira/browse/VCL-1138
>             Project: VCL
>          Issue Type: Improvement
>          Components: web gui (frontend)
>            Reporter: Josh Thompson
>            Assignee: Josh Thompson
>            Priority: Major
>             Fix For: 2.6
>
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to