Testing PHP 5.4

Rasmus Lerdorf today posted instructions for testing the upcoming PHP 5.4 release. Running the PHP tests and submitting the associated report will help the PHP team get PHP 5.4 ready faster as it gives them reports of failed tests from a variety of platforms. I just did this today for the first time and can tell you that it is very easy. Following are the steps that Rasmus outlined, in a bit more detail.

First, make sure that you have subversion, autoconf, automake, gcc, bison, flex, and re2c installed. I’m using a Mac, so I was able to install most of these using MacPorts (Homebrew would have worked, too). Next, do a checkout of the PHP 5.4 branch:

$ svn co https://svn.php.net/repository/php/php-src/branches/PHP_5_4 php54

Then:

$ cd php54
$ ./buildconf
$ ./configure
$ make
$ make test

Both the make and make test steps may take awhile. Assuming you get some failed tests like I did, then you will see the following message and prompt:

You may have found a problem in PHP.
This report can be automatically sent to the PHP QA team at
http://qa.php.net/reports and http://news.php.net/php.qa.reports
This gives us a better understanding of PHP's behavior.
If you don't want to send the report immediately you can choose
option "s" to save it.    You can then email it to qa-reports@lists.php.net later.
Do you want to send this report now? [Yns]:

I opted to send the report now, so entered Y. Next, I was prompted for my email address:

Please enter your email address.
(Your address will be mangled so that it will not go out on any
mailinglist in plain text):

I entered my email address and then:

Posting to http://qa.php.net/buildtest-process.php

Thank you for helping to make PHP better.

Pretty straightforward. At this point, your report should be aggregated on the PHP Test Reports Summary page. If you want to run more tests, then configure as many extensions as possible during the configure step. Take a look at the shell script in Rasmus’ instructions for details. If you’d like, you can examine the failed tests and see if you can come up with a patch to fix the problem. Again, see Rasmus’ instructions for details.

2 Comments

  1. Posted July 1, 2011 at 5:48 pm | Permalink

    Maybe its just me, but I had to install “libxml2-dev” (required for “xml2-config”) too (ubuntu-11.04).

  2. Posted July 5, 2011 at 7:53 am | Permalink

    You may need these for compiling everything Rasmus marks as enabled:

    Debian 6.0.1
    apt-get install build-essential libxml2-dev apache2-prefork-dev libcurl3-dev libjpeg-dev libgd2-xpm-dev libvpx-dev libt1-dev libmcrypt-dev libpspell-dev libreadline-dev libtidy-dev libxslt1-dev

    Ubuntu 10.0.4
    apt-get install build-essential libxml2-dev apache2-prefork-dev libcurl3-dev libjpeg8-dev libgd2-xpm-dev libvpx-dev libt1-dev libmcrypt-dev libpspell-dev libreadline-dev libtidy-dev libxslt1-dev

2 Trackbacks

  1. By Comment tester PHP 5.4 | Vincent Gache on July 4, 2011 at 5:41 am

    [...] et l’attendu. Bon et puis après, ben amusez vous avec le bouzin! Pour les utilisateurs de MAC c’est par ici.Partager! Mots-clefs :mise à jour, PHP, php 5.4, subversion Commentaire (RSS) [...]

  2. [...] Holt hat einen neuen Beitrag in seinem Blog heute sprechen über die Erfahrungen, die er mit Prüfung der PHP 5,4 alpha1 Version , gerade aus dem PHP Development Group geschrieben. Rasmus Lerdorf Heute posted Anweisungen zur [...]