Well it’s been a while since the PHP team have had any updates to post to this blog. For the last few months the team has been heads down working with the rest of the App Engine team working on improving the reliability, stability and performance of the platform. You can read a little more on this in this post that our very own VP Daniel Sturman made on the App Engine discussion forum.
That being said, we’re ready to get the ball rolling once more on delivering a great PHP experience on App Engine, moving the platform from experimental to GA as soon as possible. In fact, we have the following features ready to launch in the next App Engine release, 1.9.17.
- Upgrading the interpreter to PHP 5.5.18, which includes
- support for Zend opcache.
- APCu extension for in process caching.
- backend improvements for parallel request serving from the same runtime instance.
- Adding support for the cURL extension.
- Adding support for the mailparse extension.
Now usually we do not pre-announce features that are scheduled in an upcoming release, because plans can change at the last minute and features can be pushed back a release or two (which could still happen here). But we regard this is a special case as the change from PHP 5.4.32 to PHP 5.5.18 could break existing applications. There is a small list of PHP 5.5 backwards incompatible changes and we want to give you developers a chance to fix any issues that your apps might have because of the switch.
To assist in identifying any potential problems in your applications, we’ve created 1.9.17 pre-release SDKs that have the PHP 5.5 interpreter bundled. You can download these SDKs from the following links.
For linux users, we suggest building the interpreter from source, using the following shell commands.
sudo apt-get install gcc libmysqlclient-dev libxml2-dev libcurl4-openssl-dev libpng-dev libjpeg-dev wget --trust-server-names http://us2.php.net/get/php-5.5.18.tar.bz2/from/us1.php.net/mirror tar -xvf php-5.5.18.tar.bz2 cd php-5.5.18 DEST=$HOME/app_engine/5.5 ./configure --prefix=$DEST/installdir \ --enable-bcmath \ --enable-calendar \ --enable-ftp \ --enable-mbstring \ --enable-opcache \ --enable-soap \ --enable-sockets \ --enable-zip \ --disable-fileinfo \ --disable-flatfile \ --disable-posix \ --with-curl \ --with-gd \ --with-openssl \ --without-sqlite3 \ --without-pdo-sqlite \ --without-imap \ --without-kerberos \ --without-imap-ssl\ --without-interbase \ --without-ldap \ --without-mssql \ --without-oci8 \ --without-pgsql \ --without-pear \ --disable-phar \ --without-snmp \ --enable-mysqlnd \ --with-pdo-mysql=mysqlnd \ --with-mysqli=mysqlnd \ --with-mysql=mysqlnd make install -j cd -
This will build an php-cgi
binary that is used by the App Engine development server, which can be found located in the folder $DEST/app_engine/5.5/installdir/bin
. Follow these instructions to run the development appserver with the php-cgi
binary that you’ve built.
As always, you can report any issues in the public issue tracker and we’ll do our best to solve them promptly.
Google cloud Platform tutorial & experiences
Pingback: Update your Google API PHP Client | Tips and Tricks for PHP on Google App Engine