Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ jobs:
--with-pdo-pgsql \
--with-pdo-sqlite \
--enable-intl \
--without-pear \
--enable-gd \
--with-jpeg \
--with-webp \
Expand Down
1 change: 0 additions & 1 deletion .github/actions/configure-alpine/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ runs:
${{ inputs.skipSlow == 'false' && '--with-pdo-pgsql' || '' }} \
${{ inputs.skipSlow == 'false' && '--with-pdo-sqlite' || '' }} \
--enable-intl \
--without-pear \
--enable-gd \
--with-jpeg \
--with-webp \
Expand Down
1 change: 0 additions & 1 deletion .github/actions/configure-gentoo/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ runs:
${{ inputs.skipSlow == 'false' && '--with-pdo-pgsql' || '' }} \
${{ inputs.skipSlow == 'false' && '--with-pdo-sqlite' || '' }} \
--enable-intl \
--without-pear \
--enable-gd \
--with-jpeg \
--with-webp \
Expand Down
1 change: 0 additions & 1 deletion .github/actions/configure-macos/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ runs:
--with-pgsql="$BREW_OPT"/libpq \
--with-pdo-pgsql="$BREW_OPT"/libpq \
--with-pdo-sqlite \
--without-pear \
--enable-gd \
--with-jpeg \
--with-webp \
Expand Down
1 change: 0 additions & 1 deletion .github/actions/configure-x32/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ runs:
--with-pdo-pgsql \
--with-pdo-sqlite \
--with-pdo-firebird \
--without-pear \
--enable-gd \
--with-jpeg \
--with-webp \
Expand Down
1 change: 0 additions & 1 deletion .github/actions/configure-x64/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ runs:
${{ inputs.skipSlow == 'false' && '--with-pdo-pgsql' || '' }} \
${{ inputs.skipSlow == 'false' && '--with-pdo-sqlite' || '' }} \
--enable-intl \
--without-pear \
--enable-gd \
--with-jpeg \
--with-webp \
Expand Down
1 change: 0 additions & 1 deletion .github/actions/freebsd/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ runs:
`#--with-pdo-sqlite` \
--without-sqlite3 \
--without-pdo-sqlite \
--without-pear \
--with-bz2 \
--with-avif \
--with-jpeg \
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ config.h.in
# ------------------------------------------------------------------------------
/ext/phar/phar.phar
/ext/phar/phar.php
/pear/install-pear-nozlib.phar
/sapi/cgi/php-cgi
/sapi/fpm/php-fpm
/sapi/phpdbg/phpdbg
Expand Down
5 changes: 3 additions & 2 deletions CODING_STANDARDS.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,9 @@ The file labelled `EXPERIMENTAL` should include the following information:
* Any authoring information (known bugs, future directions of the module).
* Ongoing status notes which may not be appropriate for Git comments.

In general, new features should go to PECL or experimental branches until there
are specific reasons for directly adding them to the core distribution.
In general, new features should go to PIE extension or experimental branches
until there are specific reasons for directly adding them to the core
distribution.

## Aliases & legacy documentation

Expand Down
31 changes: 6 additions & 25 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ websites is a never-ending one. With every release or release candidate comes a
wave of work, which takes a lot of organization and co-ordination.

You don't need any special access to download, build, debug and begin submitting
PHP or PECL code, tests or documentation. Once you've followed this guide and
PHP or extension code, tests or documentation. Once you've followed this guide and
had several contributions accepted, commit privileges are often quickly granted.

