]> granicus.if.org Git - php/log
php
6 years agoRemove ext/json parser files generated by bison
Peter Kokot [Wed, 24 Oct 2018 15:06:21 +0000 (17:06 +0200)]
Remove ext/json parser files generated by bison

The parser files for ext/json are generated by bison from the *.y file.
Parser files in Zend and sapi/phpdbg already follow such approach of
these files being ignored from tracking in the Git repository and they
are shipped via the release packages later on. This way the end users
still don't need to have bison dependency installed to install PHP.

The genfiles script was refactored to generate the ext/json parser and
lexer files.

6 years agoFix run-tests.php for running phpdbg and certain test sections
Peter Kokot [Fri, 19 Oct 2018 23:05:00 +0000 (01:05 +0200)]
Fix run-tests.php for running phpdbg and certain test sections

Certain sections, such as --EXTENSIONS--, --SKIPIF--, and --CLEAN--
require to be executed using only PHP CLI or PHP CGI SAPIs and cannot be
processed with the phpdbg.

6 years agoNormalize .gitignore
Peter Kokot [Thu, 18 Oct 2018 06:56:38 +0000 (08:56 +0200)]
Normalize .gitignore

Changes:
- Added introductory paragraph to explain the file for newcomers and
  where to ignore local editor configurations as a common practice
  when using Git.
- Patterns organized into several main context sections for a better
  overview of the php-src directory structure and which files get
  generated where.
- Added comments describing reasons for ignoring particular file(s).
- Patterns normalized according to Git ignore blob patterns. Absolute
  paths are different than relative paths and similar fixes.
- Folders patterns have appended ending slash for readability to
  distinguish them from files.

Removed ignore patterns:
- Removed `sapi/phpdbg/build` pattern since it doesn't seem to be
  relevant anymore in the php-src repository.
- The `acconfig.h` pattern removed in favor of the more recent Autoconf
  versions.
- Removed patterns for `.FBCIndex` `.FBCLockFolder` folders. These were
  generated on old Mac OS systems [1] using the Sherlock [2] software
  and can be today ignored using a global gitignore file if needed.
  Newer macOS systems don't generate these anymore.
- Removed `php_version.h` pattern since the `main/php_version.h` file is
  tracked by Git.
- Removed `*.mk` pattern since few *.mk files are tracked by Git and new
  ones aren't generated during build process.
- Removed `**/tests/**/*.txt` pattern. This has been refactored via
  595a395cb911a4ef54cbaf11cd0056d38316c87c and current tests also clean
  the generated `*.txt` files as soon as they are executed. Since there
  are several `*.txt` files in the repository tracked by Git already and
  renaming them would be counter productive so the pattern is now removed.
  In case there will be a need to adjust it, we can rename the generated
  `*.txt` into something else instead (ideally into `*.tmp`) to not
  conflict with already tracked `*.txt` files in tests.
- Removed `ext/*/scan_makefile_in.awk` and `scan_makefile_in.awk` patterns
  since these are already included in the `/ext/*/build/` pattern.
- Removed the `/ext/*/libs.mk` pattern since these auxilary Makefiles
  have been used in previous build system and made obsolete via the commit
  9d9d39a0de3bec962c343051011f5a2ed7d7b242.
- Removed pattern for configuration header `ext/pdo_sqlite/sqlite3.h` since
  it is not generated anymore in the current code.
- Removed `main/streams/build-defs.h` pattern since this file is not
  generated.
- Removed `test.php3` pattern. These don't seem to be present in the current
  PHP source code nor used since PHP 3.
- Removed `/ext/oci8/tests/*.vglog` pattern since the tests don't seem to
  produce these files.
- Removed pattern for Visual Studio's `*.ncb` files. Since the Visual
  Studio 2010 they are no longer used.
- Removed `ext/sqlite3/tests/phpsql*` pattern. It was part of the `ext/sqlite/tests`.
- Removed `shlibtool` pattern since the shlibtool file is not generated
  anymore. It was once part of the libtool usage and customized naming
  used in the previous build system in Makefiles. Such naming was later
  removed and only libtool was used.
- Removed `meta_ccld` pattern since it is no longer relevant via
  a5b55416f4bf48e475b30bb86b120c83efccca53
- Pattern `meta_cc` has been removed via e5176fe60a9ffbe211ee016acdcddb18118e4487.
- Pattern `dynlib.m4` removed since the file is no longer generated via
  9d9d39a0de3bec962c343051011f5a2ed7d7b242
