Topic: More php 7 fixes

I've done a few more php 7 fixes.

https://github.com/cambell-prince/frontaccounting/commit/65957eac3be2fae85088be43466b89d1025e7c31

Cambell https://github.com/cambell-prince

Re: More php 7 fixes

Hope these constructors do not disrupt existing PHP 5.3 users.

Re: More php 7 fixes

PHP 5.3 went end of life nearly 3 years ago.  The Travis Tests are running on PHP 5.4 and are all passing.

If you all were to integrate the test from this PR then you would be able to continually run the tests on Travis against multiple versions of PHP.

There are also additional changes in a subsequent commit.

Cambell https://github.com/cambell-prince

Re: More php 7 fixes

PHP 5.3 going EOL  does not affect this version of FA and it's large userbase who are still on those versions. The newer versions and forks can cater to the latest versions of PHP. Almost all the users are on some form of private VPNs or on LANs for FA usage or protected by some other means or do not need the benefits of the later versions of PHP.

Re: More php 7 fixes

The changes were made against 2.4, the unstable branch.  So, are you saying there's a large user base of 2.4 users using php 5.3?  If that's the case simply add that to the Travis test set.

Cambell https://github.com/cambell-prince

Re: More php 7 fixes

Yes, many users are on PHP 5.3.

Re: More php 7 fixes

FYI, the old style constructors (same name as class) started to be deprecated in PHP 5.3.3 (in the case that a namespace was used - which is not used in FA).  The new style __construct was introduced in PHP 5.  The old style is deprecated in PHP 7.

See http://php.net/manual/en/language.oop5.decon.php for more info.

Cambell https://github.com/cambell-prince

Re: More php 7 fixes

So guys.. do you have a guess on when FA 2.4 can be used on production ??
where can i download the latest FA 2.4 with your latest fixes ?

Regards.

Re: More php 7 fixes

Actually FA 2.4RC1 is already used in production by quite a few users. You will ofcourse need to be aware that database changes will possibly devolve in time for this branch though upgrade paths will exist for standard installs (but not guaranteed for the extensions).

The latest code for this branch is available here.

Re: More php 7 fixes

apmuthu wrote:

Actually FA 2.4RC1 is already used in production by quite a few users. You will ofcourse need to be aware that database changes will possibly devolve in time for this branch though upgrade paths will exist for standard installs (but not guaranteed for the extensions).

The latest code for this branch is available here.

Thanks mate.

Re: More php 7 fixes

apmuthu wrote: wrote:

You will of course need to be aware that database changes will possibly devolve in time for this branch though upgrade paths will exist for standard installs.

Call me an idiot (and you are probably right) but what does that mean when you say "database changes will possibly devolve." If I use this branch will I still be able to easily upgrade to the final...?

Re: More php 7 fixes

In general, yes. Sometimes there may be glitches in upgradation and user testing reports will help iron out such bugs.

As FA 2.4 is the unstable and development version, when new features are needed or issues addressed, it may require database structure  and/or data changes. Such changes are generally placed in an alter sql/php file in the sql folder that may need to be executed manually (with care as to the db_prefix) or possibly through the web interface - Setup -> Software Upgrade. The best way is to manually execute the changes in a MySQL client, line by line on a backup of the database first and then perform the actions on the live one - YMMV.