Not a bug: phpversion('extension_name') returns false
bugs.php.net
bugs.php.net
Now if you look at, for example, the bz2 extension: https://github.com/php/php-src/blob/master/ext/bz2/bz2.c You see that NO_VERSION_YET (NULL) is set in the version field of the struct (line 122).
You can grep for "NO_VERSION_YET" in the "ext"-directory and you'll see some extensions without version information.
So the problem is in the extensions, and since the extensions deliberately have no version information the behaviour is no bug.