php-rql icon indicating copy to clipboard operation
php-rql copied to clipboard

php5.3

Open mbrevda opened this issue 8 years ago • 11 comments

Any reason for still supporting php53? Seems even 5.4 is EOL, targeting 5.5 or 5.6 might make more sense.

mbrevda avatar Sep 21 '15 05:09 mbrevda

Ubuntu 12.04 still ships with PHP 5.3, which is supported until 2017. That's the main reason for why we're still supporting it.

danielmewes avatar Sep 23 '15 22:09 danielmewes

I take that there will be no support for php 7 before then, either?!

mbrevda avatar Sep 23 '15 22:09 mbrevda

I haven't looked too much at PHP 7 yet. I'm hoping we can support both with the same codebase.

Are there currently any issues with using PHP-RQL on PHP 7 that you're aware of?

danielmewes avatar Sep 23 '15 23:09 danielmewes

While Ubuntu 12.04 might be a LTS, that doesn't mean they will be adding security patches to php (which even php won't be doing!).

PHP 7 shouldn't have any issues, but enhancements. It would be a shame to hold back all the new features and enhancement for that much time.

Perhaps semve'dr releases would be a good idea here? Branch off the current code as an LTS version, but allow the rest of the project to move forward?

mbrevda avatar Sep 24 '15 04:09 mbrevda

Would it be ok to reopen this issue to continue the discussion? I'm really not sure that anchoring to a given Ubuntu release accurately reflects the broader user base of RethinkDB users. Considering the performance gains and usage features introduced in php7, it would perhaps be worthwhile to leverage those before August 2017.

mbrevda avatar Sep 27 '15 09:09 mbrevda

I don't quite understand where the contradiction is yet.

You mention PHP7 enhancements that we could use in the driver. Which are those? Are they important for the driver API or just to make the driver's internal structure cleaner?

If there is a strong enough motivation to use PHP7-only features, it would probably be best if someone created a fork.

I personally am still using multiple servers with Ubuntu 12.04, and I know that there are a lot of RethinkDB users on those versions (or on similarly old versions of CentOS / CentOS-based distributions). It is not realistic that everyone will be running PHP 7 any time soon. Even if we can drop support for PHP 5.3, there will still be loads of installations of PHP 5.4 out there.

danielmewes avatar Sep 27 '15 16:09 danielmewes

Actually one feature that would be extremely useful are generators with yield (supported since PHP 5.5 I think?). We could use these to support an asynchronous driver API. In any case that would be an optional feature though, so it wouldn't require dropping support for 5.3.

danielmewes avatar Sep 27 '15 17:09 danielmewes

Yup, generators landed in php55.

Are they important for the driver API or just to make the driver's internal structure cleaner?

My concern isn't not being to take advantage of the new API as much as it is deciding that the option to include them won't exists for another few years. Inasmuch as Ubuntu/CentOS isn't pushing a new version of php/rdb I don't see why users of those platforms would require a new version of the driver either.

Hence my suggestion: lock down a version as being php53 compatible (aka LTS), and then continue development whilst taking advantage of newer php features. This will allow new features (like generators) to be included as they become available.

mbrevda avatar Sep 28 '15 19:09 mbrevda

One nice feature in php7 is a more intelligent parser that allows for otherwise reserved words in places that make sense. This will all for and/or methods/classes without having to prefix them.

mbrevda avatar Sep 28 '15 19:09 mbrevda

With #107 merged and 2.2 out, may I recommend making 2.2 a LTS release without any new features? This would allow the driver to move forward with php7, without having to worry about older clients.

mbrevda avatar Dec 06 '15 08:12 mbrevda

We are using php7. Rethinkdb php driver does support for php7 ? if doesn't support it So when does will support it ?

javkhlan-g avatar Oct 30 '17 04:10 javkhlan-g