- Notifications
You must be signed in to change notification settings - Fork0
spk/php-src
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
PHP is a popular general-purpose scripting language that is especially suited toweb development. Fast, flexible and pragmatic, PHP powers everything from yourblog to the most popular websites in the world. PHP is distributed under thePHP License v3.01.
The PHP manual is available atphp.net/docs.
Prebuilt packages and binaries can be used to get up and running fast with PHP.
For Windows, the PHP binaries can be obtained fromwindows.php.net. After extracting the archive the*.exe files are ready to use.
For other systems, see theinstallation chapter.
For Windows, seeBuild your own PHP on Windows.
For a minimal PHP build from Git, you will need autoconf, bison, and re2c. Fora default build, you will additionally need libxml2 and libsqlite3.
On Ubuntu, you can install these using:
sudo apt install -y pkg-config build-essential autoconf bison re2c \ libxml2-dev libsqlite3-devOn Fedora, you can install these using:
sudo dnf install re2c bison autoconf make libtool ccache libxml2-devel sqlite-develGenerate configure:
./buildconfConfigure your build.--enable-debug is recommended for development, see./configure --help for a full list of options.
# For development./configure --enable-debug# For production./configureBuild PHP. To speed up the build, specify the maximum number of jobs using-j:
make -j4The number of jobs should usually match the number of available cores, whichcan be determined usingnproc.
PHP ships with an extensive test suite, the commandmake test is used aftersuccessful compilation of the sources to run this test suite.
It is possible to run tests using multiple cores by setting-jN inTEST_PHP_ARGS:
make TEST_PHP_ARGS=-j4 testShall runmake test with a maximum of 4 concurrent jobs: Generally the maximumnumber of jobs should not exceed the number of cores available.
Theqa.php.net site provides more detailed info abouttesting and quality assurance.
After a successful build (and test), PHP may be installed with:
make installDepending on your permissions and prefix,make install may need super userpermissions.
Extensions provide additional functionality on top of PHP. PHP consists of manyessential bundled extensions. Additional extensions can be found in the PHPExtension Community Library -PECL.
The PHP source code is located in the Git repository atgithub.com/php/php-src. Contributions are mostwelcome by forking the repository and sending a pull request.
Discussions are done on GitHub, but depending on the topic can also be relayedto the official PHP developer mailing listinternals@lists.php.net.
New features require an RFC and must be accepted by the developers. SeeRequest for comments - RFC andVoting on PHP features for more informationon the process.
Bug fixes don't require an RFC. If the bug has a GitHub issue, reference it inthe commit message usingGH-NNNNNN. Use#NNNNNN for tickets in the oldbugs.php.net bug tracker.
Fix GH-7815: php_uname doesn't recognise latest Windows versionsFix #55371: get_magic_quotes_gpc() throws deprecation warningSeeGit workflow for details on how pullrequests are merged.
See further documents in the repository for more information on how tocontribute:
For the list of people who've put work into PHP, please see thePHP credits page.
About
The PHP Interpreter
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Languages
- C67.6%
- PHP30.2%
- C++0.6%
- M40.4%
- Shell0.3%
- Lua0.3%
- Other0.6%