Looking for PCRE regex compatible with version_compare()
- igorw
- 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()
Do you want to force an alpha or a beta to have a number?
- we're poor!
Re: Looking for PCRE regex compatible with version_compare()
Actually, is 1.a a valid entry for version_compare()?
- igorw
- 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()
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!
Return to “phpBB Development discussion”
Who is online
Users browsing this forum: No registered users and 9 guests