Below is the text of the page https://www.php.net/git.php stored 2016-09-04 by archive.org.ua. The original page over time could change. View as original html

PHP: Git Access

[/] Downloads Documentation Get Involved Help PHP 7.1.0 Release Candidate 1 Released Getting Started Introduction A simple tutorial Language Reference Basic syntax Types Variables Constants Expressions Operators Control Structures Functions Classes and Objects Namespaces Errors Exceptions Generators References Explained Predefined Variables Predefined Exceptions Predefined Interfaces and Classes Context options and parameters Supported Protocols and Wrappers Security Introduction General considerations Installed as CGI binary Installed as an Apache module Filesystem Security Database Security Error Reporting Using Register Globals User Submitted Data Magic Quotes Hiding PHP Keeping Current Features HTTP authentication with PHP Cookies Sessions Dealing with XForms Handling file uploads Using remote files Connection handling Persistent Database Connections Safe Mode Command line usage Garbage Collection DTrace Dynamic Tracing Function Reference Affecting PHP's Behaviour Audio Formats Manipulation Authentication Services Command Line Specific Extensions Compression and Archive Extensions Credit Card Processing Cryptography Extensions Database Extensions Date and Time Related Extensions File System Related Extensions Human Language and Character Encoding Support Image Processing and Generation Mail Related Extensions Mathematical Extensions Non-Text MIME Output Process Control Extensions Other Basic Extensions Other Services Search Engine Extensions Server Specific Extensions Session Extensions Text Processing Variable and Type Related Extensions Web Services Windows Only Extensions XML Manipulation Keyboard Shortcuts ? This help j Next menu item k Previous menu item g p Previous man page g n Next man page G Scroll to bottom g g Scroll to top g h Goto homepage g s Goto search (current page) / Focus search box Git Access If you wish to get the latest PHP source tree, you can obtain it through Git. You should be warned that the Git version is a development version, and as such, is often unstable, and may not even compile properly. The advantage of using Git, though, is that you can get the latest fixes and updates, without having to wait for the official releases. PHP uses an advanced configuration system that requires you to have the following tools. re2c is only necessary for developers and can be found here . All other utilities can be obtained from the GNU FTP site . autoconf : 2.59+ automake : 1.4+ libtool : 1.4.x+ (except 1.4.2) re2c : 0.13.4+ bison : PHP 5.4 : 1.28, 1.35, 1.75, 2.0 to 2.6.4 PHP 5.5 and 5.6 : 2.4 to 2.7 PHP 7 : 2.4+ If you're experiencing problems, see also the section on buildconf failures . Steps for using PHP from Git You can retrieve the PHP source code from our GitHub mirror with this command: git clone https://github.com/php/php-src.git Alternatively, you can retrieve the source code from git.php.net with this command: git clone http://git.php.net/repository/php-src.git You can also download a snapshot from GitHub: Go to the php-src project page . Select the branch you're interested in from the branch dropdown. Click on the Download ZIP button. Make sure you're in the right directory to work on PHP: cd php-src You can then check out the branch you want to build, for example: PHP 5.4 : git checkout PHP-5.4 PHP 5.5 : git checkout PHP-5.5 PHP 5.6 : git checkout PHP-5.6 PHP 7.0 : git checkout PHP-7.0 PHP HEAD : git checkout master Note that certain combinations of autoconf, automake and libtool may not work when used together, particularly with historical versions of PHP. 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. Run ./buildconf to generate the configure script. This may take several moments. From this point onwards, installation is similar to the installation of one of the official packages with one main difference – you will need a version of bison that is supported for the PHP version you want to build . You may also require re2c if you intend to change any of the scanner and parser files PHP uses. There are many other things, such as the XML source code for the documentation, available via Git. See the web-based view of the Git server to see what is available. The PHP Wiki has a useful Git FAQ , which provides useful tips and cheatsheets for using the PHP Git repository, and if you want to become involved in developing PHP, the Git Workflow page is also likely to be of interest. PHP manual The PHP manual is still currently hosted on SVN, although it will be migrated to Git in the future. To checkout the latest English version of the PHP manual: svn checkout https://svn.php.net/repository/phpdoc/modules/doc-en ./phpdoc-en You can also check the SVN FAQ on the wiki . Historical issues autoconf, automake and libtool information for PHP 5.3 and below There seem to be problems with libtool 1.4.2. It is suggested that you use libtool 1.4, along with 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 with PHP 5.3 and below: autoconf 2.13, automake 1.4 and libtool 1.4.3 autoconf 2.13, automake 1.5 and libtool 1.4.3 If you have multiple versions of autoconf installed on your computer, as is common for many UNIXes, you can set the PHP_AUTOCONF and PHP_AUTOHEADER variables when running buildconf to indicate which versions it should use e.g.: PHP_AUTOCONF=autoconf213 PHP_AUTOHEADER=autoheader213 ./buildconf Zend/zend_language_scanner.c: No such file or directory PHP only supports flex 2.5.4, not later versions as they broke backwards compatibility. Please note that PHP 5.3 and later do not require flex at all. Copyright © 2001-2016 The PHP Group My PHP.net Contact Other PHP.net sites Mirror sites Privacy policy