Files
archived-php-langspec/spec/00-specification-for-php.md
David Findley f9d4f7480a Namespace definition grammar fix (#254)
* Fix the `namespace-definition` production

The `namespace-definition` production was changed to use `name` instead
of `namespace-name` in c1ac531479 and a6520fb35b. This
appears to be a mistake, since `name` can not produce a `\`.

The spec was originally using `namespace-name` for
`namespace-definition`. This commit restores that grammar production.

* Regenerate using `tools/pre-commit`

It appears that the pre-commit scripts were not used to properly
regenerate the spec recently.

This caused some small styling changes (using html entities for some
chars).

It also caused a bigger change due to `print` being moved out of the
intrinsics section in 63d72a6df5. It's not completely clear
if this was intentional or not, since `print` is a language intrinsic.
2022-02-05 20:57:00 +01:00

17 KiB

Specification for PHP

Facebook has dedicated all copyright to this specification to the public domain worldwide under the CC0 Public Domain Dedication located at http://creativecommons.org/publicdomain/zero/1.0/. This specification is distributed without any warranty.

(Initially written in 2014 by Facebook, Inc., July 2014)

Table of Contents