On 7/23/2018 4:13 PM, Johannes Findeisen wrote:
Hello,
I am trying to port my extension "pcsc" to PHP7. I wonder how this task
is done right.
Is it possible to port it to PHP7 and stay PHP5 compatible?
Are there any good information somewhere on how to do porting right?
Regards,
Johannes
If you want to see how I did that very task, look at the PECL sync
extension's source code. It's a fairly simple extension, so it should
be pretty easy to follow.
There's also a PHP 5 + 7 compatibility layer floating around out there.
I don't remember what it was called nor know if it is well-maintained.
PHP 5 will be officially EOL'ed at the end of this year:
http://php.net/supported-versions.php
I don't know what kind of support level you want to provide, but my
approach is to support older versions of PHP until they disappear off
the homepage of php.net. There's about a 3 month lag time after EOL
until a version is removed from the homepage. PHP 7 came out 2.5 years
ago and most people are (or should be) on PHP 7 now. PHP 7.3 is also
coming down the pipeline. Seems to me like a lot of extra work to put
in (dev + testing time) for backwards-compatibility at this point when
it won't really be relevant in just a few months. That's just my
opinion though. You know your user base far better than anyone else.
--
Thomas Hruska
CubicleSoft President
I've got great, time saving software that you will find useful.
http://cubiclesoft.com/
And once you find my software useful:
http://cubiclesoft.com/donate/
--
PECL development discussion Mailing List (http://pecl.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php