178 Commits

Author SHA1 Message Date
Remi Collet
3e049a6b3a fix tests 2019-07-23 11:07:20 +02:00
Remi Collet
7baf882c97 set version to 1.0.0-dev instead of PHP_VERSION and display it in phpinfo 2019-07-12 15:04:15 +02:00
Remi Collet
18844b8f06 add LICENSE file 2019-07-12 14:51:22 +02:00
Peter Kokot
9ad9f0c276 Use *.data for tests data files 2019-05-17 19:04:43 +02:00
Peter Kokot
fa79e8e80d Normalize comments in *nix build system m4 files
Normalization include:
- Use dnl for everything that can be ommitted when configure is built in
  favor of the shell comment character # which is visible in the output.
- Line length normalized to 80 columns
- Dots for most of the one line sentences
- Macro definitions include similar pattern header comments now
2019-05-12 18:43:03 +02:00
Fabien Villepinte
e8ffa7b19d Replace dirname(__FILE__) by __DIR__ in tests 2019-03-15 22:55:30 +01:00
Dmitry Stogov
f339c88995 Switch to use ZTS cache 2019-03-12 14:15:47 +03:00
Peter Kokot
dccd2fb070 Add AS_HELP_STRING to *nix build configure options
The Autoconf's default AS_HELP_STRING macro can properly format help
strings [1] so watching out if columns are aligned manually is not
anymore.

[1] https://www.gnu.org/software/autoconf/manual/autoconf.html#Pretty-Help-Strings
2019-03-07 20:36:59 +01:00
Peter Kokot
a02f242271 Remove local variables
This patch removes the so called local variables defined per
file basis for certain editors to properly show tab width, and
similar settings. These are mainly used by Vim and Emacs editors
yet with recent changes the once working definitions don't work
anymore in Vim without custom plugins or additional configuration.
Neither are these settings synced across the PHP code base.

A simpler and better approach is EditorConfig and fixing code
using some code style fixing tools in the future instead.

This patch also removes the so called modelines for Vim. Modelines
allow Vim editor specifically to set some editor configuration such as
syntax highlighting, indentation style and tab width to be set in the
first line or the last 5 lines per file basis. Since the php test
files have syntax highlighting already set in most editors properly and
EditorConfig takes care of the indentation settings, this patch removes
these as well for the Vim 6.0 and newer versions.

With the removal of local variables for certain editors such as
Emacs and Vim, the footer is also probably not needed anymore when
creating extensions using ext_skel.php script.

Additionally, Vim modelines for setting php syntax and some editor
settings has been removed from some *.phpt files.  All these are
mostly not relevant for phpt files neither work properly in the
middle of the file.
2019-02-03 21:03:00 +01:00
Zeev Suraski
a6185d5a3a Remove yearly range from copyright notice 2019-01-30 11:03:12 +02:00
Peter Kokot
699231f5c6 Sync leading and final newlines in *.phpt sections
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines in all
*.phpt sections.

According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-15 04:33:09 +02:00
Peter Kokot
6fc08bbdd7 Merge branch 'PHP-7.3'
* PHP-7.3:
  Sync leading and final newlines in *.phpt sections
  Sync leading and final newlines in *.phpt sections
  Sync leading and final newlines in *.phpt sections
2018-10-15 04:32:49 +02:00
Peter Kokot
711799c7d2 Sync leading and final newlines in *.phpt sections
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines in all
*.phpt sections.

According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-15 04:32:30 +02:00
Peter Kokot
dde5c13457 Merge branch 'PHP-7.2' into PHP-7.3
* PHP-7.2:
  Sync leading and final newlines in *.phpt sections
  Sync leading and final newlines in *.phpt sections
2018-10-15 04:31:53 +02:00
Peter Kokot
8baf3fe46f Sync leading and final newlines in *.phpt sections
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines in all
*.phpt sections.

According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-15 04:31:31 +02:00
Peter Kokot
a26835a8ac Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
  Sync leading and final newlines in *.phpt sections
