- Notifications
You must be signed in to change notification settings - Fork1
adsr/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-devGenerate 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 atgit.php.net. Contributions are most welcome by forkingtheGitHub mirror repository and sending apull 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 fixesdo not require an RFC but require a bug tracker ticket. Open aticket atbugs.php.net and reference the bug id using#NNNNNN.
Fix #55371: get_magic_quotes_gpc() throws deprecation warningAfter removing magic quotes, the get_magic_quotes_gpc function caused adeprecated warning. get_magic_quotes_gpc can be used to detect themagic_quotes behavior and therefore should not raise a warning at any time.The patch removes this warning.Pull requests are not merged directly on GitHub. All PRs will be pulled andpushed throughgit.php.net. SeeGit workflow for more details.
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
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Languages
- C66.5%
- PHP24.2%
- C++7.6%
- M40.4%
- Objective-C0.3%
- Shell0.3%
- Other0.7%