PHP
downloads | documentation | faq | getting help | mailing lists | | php.net sites | links | my php.net

search for in the

Anonymous CVS Access

If you wish to get the latest PHP source tree, you can obtain it through anonymous CVS. You should be warned that the CVS version is a development version, and as such, is often unstable, and may not even compile properly. The advantage of using CVS, though, is that you can get the latest fixes and updates, without having to wait for the official releases.

You can find more information about CVS, and download clients for most major platforms, at .

PHP uses an advanced configuration system that requires you to have the following tools. All necessary utilities can be obtained from .

If you're experiencing problems, see also the section on buildconf failures.

Steps for using PHP from CVS

  1. It is recommended that you configure CVS by putting this in your ~/.cvsrc file:
    cvs -z3
    update -d -P
    checkout -P
    diff -u
    
  2. Log in to the PHP CVS server. We'll use the anonymous user cvsread as the username, and use phpfi as the password:
    cvs -d :pserver:[email protected]:/repository login
  3. Obtain the latest PHP source from CVS. There is a single php-src directory that contains all PHP 4 and PHP 5 branches. To get PHP from CVS, use the "cvs checkout -r BRANCH" notation. To checkout the latest, consider the following CVS commands:

    PHP 4.3: cvs -d :pserver:[email protected]:/repository checkout -r PHP_4_3 php-src
    PHP 5.0: cvs -d :pserver:[email protected]:/repository checkout -r PHP_5_0 php-src
    PHP 5.1: cvs -d :pserver:[email protected]:/repository checkout php-src

    Some tips and notes:
    You may retrieve a specific release of PHP from CVS by using the -r flag in your cvs command. Some examples:
    cvs -d :pserver:[email protected]:/repository checkout -r php_4_2_1 php-src
    cvs -d :pserver:[email protected]:/repository checkout -r php_4_3_2 php-src
    • The branch names can also be used for cvs diff and merge operations.
    • All of the above commands create a local directory named "php-src". You can also specify another directory name, for example, to put PHP 5 HEAD into a directory named php5dev:
      cvs -d :pserver:[email protected]:/repository checkout -d php5dev php-src
  4. Make sure you have autoconf 2.13 or newer, automake 1.4 or newer and libtool 1.4.
    Note that certain combinations of autoconf, automake and libtool may not work when used together. See below for details.
    Also, certain versions of autoconf may generate warnings of AC_PROG_CPP called before AC_PROG_CC. These messages can usually be ignored.
  5. Run ./buildconf. After a while, the configure script should be generated.
  6. From this point onwards, installation is similar to the installation of one of the official packages with one main difference - you must have bison 1.28 or later and flex 2.5.4 to compile, because the pre-generated scanner and parser files are not included in CVS.

There are also other things, like the XML source code for the documentation, available via anonymous CVS. See to see what is available, and substitute the appropriate module name for "php-src" in step 3 (and ignore the later steps). For example, to checkout the latest english version of the PHP manual:
cvs -d :pserver:[email protected]:/repository checkout phpdoc

You can also mirror the PHP CVS repository using CVSup, see our CVSup page for more details. You may also be interested in a PHP snapshot, see . Compiled snapshots for Windows users are also included.

autoconf, automake and libtool information

There seem to be problems with libtool 1.4.2. It is suggested that you use libtool 1.4, along with the autoconf 2.13 and automake 1.4. You should also ensure that autoconf, automake and libtool are installed in the same directory. libtool 1.5 will not work.

The following combinations are known to work:

 
show source | credits | sitemap | contact | advertising | mirror sites