- Pattern `debug.log` removed since the Autoconf Macro PHP_DEBUG_MACRO
  is not called anymore and this file not generated anymore.
- Pattern `results.txt` removed. It was once part of the logging results
  of test files by Netware and previous Windows builds.
- Removed `_libs` pattern in favor of only `.libs`. These directories
  were once generated by Automake and Libtool on systems that didn't
  support the dot folder `.libs` (MS-DOS).
- Removed `*.opt` pattern since it was used by Visual Studio 6. Later
  versions of Visual Studio don't use these anymore.
- Removed `*.plg` pattern. It was build log generated by Visual Studio 6.
- Removed `core` pattern since it was probably related to commit
  fd7153b0f3047e6a96344dc3b4ca2632d5acc898 and is today not used.
- Removed ˙*.˙, ˙diff`, and ˙*.tgz` patterns since they don't seem to be
  generated in the current code on the first glance. In case these will be
  one day required to ignore again, they can be simply added back again.
- Removed Emacs specific interlock files pattern `.#*`. The number of
  editors and IDEs specific files is very big. Emacs editors also produce
  some other files such as `#*#` for autosave feature, which were previously
  not ignored. To fully and properly support all additional patterns these
  could be added to .gitignore files. A much more sustainable and better
  practice is to use a global gitignore file on the local system or the
  `.git/info/exclude` per repository basis for these in particular.

Added patterns:
- Added new pattern for `*.obj` standard object files in the Windows
  section. These are generated by Visual Studio.
- Added `/ext/*/run-tests.php` patterns for extensions.
- Reversed patterns for particular tracked `/win32/build/Makefile`, `config.h`
  files and `.patch` files.
- Added patterns for generated dtrace files `/ext/oci8/oci8_dtrace_gen.h`

Other changes:
- All `conftest*` patterns merged into a single one.
- Pattern `*.mem` made more specific where the memory check files get
  generated by `run-tests.php -m`, i.e. `**/tests/**/*.mem`.
- Fixed `/Zend/zend_dtrace_gen.h.bak` `hbak` typo.

[1] http://www.westwind.com/reference/OS-X/invisibles.html
[2] https://en.wikipedia.org/wiki/Sherlock_(software)

