?
avatar Napoleon-BlownApart
Napoleon-BlownApart
11 Feb 2017

When building Joomla in my branch derived from staging, I'm getting a notice that complains about the contents of $release.

Perhaps my php7.1 isn't set up quite like it should be for Joomla, or I have misunderstood the purpose of the $release variable. The notice I'm getting is:

Notice: A non well formed numeric value encountered in /home/user/Downloads/Joomla/joomla-cms/build/build.php on line 138

My Line 138 is:

for ($num = $release - 1; $num >= 0; $num--)

The build continues, but I'm not sure what the value should be here because when I echo $release, it contains the string 0-beta3. Should it be 0 or 3, or something else in certain cases? During my build, the string is evaluated to 0 and the for loop is bypassed.

avatar Napoleon-BlownApart Napoleon-BlownApart - open - 11 Feb 2017
avatar joomla-cms-bot joomla-cms-bot - change - 11 Feb 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 11 Feb 2017
avatar Napoleon-BlownApart Napoleon-BlownApart - edited - 11 Feb 2017
avatar Napoleon-BlownApart Napoleon-BlownApart - change - 11 Feb 2017
The description was changed
avatar Napoleon-BlownApart Napoleon-BlownApart - edited - 11 Feb 2017
avatar PhilETaylor
PhilETaylor - comment - 4 Mar 2017

This is a PHP 7.1 issue...

See other issues:
#12311
#13251
#12310

avatar Napoleon-BlownApart
Napoleon-BlownApart - comment - 5 Mar 2017

@PhilETaylor : Right. Should I (or you) close this issue then?

avatar joomla-cms-bot joomla-cms-bot - change - 5 Mar 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 5 Mar 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 30 Mar 2017
Category Installation
avatar joomla-cms-bot joomla-cms-bot - change - 5 Apr 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 5 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - close - 5 Apr 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Apr 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-04-05 11:05:31
Closed_By franz-wohlkoenig
avatar joomla-cms-bot
joomla-cms-bot - comment - 5 Apr 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 5 Apr 2017

closed as this Issue is not an Core-Issue.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14017.

avatar mbabker
mbabker - comment - 5 Apr 2017

It is a core issue. The build script lives in the repository and is how we build release packages. So someone needs to confirm the build script works correctly on PHP 7.1 and if not fix it.

avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Apr 2017
Status Closed Needs Review
Closed_Date 2017-04-05 11:05:31
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 5 Apr 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 5 Apr 2017
avatar joomla-cms-bot
joomla-cms-bot - comment - 5 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - reopen - 5 Apr 2017
avatar brianteeman
brianteeman - comment - 21 May 2017

i can confirm that the build script is NOT working correctly on php 7.1.1 so someone with better skills than me needs to fix it ;)

avatar mbabker
mbabker - comment - 21 May 2017

We probably need to restructure our internal constants in JVersion so they are always consistently strings or integers, not mixed. The way Symfony does it, each of their version constants in the Kernel is a fragment of the full version string, then they have a constant which is the full version string. https://github.com/symfony/http-kernel/blob/3.4/Kernel.php#L64-L69

avatar brianteeman
brianteeman - comment - 21 May 2017

Closed please see #16169

avatar brianteeman brianteeman - change - 21 May 2017
The description was changed
Status Needs Review Closed
Closed_Date 0000-00-00 00:00:00 2017-05-21 15:34:27
Closed_By brianteeman
avatar brianteeman brianteeman - close - 21 May 2017

Add a Comment

Login with GitHub to post a comment