2018-10-15 04:30:40 +02:00
Peter Kokot
f9c24e6326 Sync leading and final newlines in *.phpt sections
This patch adds missing newlines, trims multiple redundant final
newlines into a single one, and trims redundant leading newlines in all
*.phpt sections.

According to POSIX, a line is a sequence of zero or more non-' <newline>'
characters plus a terminating '<newline>' character. [1] Files should
normally have at least one final newline character.

C89 [2] and later standards [3] mention a final newline:
"A source file that is not empty shall end in a new-line character,
which shall not be immediately preceded by a backslash character."

Although it is not mandatory for all files to have a final newline
fixed, a more consistent and homogeneous approach brings less of commit
differences issues and a better development experience in certain text
editors and IDEs.

[1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
[2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2
[3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
2018-10-15 04:29:24 +02:00
Peter Kokot
1d52b651df Replace obsolete AC_TRY_FOO with AC_FOO_IFELSE
Autoconf 2.50 released in 2001 made several macros obsolete including
the AC_TRY_RUN, AC_TRY_COMPILE and AC_TRY_LINK:
http://git.savannah.gnu.org/cgit/autoconf.git/tree/ChangeLog.2

These macros should be replaced with the current AC_FOO_IFELSE instead:
- AC_TRY_RUN with AC_RUN_IFELSE and AC_LANG_SOURCE
- AC_TRY_LINK with AC_LINK_IFELSE and AC_LANG_PROGRAM
- AC_TRY_COMPILE with AC_COMPILE_IFELSE and AC_LANG_PROGRAM

PHP 5.4 to 7.1 require Autoconf 2.59+ version, PHP 7.2 and above require
2.64+ version, and the PHP 7.2 phpize script requires 2.59+ version which
are all greater than above mentioned 2.50 version therefore systems
should be well supported by now.

This patch was created with the help of autoupdate script:
autoupdate <file>

Reference docs:
- https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Obsolete-Macros.html
- https://www.gnu.org/software/autoconf/manual/autoconf-2.59/autoconf.pdf
2018-07-30 02:36:38 +02:00
Peter Kokot
03d1652221 Remove unused Git attributes ident
The $Id$ keywords were used in Subversion where they can be substituted
with filename, last revision number change, last changed date, and last
user who changed it.

In Git this functionality is different and can be done with Git attribute
ident. These need to be defined manually for each file in the
.gitattributes file and are afterwards replaced with 40-character
hexadecimal blob object name which is based only on the particular file
contents.

This patch simplifies handling of $Id$ keywords by removing them since
they are not used anymore.
2018-07-25 00:53:25 +02:00
Peter Kokot
9e8df6aff8 Remove revision for recode from phpinfo 2018-06-02 13:43:49 +02:00
Xinchen Hui
be42fd3e0b year++ 2018-01-02 12:57:58 +08:00
Xinchen Hui
722fca710c Merge branch 'PHP-7.2'
* PHP-7.2:
  year++
  year++
2018-01-02 12:55:53 +08:00
Xinchen Hui
76782609c8 year++ 2018-01-02 12:55:14 +08:00
Xinchen Hui
305fa88953 Merge branch 'PHP-7.1' into PHP-7.2
* PHP-7.1:
  year++
2018-01-02 12:54:07 +08:00
Xinchen Hui
0853430bcc year++ 2018-01-02 12:53:31 +08:00
Nikita Popov
3d4f248463 Merge branch 'PHP-7.1' 2017-01-05 00:36:53 +01:00
Nikita Popov
05ba15b880 Merge branch 'PHP-7.0' into PHP-7.1 2017-01-05 00:28:21 +01:00
Sammy Kaye Powers
d8348330c1 Update copyright headers to 2017 2017-01-04 11:23:42 -06:00
Sammy Kaye Powers
138d61ca9b Update copyright headers to 2017 2017-01-04 11:14:55 -06:00
Sammy Kaye Powers
5fa4624fb1 Update copyright headers to 2017 2017-01-02 09:30:12 -06:00
Anatol Belski
d5cac5885f Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6:
  missed semicolon
  fix C89 conformity
  Fix bug #72293 - Heap overflow in mysqlnd related to BIT fields
  Fix test
  Fix bug #73065: Out-Of-Bounds Read in php_wddx_push_element of wddx.c
  Fix bug #73035 (Out of bound when verify signature of tar phar in phar_parse_tarfile)
  Fix bug #73052 - Memory Corruption in During Deserialized-object Destruction
  Add check in fgetcsv in case sizeof(unit) != sizeof(size_t)
  Fix bug #73029 - Missing type check when unserializing SplArray
  Fix bug #72860: wddx_deserialize use-after-free
  Also fix overflow in wordwrap
  Fix bug #73007: add locale length check
  Add more checks for int overflow
  Fix bug #72928 - Out of bound when verify signature of zip phar in phar_parse_zipfile
  Fix various int size overflows.
2016-09-13 10:54:54 +02:00
Stanislav Malyshev
ca6426246e Add more checks for int overflow 2016-09-12 21:04:23 -07:00
Lior Kaplan
4cf952046a Merge branch 'PHP-5.6' into PHP-7.0
* PHP-5.6:
  Happy new year (Update copyright to 2016)
2016-01-01 19:48:25 +02:00
Lior Kaplan
23a3588b31 Happy new year (Update copyright to 2016) 2016-01-01 19:21:47 +02:00
Daniel Persson
60d48a93ed Added two tests to check the main functionallity of recode extension 2015-09-02 00:11:45 +02:00
Anatol Belski
76d1ae43c7 cleanup mod version macros and mod defs, round x 2015-03-23 21:30:22 +01:00
Rasmus Lerdorf
5abbfab700 int -> size_t 2015-01-20 22:50:17 -08:00
Xinchen Hui
2dc8c05c7b bump year 2015-01-15 23:27:30 +08:00
Xinchen Hui
0e09f0b70a Merge branch 'PHP-5.6' 2015-01-15 23:27:18 +08:00
Xinchen Hui
ea70bb4d28 bump year 2015-01-15 23:26:37 +08:00
Xinchen Hui
c7dcebd276 Merge branch 'PHP-5.5' into PHP-5.6 2015-01-15 23:26:24 +08:00
Xinchen Hui
4c5341cc24 Bump year 2015-01-15 23:26:03 +08:00
Stanislav Malyshev
9cfee9f5cf trailing whitespace removal 2015-01-10 15:07:38 -08:00
Anatol Belski
0234ead35a first shot remove TSRMLS_* things 2014-12-13 23:06:14 +01:00
Johannes Schlüter
b54dc42a2b s/PHP 5/PHP 7/ 2014-09-19 18:33:14 +02:00
Anatol Belski
1ca37afac0 first show to make 's' work with size_t 2014-08-27 20:49:31 +02:00
Anatol Belski
013f479b60 Merge remote-tracking branch 'origin/str_size_and_int64'
* origin/str_size_and_int64: (614 commits)
  fix macro
  fix macro
  fix zpp
  fix zpp
  fix macros
  some more after merge fixes
  fixed macro names
  fixed signatures
  fix datatypes
  fix zpp
  fixed prototype
  fix prototype
  fix signature
  fix macros
  fix macros
  reorder the struct members which reduces its size by at least 112 bytes
  arg count is zend_size_t now, fix type
  fix declarations
  fix array types for pass by ref
  fix macro
  ...
2014-08-15 21:34:21 +02:00
Xinchen Hui
91e7ed3e89 Refactor MySQLi (incompleted, only compilable now) 2014-05-11 14:53:18 +08:00
krakjoe
063ea5cea1 recode update for phpng 2014-05-08 11:57:35 +01:00
Anatol Belski
2eba7e4207 Merge remote-tracking branch 'origin/master' into str_size_and_int64
Conflicts:
	Zend/zend.c
	Zend/zend_ini_scanner.c
2014-01-04 02:17:11 +01:00