Looking for PCRE regex compatible with version_compare()

Discuss the development of future releases of phpBB (phpBB 3.x minor releases) and MODing/Coding related questions.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Looking for PCRE regex compatible with version_compare()

Postby Obsidian » 24 Apr 2009, 19:50


User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Looking for PCRE regex compatible with version_compare()

Postby igorw » 24 Apr 2009, 21:03

Do you want to force an alpha or a beta to have a number?

- we're poor!

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Looking for PCRE regex compatible with version_compare()

Postby Obsidian » 24 Apr 2009, 21:20

No, I don't.

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Looking for PCRE regex compatible with version_compare()

Postby Obsidian » 28 Apr 2009, 00:53

Actually, is 1.a a valid entry for version_compare()?

User avatar
igorw
Past Contributor
Past Contributor
Posts: 1967
Joined: 01 Jun 2006, 20:48
Real name: Igor
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Looking for PCRE regex compatible with version_compare()

Postby igorw » 28 Apr 2009, 08:56

version_compare is pretty flexible, but I actually believe it interprets a as alpha. So 1.0.a is 1.0-alpha. At least from reading the man page: http://ch2.php.net/version_compare. it's well possible that when appended it means something else...

- we're poor!

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Looking for PCRE regex compatible with version_compare()

Postby Obsidian » 28 Apr 2009, 13:16



[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “phpBB Development discussion”

Who is online

Users browsing this forum: No registered users and 9 guests