View Issue Details

IDProjectCategoryView StatusLast Update
0005836Custom Profile Fields[Simple:Press] php 7 compatibilitypublic2017-08-05 23:37
ReporterMr PapaAssigned ToMr Papa 
PrioritycriticalSeverityN/AReproducibilityhave not tried
Status closedResolutionfixed 
Product Version[Simple:Press] 5.7.5 
Target Version[Simple:Press] 5.8Fixed in Version[Simple:Press] 5.8 
Summary0005836: custom profile fields doesnt work in php 7
Descriptionphp 7 changed its handling of indirect variables, properties, and methods... Indirect access to variables, properties, and methods will now be evaluated strictly in left-to-right order, as opposed to the previous mix of special cases....

so for example

$foo->$bar['baz']

php 5 evaluates as: $foo->{$bar['baz']}

while php 7 evaluates as: ($foo->$bar)['baz']

we use this type of access in the plugin...
TagsNo tags attached.
change_log_textfix php 7 indirect access to variables
typedefect

Activities

svn

svn

2017-08-02 02:31

administrator   ~0019547

Changeset [15481] by steve on 2017-08-01 22:31:34 -0400 (Tue, 01 Aug 2017)

test issue 0005836 fix php 7 indirect access to variables
test issue 0005837 fix php 7 indirect access to variables

 Changed Files:

U plugins5/custom-profile-fields/library/sp-custom-profile-fields-components.php
U plugins5/custom-profile-fields/sp-custom-profile-fields-plugin.php
U plugins5/custom-profile-fields/template-tags/sp-custom-profile-fields-display-tag.php
U plugins5/identities/library/sp-identities-components.php
U plugins5/identities/sp-identities-plugin.php
U plugins5/plugins-updates.txt

 Differences:

 http://websvn.simple-press.com/revision.php?repname=Simple:Press&path=%2F&rev=15481
svn

svn

2017-08-02 02:38

administrator   ~0019549

Changeset [15482] by steve on 2017-08-01 22:38:37 -0400 (Tue, 01 Aug 2017)

test issue 0005836 fix php 7 indirect access to variables
test issue 0005837 fix php 7 indirect access to variables

 Changed Files:

U plugins/custom-profile-fields/library/sp-custom-profile-fields-components.php
U plugins/custom-profile-fields/template-tags/sp-custom-profile-fields-display-tag.php
U plugins/identities/library/sp-identities-components.php

 Differences:

 http://websvn.simple-press.com/revision.php?repname=Simple:Press&path=%2F&rev=15482

Issue History

Date Modified Username Field Change
2017-08-02 01:49 Mr Papa New Issue
2017-08-02 01:49 Mr Papa Assigned To => Mr Papa
2017-08-02 02:30 Mr Papa Status new => assigned
2017-08-02 02:31 svn =>
2017-08-02 02:31 svn Note Added: 0019547
2017-08-02 02:31 svn Status assigned => testing
2017-08-02 02:38 svn =>
2017-08-02 02:38 svn Note Added: 0019549
2017-08-05 23:37 Mr Papa Status testing => closed
2017-08-05 23:37 Mr Papa Resolution open => fixed
2017-08-05 23:37 Mr Papa Fixed in Version => 5.8
2017-08-05 23:37 Mr Papa change_log_text update => fix php 7 indirect access to variables