6 years agoMerge branch 'PHP-7.3'
Dmitry Stogov [Wed, 24 Oct 2018 12:46:22 +0000 (15:46 +0300)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fixed reseting of interned strings buffer.

6 years agoFixed reseting of interned strings buffer.
Dmitry Stogov [Wed, 24 Oct 2018 12:45:34 +0000 (15:45 +0300)]
Fixed reseting of interned strings buffer.

6 years agoFixed build in directory different from source
Dmitry Stogov [Wed, 24 Oct 2018 09:45:04 +0000 (12:45 +0300)]
Fixed build in directory different from source

6 years agoMerge branch 'PHP-7.3'
Dmitry Stogov [Wed, 24 Oct 2018 08:50:18 +0000 (11:50 +0300)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Make php_plain_files_wrapper to be writable (workaround for swoole)

6 years agoMake php_plain_files_wrapper to be writable (workaround for swoole)
Dmitry Stogov [Wed, 24 Oct 2018 08:49:44 +0000 (11:49 +0300)]
Make php_plain_files_wrapper to be writable (workaround for swoole)

6 years agoRemove phpdbg parser files generated by bison
Peter Kokot [Sat, 20 Oct 2018 20:06:04 +0000 (22:06 +0200)]
Remove phpdbg parser files generated by bison

The parser files for phpdbg are generated by bison from the *.y file.
Parser files in Zend already follows such approach of these files being
ignored from tracking in the Git repository and they are shipped via
the release packages. This way the end user still don't need to have
bison dependency installed to install PHP.

The genfiles script was refactored to generate the phpdbg parser and lexer
files.

Empty comment in phpdbg parser y template file has been changed to the
YACC compliant /* empty */ instead of custom one.

6 years agoFix conflicts in phpdbg parser
Nikita Popov [Tue, 23 Oct 2018 14:20:20 +0000 (16:20 +0200)]
Fix conflicts in phpdbg parser

6 years agoRefetetch function name on exceptional path to allow better code on fast code path.
Dmitry Stogov [Tue, 23 Oct 2018 14:12:49 +0000 (17:12 +0300)]
Refetetch function name on exceptional path to allow better code on fast code path.

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Tue, 23 Oct 2018 12:57:21 +0000 (14:57 +0200)]
Merge branch 'PHP-7.3'

6 years agofix typo in sysvsem.c
Υоаnn B [Mon, 22 Oct 2018 14:26:58 +0000 (16:26 +0200)]
fix typo in sysvsem.c

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Tue, 23 Oct 2018 12:25:22 +0000 (14:25 +0200)]
Merge branch 'PHP-7.3'

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Nikita Popov [Tue, 23 Oct 2018 12:24:29 +0000 (14:24 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

6 years agoFixed bug #50675
Cameron Porter [Sat, 6 Oct 2018 06:09:22 +0000 (01:09 -0500)]
Fixed bug #50675

SOAP: Stop overwriting the node name when creating an XML node
for an object reference.

6 years agoMerge branch 'PHP-7.3'
Remi Collet [Tue, 23 Oct 2018 10:16:49 +0000 (12:16 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  bump to 7.2.13-dev

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Remi Collet [Tue, 23 Oct 2018 10:16:31 +0000 (12:16 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  bump to 7.2.13-dev
  Updated to version 2018.6 (2018f)
  Updated to version 2018.6 (2018f)

6 years agobump to 7.2.13-dev
Remi Collet [Tue, 23 Oct 2018 10:15:30 +0000 (12:15 +0200)]
bump to 7.2.13-dev

6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Tue, 23 Oct 2018 10:11:15 +0000 (12:11 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  [ci skip] Update NEWS wrt. php-7.3.0RC4 tagging

6 years ago[ci skip] Update NEWS wrt. php-7.3.0RC4 tagging
Christoph M. Becker [Tue, 23 Oct 2018 10:10:09 +0000 (12:10 +0200)]
[ci skip] Update NEWS wrt. php-7.3.0RC4 tagging

6 years agoInlining in the most frequently used code paths
Dmitry Stogov [Tue, 23 Oct 2018 09:46:44 +0000 (12:46 +0300)]
Inlining in the most frequently used code paths

6 years agoFixed test failurs introduced by 9c144e0d8217d1ef7a83c2498214308b21af749f
Dmitry Stogov [Tue, 23 Oct 2018 09:46:12 +0000 (12:46 +0300)]
Fixed test failurs introduced by 9c144e0d8217d1ef7a83c2498214308b21af749f

6 years agoUse persistent strings only for persistent connections
Dmitry Stogov [Tue, 23 Oct 2018 07:43:58 +0000 (10:43 +0300)]
Use persistent strings only for persistent connections

6 years agoFix accessibility checks for dynamic properties
Nikita Popov [Sat, 20 Oct 2018 15:11:17 +0000 (17:11 +0200)]
Fix accessibility checks for dynamic properties

A dynamic property may be shadowed by a private/protected property.
Make sure we check property accessibility for non-indirect
properties as well.

Closes #3626.

6 years agoUpdated to version 2018.6 (2018f)
Derick Rethans [Mon, 22 Oct 2018 11:05:42 +0000 (12:05 +0100)]
Updated to version 2018.6 (2018f)

6 years agoEmpty merge
Derick Rethans [Mon, 22 Oct 2018 11:05:42 +0000 (12:05 +0100)]
Empty merge

6 years agoUpdated to version 2018.6 (2018f)
Derick Rethans [Mon, 22 Oct 2018 11:05:40 +0000 (12:05 +0100)]
Updated to version 2018.6 (2018f)

6 years agoEmpty merge
Derick Rethans [Mon, 22 Oct 2018 11:05:40 +0000 (12:05 +0100)]
Empty merge

6 years agoUpdated to version 2018.6 (2018f)
Derick Rethans [Mon, 22 Oct 2018 11:05:39 +0000 (12:05 +0100)]
Updated to version 2018.6 (2018f)

6 years agoMerge branch 'PHP-7.3'
Jakub Zelenka [Sun, 21 Oct 2018 18:40:53 +0000 (19:40 +0100)]
Merge branch 'PHP-7.3'

6 years agoFix arginfo and clean up fpm_get_status
Jakub Zelenka [Sun, 21 Oct 2018 18:39:47 +0000 (19:39 +0100)]
Fix arginfo and clean up fpm_get_status

6 years agoDefragment two Zend related Makefile fragments together
Peter Kokot [Sun, 21 Oct 2018 07:55:46 +0000 (09:55 +0200)]
Defragment two Zend related Makefile fragments together

The two are more logically connected together in the Zend directory.

6 years ago[ci skip] Remove automake and aclocal in comments
Peter Kokot [Sun, 21 Oct 2018 11:06:58 +0000 (13:06 +0200)]
[ci skip] Remove automake and aclocal in comments

The Automake and aclocal were part of the previous PHP build system
where Automake created Makefile from the Makefile.in templates and
aclocal was used to produce the aclocal.m4. They were removed as
dependencies via 9d9d39a0de3bec962c343051011f5a2ed7d7b242 and
e715fb00f8850990d51cee4e08e84a58f0eb0012.

6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Sun, 21 Oct 2018 10:11:57 +0000 (12:11 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix #75282: xmlrpc_encode_request() crashes

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Sun, 21 Oct 2018 10:10:54 +0000 (12:10 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #75282: xmlrpc_encode_request() crashes

6 years agoFix #75282: xmlrpc_encode_request() crashes
Christoph M. Becker [Sun, 21 Oct 2018 10:06:55 +0000 (12:06 +0200)]
Fix #75282: xmlrpc_encode_request() crashes

Since we allow ext/xmlrpc to be built against a system libxmlrpc(-epi),
we must not `efree` memory which has been allocated via `malloc`.  To
distinguish bundled and system libxmlrpc(-epi) we introduce the macro
`HAVE_XMLRPC_BUNDLED` (analogous to how it is done by ext/gd).  We
deliberately keep the ugly `#ifdef`s, instead of tucking them away in
an `XMLRPC_FREE()` macro, to not forget that it is a bad idea to fork
and bundle a library, but to also allow building against an unpatched
system lib.

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Sat, 20 Oct 2018 21:05:38 +0000 (23:05 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix tests for ICU 63.1

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Sat, 20 Oct 2018 21:04:54 +0000 (23:04 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix tests for ICU 63.1

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Sat, 20 Oct 2018 21:04:15 +0000 (23:04 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix tests for ICU 63.1

6 years agoFix tests for ICU 63.1
Anatol Belski [Sat, 20 Oct 2018 21:02:06 +0000 (23:02 +0200)]
Fix tests for ICU 63.1

The most of change is U+00A0 vs. new U+202F used in some outputs.

6 years agoFix .gitattributes
Peter Kokot [Sat, 6 Oct 2018 06:43:50 +0000 (08:43 +0200)]
Fix .gitattributes

The `crlf` Git attribute has been long deprecated and made obsolete. A
replacement for using `-crlf` is `-text`. That way Git doesn't do
newlines normalization on any system.

Since the phpt files don't need specific line endings in any files
except for some special CR characters in some, this can be also removed
and line normalization can happen on all phpt files. The run-tests.php
file converts the CRLF to LF before running the test.

This patch also sets a `diff` attributes for all *.phpt files. It
helps showing diffs for some phpt files with special characters such
as ASCII control characters which makes Git recognize them as binary and
stops showing commit diffs otherwise

Some additional short info about used Git attributes has been also added
as comments for easier understanding.

Remove -text gitattribute

6 years agoSimplify mb_gpc() code
Khan M Rashedun-Naby [Sat, 13 Oct 2018 10:16:57 +0000 (16:16 +0600)]
Simplify mb_gpc() code

Use a switch (consistent with other places in this file) and also
don't unnecessarily set free_buffer.

6 years agoUse C++ symbols with C++11, take 2
Anatol Belski [Sat, 20 Oct 2018 08:56:02 +0000 (10:56 +0200)]
Use C++ symbols with C++11, take 2

6 years agoRename two *.php files in tests folders
Peter Kokot [Fri, 19 Oct 2018 19:33:58 +0000 (21:33 +0200)]
Rename two *.php files in tests folders

Current run-tests.php script produces the `*.php` files from the
*.phpt. So all *.php files in tests folders are ignored by Git.

To avoid confusion and to for bettere consistency this patch renames
two remaining tests/*/*.php files to *.inc and *.phar as current
practice in *.phpt files.

- The `ext/curl/tests/resonder/get.php` to .inc extension
- The `ext/phar/tests/files/pear2coverage.phar.php` to .phar extension

6 years agoRemove mkdep.awk
Peter Kokot [Fri, 19 Oct 2018 08:00:16 +0000 (10:00 +0200)]
Remove mkdep.awk

The `mkdep.awk` file was part of the previous *nix build system and was
used to create a .deps file with a list of dependencies that could be
processed by Automake further on.

Newer build system was done via 9d9d39a0de3bec962c343051011f5a2ed7d7b242
and outdated files removed via 22815419f8c5da902971d3aa12f2cbfcc3b41aff
so the current file in the PHP source code is not used anymore.

Additionally, the *.slo files were processed by this file. The *.slo
files also used to be generated by older libtool so today, these don't
get generated anymore.

6 years agoMerge branch 'PHP-7.3'
Peter Kokot [Sat, 20 Oct 2018 07:55:33 +0000 (09:55 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  [ci skip] Update NEWS
  [ci skip] Update NEWS
  [ci skip] Update NEWS
  Fix #77041: buildconf should output error messages to stderr

6 years ago[ci skip] Update NEWS
Peter Kokot [Sat, 20 Oct 2018 07:55:07 +0000 (09:55 +0200)]
[ci skip] Update NEWS

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Peter Kokot [Sat, 20 Oct 2018 07:54:00 +0000 (09:54 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  [ci skip] Update NEWS
  [ci skip] Update NEWS
  Fix #77041: buildconf should output error messages to stderr

6 years ago[ci skip] Update NEWS
Peter Kokot [Sat, 20 Oct 2018 07:52:46 +0000 (09:52 +0200)]
[ci skip] Update NEWS

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Peter Kokot [Sat, 20 Oct 2018 07:51:22 +0000 (09:51 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  [ci skip] Update NEWS
  Fix #77041: buildconf should output error messages to stderr

6 years ago[ci skip] Update NEWS
Peter Kokot [Sat, 20 Oct 2018 07:48:50 +0000 (09:48 +0200)]
[ci skip] Update NEWS

6 years agoFix #77041: buildconf should output error messages to stderr
Mizunashi Mana [Sat, 20 Oct 2018 07:42:56 +0000 (09:42 +0200)]
Fix #77041: buildconf should output error messages to stderr

6 years agoMark "top-level" functions.
Dmitry Stogov [Fri, 19 Oct 2018 10:22:29 +0000 (13:22 +0300)]
Mark "top-level" functions.

6 years agoDon't initialize static_member_tables during start-up, when inherit internal classes.
Dmitry Stogov [Fri, 19 Oct 2018 10:21:31 +0000 (13:21 +0300)]
Don't initialize static_member_tables during start-up, when inherit internal classes.

6 years agoMerge branch 'PHP-7.3'
Peter Kokot [Thu, 18 Oct 2018 22:12:48 +0000 (00:12 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  [ci skip] Update NEWS
  [ci skip] Update NEWS
  [ci skip] Update NEWS
  Fix #77035: The phpize and ./configure create redundant .deps file

6 years ago[ci skip] Update NEWS
Peter Kokot [Thu, 18 Oct 2018 22:12:34 +0000 (00:12 +0200)]
[ci skip] Update NEWS

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Peter Kokot [Thu, 18 Oct 2018 22:10:22 +0000 (00:10 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  [ci skip] Update NEWS
  [ci skip] Update NEWS
  Fix #77035: The phpize and ./configure create redundant .deps file

6 years ago[ci skip] Update NEWS
Peter Kokot [Thu, 18 Oct 2018 22:08:57 +0000 (00:08 +0200)]
[ci skip] Update NEWS

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Peter Kokot [Thu, 18 Oct 2018 22:07:42 +0000 (00:07 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  [ci skip] Update NEWS
  Fix #77035: The phpize and ./configure create redundant .deps file

6 years ago[ci skip] Update NEWS
Peter Kokot [Thu, 18 Oct 2018 22:06:11 +0000 (00:06 +0200)]
[ci skip] Update NEWS

6 years agoFix #77035: The phpize and ./configure create redundant .deps file
Peter Kokot [Thu, 18 Oct 2018 22:02:09 +0000 (00:02 +0200)]
Fix #77035: The phpize and ./configure create redundant .deps file

The `.deps` file(s) was once used by Automake and created to write
dependencies to it. The file creation has been removed via the commit
779c11af21cf8a627b8f2f2edef9e9073c76ed94.

The phpize and ./configure script create a redundant .deps file in a
PECL extension directory which might cause confusions why is it used.
Today it is no longer relevant so this redundant artefact can be
removed in the phpize configure script.

6 years agoRemove outdated PEAR artefacts
Peter Kokot [Thu, 18 Oct 2018 11:43:34 +0000 (13:43 +0200)]
Remove outdated PEAR artefacts

The `pear/scripts`, `pear/php-config`, `pear/phpize`, and
`pear/run-tests` used to be part of the PEAR installation. Now, the
pear installation PHAR file is directly downloaded from pear.php.net
instead.

6 years agoMerge branch 'PHP-7.3'
Peter Kokot [Thu, 18 Oct 2018 21:40:00 +0000 (23:40 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix tests/output/bug74815.phpt generating errors.log

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Peter Kokot [Thu, 18 Oct 2018 21:39:39 +0000 (23:39 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix tests/output/bug74815.phpt generating errors.log

6 years agoFix tests/output/bug74815.phpt generating errors.log
Peter Kokot [Thu, 18 Oct 2018 14:30:18 +0000 (16:30 +0200)]
Fix tests/output/bug74815.phpt generating errors.log

Test tests/output/bug74815.phpt was creating an errors.log file
in project root directory and didn't removed it after the test.

6 years agoRevert "Use C++ symbols, when C++11 or upper is compiled"
Anatol Belski [Thu, 18 Oct 2018 21:36:46 +0000 (23:36 +0200)]
Revert "Use C++ symbols, when C++11 or upper is compiled"

This reverts commit 322b97a19a3a06d7d66e6f74b4dc071384badf64.

GCC 5 vs. 8 seems to be a big deal in this regard. The approach needs
further consideration.

6 years agoUse C++ symbols, when C++11 or upper is compiled
Anatol Belski [Thu, 18 Oct 2018 21:16:43 +0000 (23:16 +0200)]
Use C++ symbols, when C++11 or upper is compiled

6 years agoAdded new line
Dmitry Stogov [Thu, 18 Oct 2018 13:40:24 +0000 (16:40 +0300)]
Added new line

6 years agoRemove stamp-h
Peter Kokot [Wed, 17 Oct 2018 04:06:50 +0000 (06:06 +0200)]
Remove stamp-h

The stamp-* files can be used as helpers for Makefiles to not redo
certain targets again. The stamp-h are mentioned in the Autoconf docs [1]
to help generate the config.h file.

Since the usage of stamp-h file was removed in 232afa4816c60a20d3db48c304ac59312d46ec46
this patch cleans few obsolete occurrences.

This patch also removes two occurrences of `main/stamp-h1` and
`main/streams/stamp-h1` rules in the .gitignore file since they are not
generated with the current build systems anymore. The `stamp-h$am_indx` files
were once generated using aclocal and automake.

[1] https://www.gnu.org/software/autoconf/manual/autoconf-2.69/autoconf.html

6 years agoMove all testing docs to qa.php.net
Peter Kokot [Sun, 7 Oct 2018 02:31:59 +0000 (04:31 +0200)]
Move all testing docs to qa.php.net

The qa.php.net currently includes nice collection of information about
tests and how to run them. Instead of maintaining two locations of this
information, this patch removes the README.TESTING from the php-src
repo. Patch for qa.php.net has been sent separately to that repo.

6 years agoFix a typo in UPGRADING.INTERNALS
Tyson Andre [Thu, 18 Oct 2018 01:14:46 +0000 (21:14 -0400)]
Fix a typo in UPGRADING.INTERNALS

6 years agoMerge branch 'PHP-7.3'
Anatol Belski [Wed, 17 Oct 2018 22:45:43 +0000 (00:45 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix test when it's run on another drive

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Anatol Belski [Wed, 17 Oct 2018 22:45:17 +0000 (00:45 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix test when it's run on another drive

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Anatol Belski [Wed, 17 Oct 2018 22:44:43 +0000 (00:44 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix test when it's run on another drive

6 years agoFix test when it's run on another drive
Anatol Belski [Wed, 17 Oct 2018 22:43:24 +0000 (00:43 +0200)]
Fix test when it's run on another drive

6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Wed, 17 Oct 2018 21:45:34 +0000 (23:45 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  [ci skip] Update UPGRADING wrt. tidyp support

6 years ago[ci skip] Update UPGRADING wrt. tidyp support
Christoph M. Becker [Wed, 17 Oct 2018 21:41:37 +0000 (23:41 +0200)]
[ci skip] Update UPGRADING wrt. tidyp support

This is especially noteworthy since `tidy_get_relase()` returns
'unknown' when built against libtidyp, which might break some code
which relies on `tidy_get_release()` to return a date formatted as
`yyyy/mm/dd`.

6 years agoFixed incorrect reallocation
Dmitry Stogov [Wed, 17 Oct 2018 14:44:03 +0000 (17:44 +0300)]
Fixed incorrect reallocation

6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Wed, 17 Oct 2018 14:38:17 +0000 (16:38 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Fix #77027: tidy::getOptDoc() not available on Windows

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Wed, 17 Oct 2018 14:36:25 +0000 (16:36 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Fix #77027: tidy::getOptDoc() not available on Windows

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Christoph M. Becker [Wed, 17 Oct 2018 14:29:38 +0000 (16:29 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Fix #77027: tidy::getOptDoc() not available on Windows

6 years agoFix #77027: tidy::getOptDoc() not available on Windows
Christoph M. Becker [Wed, 17 Oct 2018 14:27:07 +0000 (16:27 +0200)]
Fix #77027: tidy::getOptDoc() not available on Windows

We define the `HAVE_TIDYOPTGETDOC` macro unconditionally, since the
Windows PHP SDK ships libtidy 2009/04/06 or newer for a long time.

We do not add a regression test, since 021.phpt already tests
`tidy_get_opt_doc`, but has previously been skipped due to
unavailability of the function.

6 years agoRun CI tests under opcache.protect_memory=1
Nikita Popov [Wed, 17 Oct 2018 14:10:22 +0000 (16:10 +0200)]
Run CI tests under opcache.protect_memory=1

6 years agoFixed comment
Dmitry Stogov [Wed, 17 Oct 2018 13:56:32 +0000 (16:56 +0300)]
Fixed comment

6 years agoMicro optimizations
Dmitry Stogov [Wed, 17 Oct 2018 13:55:52 +0000 (16:55 +0300)]
Micro optimizations

6 years agoMark "top-level" classes
Dmitry Stogov [Wed, 17 Oct 2018 13:12:46 +0000 (16:12 +0300)]
Mark "top-level" classes

6 years agoImmutable clases and op_arrays.
Dmitry Stogov [Wed, 17 Oct 2018 12:52:50 +0000 (15:52 +0300)]
Immutable clases and op_arrays.

Squashed commit of the following:

commit cd0c36c3f943849e5b97a8dbe2dd029fbeab3df9
Merge: 4740dabb84 ad6738e886
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 17 14:43:38 2018 +0300

    Merge branch 'master' into immutable

    * master:
      Remove the "auto" encoding
      Fixed bug #77025
      Add vtbls for EUC-TW encoding

commit 4740dabb843c6d4f7f866b4a2456073c9eaf4c77
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 17 14:12:28 2018 +0300

    Reverted back ce->iterator_funcs_ptr. Initialize ce->iterator_funcs_ptr fields in immutable classes.

commit ad7a78b253be970db70c2251e66f9297d8e7f829
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 17 11:46:30 2018 +0300

    Added comment

commit 0276ea51875bab37be01a4dc5e5a047c5698c571
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 17 11:42:43 2018 +0300

    Added type cast

commit c63fc5d5f19c58498108d1698055b2b442227eb3
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 17 11:36:51 2018 +0300

    Moved static class members initialization into the proper place.

commit b945548e9306b1826c881918858b5e5aa3eb3002
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 17 11:21:03 2018 +0300

    Removed redundand assertion

commit d5a41088401814c829847db212488f8aae39bcd2
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 17 11:19:13 2018 +0300

    Removed duplicate code

commit 8dadca8864e66de70a24bdf1181bcf7dd8fb27d7
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 17 11:05:43 2018 +0300

    Hide offset encoding magic in ZEND_MAP_PTR_IS_OFFSET(), ZEND_MAP_PTR_OFFSET2PTR() and ZEND_MAP_PTR_PTR2OFFSET() macros.

commit 9ef07c88bd76801e2d4fbfeab3ebfd6e6a67ac5f
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 17 10:48:29 2018 +0300

    typo

commit a06f0f3d3aba53e766046221ee44fb9720389ecc
Merge: 94099586ec 3412345ffe
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Wed Oct 17 10:47:07 2018 +0300

    Merge branch 'master' into immutable

    * master:
      Remove unused variable makefile_am_files
      Classify object handlers are required/optional
      Add support for getting SKIP_TAGSTART and SKIP_WHITE options
      Remove some obsolete config_vars.mk occurrences
      Remove bsd_converted from .gitignore
      Remove configuration parser and scanners ignores
      Remove obsolete buildconf.stamp from .gitignore
      [ci skip] Add magicdata.patch exception to .gitignore
      Remove outdated ext/spl/examples items from .gitignore
      Remove unused test.inc in ext/iconv/tests

commit 94099586ec599117581ca01c15b1f6c5f749e23a
Author: Dmitry Stogov <dmitry@zend.com>
Date:   Mon Oct 15 23:34:01 2018 +0300

    Immutable clases and op_arrays

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Wed, 17 Oct 2018 10:51:17 +0000 (12:51 +0200)]
Merge branch 'PHP-7.3'

6 years agoRemove the "auto" encoding
Nikita Popov [Wed, 17 Oct 2018 10:47:45 +0000 (12:47 +0200)]
Remove the "auto" encoding

"auto" is only meaningful in functions which accept an encoding
*list* and support encoding detection. These functions have
explicit checks for "auto". It cannot be used as a standalone
encoding in any meaningful capacity, so I'm dropping it entirely.

6 years agoMerge branch 'PHP-7.3'
Nikita Popov [Wed, 17 Oct 2018 10:40:39 +0000 (12:40 +0200)]
Merge branch 'PHP-7.3'

6 years agoFixed bug #77025
Nikita Popov [Wed, 17 Oct 2018 10:37:52 +0000 (12:37 +0200)]
Fixed bug #77025

Implements 8bit conversions equivalently to iso-8859-1 conversions.
This seems quite dubious to me, but seems to match the previous
behavior.

It might make more sense to map the characters into a private area
instead, so that the 8bit encoding is treated as binary data with
no case conversions (including no case conversions in the ascii
range).

6 years agoAdd vtbls for EUC-TW encoding
Nikita Popov [Wed, 17 Oct 2018 10:10:16 +0000 (12:10 +0200)]
Add vtbls for EUC-TW encoding

6 years agoRemove unused variable makefile_am_files
Peter Kokot [Tue, 16 Oct 2018 20:33:04 +0000 (22:33 +0200)]
Remove unused variable makefile_am_files

The `makefile_am_files` was part of the previous build system where
automake was used to build Makefiles. Since 9d9d39a0de3bec962c343051011f5a2ed7d7b242
this is not used anymore and can be removed.

6 years agoClassify object handlers are required/optional
Nikita Popov [Sat, 13 Oct 2018 13:30:27 +0000 (15:30 +0200)]
Classify object handlers are required/optional

6 years agoMerge branch 'PHP-7.3'
Christoph M. Becker [Tue, 16 Oct 2018 16:51:51 +0000 (18:51 +0200)]
Merge branch 'PHP-7.3'

* PHP-7.3:
  Add support for getting SKIP_TAGSTART and SKIP_WHITE options

6 years agoMerge branch 'PHP-7.2' into PHP-7.3
Christoph M. Becker [Tue, 16 Oct 2018 16:50:33 +0000 (18:50 +0200)]
Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
  Add support for getting SKIP_TAGSTART and SKIP_WHITE options

6 years agoMerge branch 'PHP-7.1' into PHP-7.2
Christoph M. Becker [Tue, 16 Oct 2018 16:48:36 +0000 (18:48 +0200)]
Merge branch 'PHP-7.1' into PHP-7.2

* PHP-7.1:
  Add support for getting SKIP_TAGSTART and SKIP_WHITE options

6 years agoAdd support for getting SKIP_TAGSTART and SKIP_WHITE options
Christoph M. Becker [Tue, 16 Oct 2018 16:47:31 +0000 (18:47 +0200)]
Add support for getting SKIP_TAGSTART and SKIP_WHITE options

When `XML_OPTION_SKIP_TAGSTART` and `XML_OPTION_SKIP_WHITE` had been
introduced[1], it had been overlooked to also support them for
`xml_parser_get_option()`.  We catch up on that.

[1] <http://git.php.net/?p=php-src.git;a=commit;h=b57dc275950b228f2399990471c4f22b7d154c6c>

6 years agoRemove some obsolete config_vars.mk occurrences
Peter Kokot [Tue, 16 Oct 2018 16:05:06 +0000 (18:05 +0200)]
Remove some obsolete config_vars.mk occurrences

The `config_vars.mk` file was a part of previous *nix build system and
has been removed via 9d9d39a0de3bec962c343051011f5a2ed7d7b242.