WebsiteBaker Community Forum

General Community => Off-Topic => Topic started by: easyuser on May 12, 2015, 09:17:05 AM

Title: PHP 7: Scalar types
Post by: easyuser on May 12, 2015, 09:17:05 AM
Hello,

PHP 7 is expected in Summer 2015. The biggest feature for developers is perhaps the possibilitiy for using scalar types (int, float, string, bool).
In my opinion that's really necessary.

Also deprecated functionality like ext/mysql will be completely removed.

https://blog.engineyard.com/2015/what-to-expect-php-7

Please don't expect WebsiteBaker running on PHP7 without changes.
Title: Re: PHP 7: Scalar types
Post by: DarkViper on May 12, 2015, 11:46:31 AM
I like these changes.. am waiting for years to get scalar type hints. ;-) They will save a lot of sanitizing code.
The newer WB code will have only less problems to be adapted.

Right now we already use "good will" type hints. See the notation for variables from WB2.8.4 (i.e.  $sString, $iInteger, $fFloat, $aArray, $oObject  a.s.o.). SPL-types has been unliked crutches only.

All other incompatibilities will not make too much trouble... i hope..  8-)
How it looks at modules? It's better don't think about.  :?

Manuela