## Index
Expand All @@ -20,7 +20,7 @@ had several contributions accepted, commit privileges are often quickly granted.
* [Getting help](#getting-help)
* [PHP source code directory structure](#php-source-code-directory-structure)
* [PHP internals](#php-internals)
* [PECL extensions](#pecl-extensions)
* [Extensions](#extensions)
* [Checklist for submitting contribution](#checklist-for-submitting-contribution)
* [What happens after submitting contribution?](#what-happens-after-submitting-contribution)
* [What happens when your contribution is applied?](#what-happens-when-your-contribution-is-applied)
Expand Down Expand Up @@ -149,11 +149,6 @@ about what you're working on, you can contact us via the
[documentation mailing list](mailto:phpdoc@lists.php.net) for documentation
issues.

Although not a formal channel, you can also find a number of core developers on
the #php.pecl channel on [EFnet](http://www.efnet.org/). Similarly, many
documentation writers can be found on #php.doc. Windows development IRC channel
is available at #winphp-dev on FreeNode.

## PHP source code directory structure

PHP source code also includes several files generated during development and
Expand Down Expand Up @@ -237,7 +232,6 @@ locations.
├─ streams/ # Streams layer subsystem
├─ php_version.h # Generated by release managers using `configure`
└─ ...
├─ pear/ # PEAR installation
└─ sapi/ # PHP SAPI modules
└─ cli/
├─ mime_type_map.h # Generated by `sapi/cli/generate_mime_type_map.php`
Expand All @@ -258,27 +252,14 @@ For information on PHP internal C functions see
Various external resources can be found on the web. A standard printed reference
is the book "Extending and Embedding PHP" by Sara Golemon.

## PECL extensions
## Extensions

If you are fixing broken functionality in a [PECL](https://pecl.php.net)
extension then create a bug or identify an existing bug at
[bugs.php.net](https://bugs.php.net). A bug can be used to track the change
If you are fixing broken functionality in a PHP extension then create a bug or
identify an existing bug at GitHub. A bug can be used to track the change
progress and prevent your changes getting lost in the PHP mail archives. Some
PECL extensions have their own bug tracker locations and different contributing
extensions have their own bug tracker locations and different contributing
procedures.

If your change is large then create a
[Request for Comments (RFC)](https://wiki.php.net/rfc), discuss it with the
extension maintainer, and discuss it on the development mailing list
pecl-dev@lists.php.net depending on the extension. PECL mailing list
subscription is explained on the
[PECL support page](https://pecl.php.net/support.php).

Update any open bugs and add a link to the source of your change. Send the patch
or pointer to the bug to pecl-dev@lists.php.net. Also CC the extension
maintainer. Explain what has been changed by your patch. Test scripts should be
included.

## Checklist for submitting contribution

- Read [Coding standards](/CODING_STANDARDS.md) before you start working.
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,7 @@ permissions.
## PHP extensions

Extensions provide additional functionality on top of PHP. PHP consists of many
essential bundled extensions. Additional extensions can be found in the PHP
Extension Community Library - [PECL](https://pecl.php.net).
essential bundled extensions. Additional extensions can be found in Packagist

## Contributing

Expand Down
42 changes: 1 addition & 41 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1142,46 +1142,6 @@ esac
EXTRA_LIBS="$EXTRA_LIBS $DLIBS $LIBS"
unset LIBS

dnl PEAR
dnl ----------------------------------------------------------------------------

PHP_HELP_SEPARATOR([PEAR:])
PHP_CONFIGURE_PART([Configuring PEAR])

dnl If CLI is disabled disable PEAR.
AS_VAR_IF([PHP_CLI], [no], [with_pear=no])

PHP_ARG_WITH([pear],
[whether to install PEAR],
[AS_HELP_STRING([[--with-pear[=DIR]]],
[Install PEAR in DIR [PREFIX/lib/php]])],
[no],
[yes])

AS_VAR_IF([PHP_PEAR], [no],, [
AC_MSG_WARN([The --with-pear option is deprecated])

dnl PEAR dependencies.
AS_VAR_IF([PHP_XML], [no], [AC_MSG_ERROR(m4_text_wrap([
PEAR requires XML to be enabled. Add '--enable-xml' to the configure line,
or disable PEAR (--without-pear).
]))])

install_pear=install-pear

AS_VAR_IF([PHP_PEAR], [yes],
[AS_CASE([$PHP_LAYOUT],
[GNU], [PEAR_INSTALLDIR=$datadir/pear],
[PEAR_INSTALLDIR=$libdir/php])],
[PEAR_INSTALLDIR=$PHP_PEAR])

PHP_SUBST([PEAR_INSTALLDIR])
PHP_ADD_BUILD_DIR([pear])
PHP_ADD_MAKEFILE_FRAGMENT([$abs_srcdir/pear/Makefile.frag],
[$abs_srcdir/pear],
[pear])
])

dnl Configuring Zend and TSRM.
dnl ----------------------------------------------------------------------------

Expand Down Expand Up @@ -1622,7 +1582,7 @@ else
fi;

all_targets="\$(OVERALL_TARGET) \$(PHP_MODULES) \$(PHP_ZEND_EX) \$(PHP_BINARIES) $pharcmd"
install_targets="$install_sapi $install_modules $install_binaries install-build install-headers install-programs $install_pear $pharcmd_install"
install_targets="$install_sapi $install_modules $install_binaries install-build install-headers install-programs $pharcmd_install"

PHP_SUBST([all_targets])
PHP_SUBST([install_targets])
Expand Down
16 changes: 0 additions & 16 deletions docs-old/self-contained-extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,19 +155,3 @@ an existing module called `foo`.
ZEND_GET_MODULE(foo)
#endif
```

## PECL site conformity

If you plan to release an extension to the PECL website, there are several
points to be regarded.

1. Add `LICENSE` or `COPYING` to the `package.xml`

2. The following should be defined in one of the extension header files

```c
#define PHP_FOO_VERSION "1.2.3"
```

This macro has to be used within your foo_module_entry to indicate the
extension version.
3 changes: 0 additions & 3 deletions docs/release-process.md
Original file line number Diff line number Diff line change
Expand Up @@ -610,9 +610,6 @@ slightly different steps. We'll call attention where the steps differ.
./scripts/dev/makedist php-X.Y.Z
```

> 💬 **Hint** \
> Check if the PEAR files are updated (Phar).

> 💡 **Tip** \
> On some systems the behavior of GNU tar can default to produce POSIX
> compliant archives with PAX headers. As not every application is
Expand Down
2 changes: 1 addition & 1 deletion ext/standard/credits.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ PHPAPI ZEND_COLD void php_print_credits(int flag) /* {{{ */

php_info_print_table_start();
php_info_print_table_colspan_header(2, "Websites and Infrastructure team");
/* www., wiki., windows., master., and others, I guess pecl. too? */
/* www., wiki., windows., master., and others */
CREDIT_LINE("PHP Websites Team", "Rasmus Lerdorf, Hannes Magnusson, Philip Olson, Lukas Kahwe Smith, Pierre-Alain Joye, Kalle Sommer Nielsen, Peter Cowburn, Adam Harvey, Ferenc Kovacs, Levi Morrison");
CREDIT_LINE("Event Maintainers", "Damien Seguy, Daniel P. Brown");
/* Mirroring */
Expand Down
34 changes: 0 additions & 34 deletions pear/Makefile.frag

This file was deleted.

74 changes: 0 additions & 74 deletions pear/fetch.php

This file was deleted.

12 changes: 0 additions & 12 deletions pear/install-pear.txt

This file was deleted.

4 changes: 2 additions & 2 deletions php.ini-development
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ default_charset = "UTF-8"
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"
;
; PHP's default setting for include_path is ".;/path/to/php/pear"
; PHP's default setting for include_path is "."
; https://php.net/include-path

; The root of the PHP pages, used only if nonempty.
Expand Down Expand Up @@ -910,7 +910,7 @@ default_socket_timeout = 60
; Notes for Windows environments :
;
; - Many DLL files are located in the ext/
; extension folders as well as the separate PECL DLL download.
; extension folders as well as the separate DLL download.
; Be sure to appropriately set the extension_dir directive.
;
;extension=bz2
Expand Down
Loading
Loading