Skip to content

Commit

Permalink
Imported Upstream version 5.6.0~alpha2+dfsg
Browse files Browse the repository at this point in the history
  • Loading branch information
kaplanlior committed Feb 14, 2014
1 parent 575107a commit d67160a
Show file tree
Hide file tree
Showing 249 changed files with 44,117 additions and 24,266 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Expand Up @@ -206,6 +206,8 @@ ext/pdo_sqlite/sqlite3.h
ext/pdo_sqlite/tests/*.db
ext/pdo_sqlite/tests/*.tmp
ext/phar/phar.phar
ext/phar/phar.1
ext/phar/phar.phar.1
ext/pspell/tests/*.tmp
ext/reflection/xml
ext/reflection/html
Expand Down Expand Up @@ -237,12 +239,14 @@ sapi/apache/libphp5.module
sapi/apache2handler/libphp5.module
sapi/apache_hooks/libphp5.module
sapi/cgi/php-cgi
sapi/cgi/php-cgi.1
sapi/cli/php.1
sapi/fpm/php-fpm
sapi/fpm/php-fpm.1
sapi/fpm/init.d.php-fpm
sapi/fpm/php-fpm.conf
sapi/fpm/fpm/php-cgi
sapi/phpdbg/phpdbg
scripts/php-config
scripts/phpize
scripts/man1/*.1
Expand Down
26 changes: 23 additions & 3 deletions CODING_STANDARDS
Expand Up @@ -82,7 +82,7 @@ Exceptions:
library may need to control or free the memory, or when the memory in
question needs to survive between multiple requests.

Naming Conventions
User Functions/Methods Naming Conventions
------------------

1. Function names for user-level functions should be enclosed with in
Expand Down Expand Up @@ -163,6 +163,26 @@ Naming Conventions
'foobar'
'foo_bar'

Internal Function Naming Convensions
----------------------

1. Functions that are part of the external API should be named
'php_modulename_function()' to avoid symbol collision. They should be in
lowercase, with words underscore delimited. Exposed API must be defined
in 'php_modulename.h'.

PHPAPI char *php_session_create_id(PS_CREATE_SID_ARGS);

Unexposed module function should be static and should not be defined in
'php_modulename.h'.

static int php_session_destroy(TSRMLS_D)

2. Main module source file must be named 'modulename.c'.

3. Header file that is used by other sources must be named 'php_modulename.h'.


Syntax and indentation
----------------------

Expand All @@ -181,9 +201,9 @@ Syntax and indentation
of PHP or one of its standard modules, please maintain the K&R
style. This applies to just about everything, starting with
indentation and comment styles and up to function declaration
syntax. Also see Indentstyle_.
syntax. Also see Indentstyle.

.. _Indentstyle: http://www.catb.org/~esr/jargon/html/I/indent-style.html
Indentstyle: http://www.catb.org/~esr/jargon/html/I/indent-style.html

3. Be generous with whitespace and braces. Keep one empty line between the
variable declaration section and the statements in a block, as well as
Expand Down
1 change: 1 addition & 0 deletions Makefile.global
Expand Up @@ -115,6 +115,7 @@ clean:
find . -name \*.la -o -name \*.a | xargs rm -f
find . -name \*.so | xargs rm -f
find . -name .libs -a -type d|xargs rm -rf
find . -name \*.1 | xargs rm -f
rm -f libphp$(PHP_MAJOR_VERSION).la $(SAPI_CLI_PATH) $(SAPI_CGI_PATH) $(SAPI_MILTER_PATH) $(SAPI_LITESPEED_PATH) $(SAPI_FPM_PATH) $(OVERALL_TARGET) modules/* libs/*

distclean: clean
Expand Down
24 changes: 22 additions & 2 deletions NEWS
@@ -1,7 +1,21 @@
PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
23 Jan 2014, PHP 5.6.0 Alpha 1
?? ??? 2014, PHP 5.6.0 Alpha 3

13 Feb 2014, PHP 5.6.0 Alpha 2
- Core:
. Added T_POW (**) operator
(RFC: https://wiki.php.net/rfc/pow-operator). (Tjerk Meesters)

- mysqli
. Added new function mysqli_get_links_stats() as well as new INI variable
mysqli.rollback_on_cached_plink of type bool (Andrey)

- PCRE:
. Upgraded to PCRE 8.34. (Anatol)


23 Jan 2014, PHP 5.6.0 Alpha 1
- CLI server:
. Added some MIME types to the CLI web server. (Chris Jones)

Expand Down Expand Up @@ -65,7 +79,13 @@ PHP NEWS
. Added certificate fingerprint support. (Tjerk Meesters)
. Added explicit TLSv1.1 and TLSv1.2 stream transports. (Daniel Lowrey)
. Fixed bug #65729 (CN_match gives false positive). (Tjerk Meesters)

. Peer name verification matches SAN DNS names for certs using
the Subject Alternative Name x509 extension. (Daniel Lowrey)
. Fixed segfault when built against OpenSSL>=1.0.1 (Daniel Lowrey)
. Peer certificates now verified by default in client socket operations
(RFC: https://wiki.php.net/rfc/tls-peer-verification). (Daniel Lowrey)
. Added SPKAC support. (Jason Gerfen)

- PDO_pgsql:
. Fixed Bug #42614 (PDO_pgsql: add pg_get_notify support). (Matteo)
. Fixed Bug #63657 (pgsqlCopyFromFile, pgsqlCopyToArray use Postgres < 7.3
Expand Down
30 changes: 24 additions & 6 deletions README.EXT_SKEL
Expand Up @@ -45,12 +45,29 @@ HOW TO USE IT

--proto=filename.

SOURCE AND HEADER FILE NAME

./ext_skel generates 'module_name.c' and 'php_module_name.h' as main source
and header files. Keep these names.

Module functions (User functions) must be named

module_name_function()

When you need to expose module functions to other modules, expose functions
strictly needed by others. Exposed internal function must be named

php_module_name_function()

See also CODING_STANDARDS.


FORMAT OF FUNCTION DEFINITIONS FILE

All the definitions must be on one line. In it's simplest form, it's just
the function name, e.g.

my_function
module_name_function

but then you'll be left with an almost empty function body without any
argument handling.
Expand All @@ -72,8 +89,9 @@ FORMAT OF FUNCTION DEFINITIONS FILE

An example:

my_function(int arg1, int arg2 [, int arg3 [, int arg4]]) this is my 1st
module_name_function(int arg1, int arg2 [, int arg3 [, int arg4]])

Arguments arg1 and arg2 are required.
Arguments arg3 and arg4 are optional.

If possible, the function definition should also contain it's return type
Expand Down Expand Up @@ -133,15 +151,15 @@ EXAMPLE

The following _one_ line

bool my_drawtext(resource image, string text, resource font, int x, int y [, int color])
bool module_name_drawtext(resource image, string text, resource font, int x, int y [, int color])

will create this function definition for you (note that there are a few
question marks to be replaced by you, and you must of course add your own
value definitions too):

/* {{{ proto bool my_drawtext(resource image, string text, resource font, int x, int y [, int color])
/* {{{ proto bool module_name_drawtext(resource image, string text, resource font, int x, int y [, int color])
*/
PHP_FUNCTION(my_drawtext)
PHP_FUNCTION(module_name_drawtext)
{
char *text = NULL;
int argc = ZEND_NUM_ARGS();
Expand All @@ -164,7 +182,7 @@ PHP_FUNCTION(my_drawtext)
ZEND_FETCH_RESOURCE(???, ???, font, font_id, "???", ???_rsrc_id);
}

php_error(E_WARNING, "my_drawtext: not yet implemented");
php_error(E_WARNING, "module_name_drawtext: not yet implemented");
}
/* }}} */

4 changes: 2 additions & 2 deletions README.RELEASE_PROCESS
Expand Up @@ -101,10 +101,10 @@ pointing out "the location of the release" and "the possible release date of
either the next RC, or the final release".

2. Send an email (see example here http://news.php.net/php.pear.qa/5201) **To**
``php-qa@lists.php.net`` and ``primary-qa-tests@lists.php.net``.
``php-qa@lists.php.net`` and ``primary-qa-tester@lists.php.net``.
This email is to notify the selected projects about a new release so that they
can make sure their projects keep working. Make sure that you have been setup
as a moderator for ``primary-qa-tests@lists.php.net`` by having someone (Wez,
as a moderator for ``primary-qa-tester@lists.php.net`` by having someone (Hannes, Dan,
Derick) run the following commands for you:

``ssh lists.php.net``
Expand Down
11 changes: 11 additions & 0 deletions README.SUBMITTING_PATCH
Expand Up @@ -50,6 +50,17 @@ Please make the mail subject prefix "[PATCH]". If attaching a patch,
ensure it has a file extension of ".txt". This is because only MIME
attachments of type 'text/*' are accepted.

The preferred way to propose PHP patch is sending pull request from
github.

https://github.com/php/php-src

Fork the official PHP repository and send a pull request. A
notification will be sent to the pull request mailing list. Sending a
note to PHP Internals list (internals@lists.php.net) may help getting
more feedback and quicker turnaround. You can also add pull requests
to bug reports at http://bugs.php.net/.


PHP Documentation Patches
-------------------------
Expand Down
2 changes: 1 addition & 1 deletion README.TESTING
Expand Up @@ -2,7 +2,7 @@
------------------
Failed tests usually indicate a problem with your local system setup
and not within PHP itself (at least for official PHP release versions).
You may decide to automaticaly submit a test summary to our QA workflow
You may decide to automatically submit a test summary to our QA workflow
at the end of a test run.
Please do *not* submit a failed test as a bug or ask for help on why
it failed on your system without providing substantial backup information
Expand Down
4 changes: 0 additions & 4 deletions TSRM/TSRM.dsp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 21 additions & 1 deletion UPGRADING
Expand Up @@ -28,11 +28,22 @@ PHP X.Y UPGRADE NOTES
containing non-lowercase values inside JSON arrays or objects has never been
accepted.

- openssl:
To prevent Man-in-the-Middle attacks against encrypted transfers client
streams now verify peer certificates by default. Previous versions
required users to manually enable peer verification. As a result of this
change, existing code using ssl:// or tls:// stream wrappers (e.g.
file_get_contents(), fsockopen(), stream_socket_client()) may no longer
connect successfully without manually disabling peer verification via the
stream context's "verify_peer" setting. Encrypted transfers delegate to
operating system certificate stores by default, so many/most users *should*
be unaffected by this transparent security enhancement.

========================================
2. New Features
========================================

- Added constant scalar expressions syntax
- Added constant scalar expressions syntax.
(https://wiki.php.net/rfc/const_scalar_exprs)

- Added dedicated syntax for variadic functions.
Expand All @@ -41,6 +52,9 @@ PHP X.Y UPGRADE NOTES
- Added support for argument unpacking to complement the variadic syntax.
(https://wiki.php.net/rfc/argument_unpacking)

- Added T_POW (**) operator.
(https://wiki.php.net/rfc/pow-operator)

- The php://input stream is now re-usable and can be used concurrently with
enable_post_data_reading=0.

Expand All @@ -51,6 +65,8 @@ PHP X.Y UPGRADE NOTES

- Added openssl crypto method stream context option.

- Added openssl peer verification support for SAN x509 extension

- Added use function and use const.
(https://wiki.php.net/rfc/use_function)

Expand Down Expand Up @@ -94,6 +110,10 @@ PHP X.Y UPGRADE NOTES

- Openssl:
Added string openssl_x509_fingerprint($x509, $type, $binary).
Added string openssl_spki_new($private_key, $challenge, $algorithm)
Added bool openssl_spki_verify($spkac)
Added string openssl_spki_export($spkac)
Added string openssl_spki_export_challenge($spkac)

- LDAP:
Added ldap_escape($value, $ignore = "", $flags = 0).
Expand Down
8 changes: 4 additions & 4 deletions Zend/Zend.dsp

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d67160a

Please sign in to comment.