Gabriel Caruso
ded3d984c6
Use EXPECT instead of EXPECTF when possible
...
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00
Gabriel Caruso
b8bb4d77ca
Remove empty sections in tests
2018-02-14 11:10:59 +01:00
Stanislav Malyshev
3616b6b935
Cleanup some tests - remove unnecessary sections
...
Also unify credits - all are under --CREDITS-- now.
2018-02-04 02:21:40 -08:00
Gabriel Caruso
2238403892
Trailing whitespaces on ext/*
...
Signed-off-by: Gabriel Caruso <carusogabriel34@gmail.com >
2018-01-04 02:38:32 -02:00
Gabriel Caruso
6400264856
Trailing whitespaces
...
Signed-off-by: Gabriel Caruso <carusogabriel34@gmail.com >
2018-01-03 14:38:00 +01:00
Xinchen Hui
a6519d0514
year++
2018-01-02 12:57:58 +08:00
Remi Collet
50e8ee128f
Merge branch 'PHP-7.2'
...
* PHP-7.2:
NEWS
display headers (buildtime) and library (runtime) versions in phpinfo (libzip >= 1.3.1)
2017-12-19 14:48:21 +01:00
Remi Collet
c21ec44b21
display headers (buildtime) and library (runtime) versions in phpinfo (libzip >= 1.3.1)
2017-12-19 14:46:32 +01:00
Dmitry Stogov
0f06df310c
Turn "php_stream_wrapper"s into constants
...
Keep non-constant "php_stream_wrapper"s in API functions and callbacks for compatibility.
2017-12-14 22:46:22 +03:00
Dmitry Stogov
83e495e0fd
Move constants into read-only data segment
2017-12-14 22:14:36 +03:00
Peter Kokot
2783b1c823
Remove outdated TODO files
...
Some extensions included TODO files that has been present for several
years in the repository tree without changes. This included:
- ext/phar
- ext/intl
- ext/zip
- ext/soap
- ext/pdo
- ext/spl
- ext/dom
- ext/gmp
- ext/xmlwriter
- ext/xmlreader
ext/phar feature request has been created instead, and for others it
would be better to use wiki and RFC workflow instead based on current
feature requests and further PHP development requirements.
[ci skip]
2017-12-09 19:18:58 +01:00
Dmitry Stogov
6a9d2b2190
Cleanup type conversion
2017-12-07 19:24:55 +03:00
Nikita Popov
b72b1a4e4d
Add zend_object_alloc() API
...
Using ecalloc() to create objects is expensive, because the
dynamic-size memset() is unreasonably slow. Make sure we only
zero the main object structure with known size, as the properties
are intialized separately anyway.
Technically we do not need to zero the embedded zend_object
structure either, but as long as the memset argument is constant,
a couple more bytes don't really matter.
2017-11-25 17:12:37 +01:00
Remi Collet
f5dbe081ef
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Better fix bug #75540 Segfault with libzip 1.3.1 - only 1.3.1 is affected - fix use after free
2017-11-20 09:43:06 +01:00
Remi Collet
307e15592b
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Better fix bug #75540 Segfault with libzip 1.3.1 - only 1.3.1 is affected - fix use after free
2017-11-20 09:42:58 +01:00
Remi Collet
d773a92f3c
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Better fix bug #75540 Segfault with libzip 1.3.1 - only 1.3.1 is affected - fix use after free
2017-11-20 09:42:47 +01:00
Remi Collet
702ef27364
Better fix bug #75540 Segfault with libzip 1.3.1
...
- only 1.3.1 is affected
- fix use after free
2017-11-20 09:42:20 +01:00
Remi Collet
15a0de465f
Merge branch 'PHP-7.2'
...
* PHP-7.2:
NEWS
NEWS
NEWS
fix bug #75540 Segfault with libzip 1.3.1
2017-11-20 08:51:55 +01:00
Remi Collet
fa427a86cc
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
NEWS
NEWS
fix bug #75540 Segfault with libzip 1.3.1
2017-11-20 08:51:29 +01:00
Remi Collet
0c54397879
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
NEWS
fix bug #75540 Segfault with libzip 1.3.1
2017-11-20 08:50:51 +01:00
Remi Collet
de47d4792f
fix bug #75540 Segfault with libzip 1.3.1
2017-11-20 08:49:46 +01:00
Nikita Popov
26f8fc833b
Enable and fix printf() format warnings
...
Add _unchecked() variants of zend_spprintf and zend_strpprintf for
cases where we specifically want to disable these checks, such as
use of %H.
2017-11-16 21:15:36 +01:00
Anatol Belski
20d930d8f3
Fix remaining signedness warnings
2017-11-14 17:07:09 +01:00
Anatol Belski
a5bc5aed71
Patch core for PCRE2 support
...
RFC https://wiki.php.net/rfc/pcre2-migration
2017-11-13 19:37:38 +01:00
Dmitry Stogov
e2589b7d02
Use interned strings for "magic" property of internal classes. (not copyied into SHM)
2017-11-01 19:04:54 +03:00
Anatol Belski
bf43ab53ae
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Apply upstream patch for CVE-2017-14107
Backport and apply upstream patch for CVE-2017-14107
2017-10-27 14:18:55 +02:00
Anatol Belski
40f76c9f0c
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Apply upstream patch for CVE-2017-14107
Backport and apply upstream patch for CVE-2017-14107
2017-10-27 14:18:27 +02:00
Anatol Belski
211dacd7b5
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Apply upstream patch for CVE-2017-14107
Backport and apply upstream patch for CVE-2017-14107
2017-10-27 14:17:57 +02:00
Anatol Belski
10dc1950f7
Apply upstream patch for CVE-2017-14107
2017-10-27 13:20:15 +02:00
Remi Collet
8857161bf2
Use system libzip by default
...
Use --without-libzip in travis, as libzip version available there
is too old (0.10, while 0.11 is required, 1.3.0 is best)
The real plan is to really drop bundled libzip... delayed.
Notice: only system library have full features:
* encryption
* bzip support
2017-09-11 09:23:01 +02:00
Remi Collet
9ecafd9788
Revert "drop support for bundled libzip (linux)"
...
This reverts commit 7104203328 .
2017-09-07 15:17:28 +02:00
Anatol Belski
757789ef4b
remove bundled libzip config for .w32
2017-09-07 15:16:12 +02:00
Remi Collet
7104203328
drop support for bundled libzip (linux)
2017-09-07 14:28:05 +02:00
Remi Collet
1830e3c43c
Merge branch 'PHP-7.2'
...
* PHP-7.2:
improve warn (bzip2 requires libzip >= 1.3.0)
2017-09-04 14:47:14 +02:00
Remi Collet
5bbd459609
improve warn (bzip2 requires libzip >= 1.3.0)
2017-09-04 14:47:03 +02:00
Anatol Belski
619b493698
Merge branch 'PHP-7.2'
...
* PHP-7.2:
libzip 1.3.0 supports also bz2 compression
2017-09-04 13:28:34 +02:00
Anatol Belski
b971087354
libzip 1.3.0 supports also bz2 compression
2017-09-04 13:27:53 +02:00
Anatol Belski
fcb6e0afe1
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fixed bug #75143 new method setEncryptionName() seems not to exist in ZipArchive
2017-09-01 10:53:50 +02:00
Anatol Belski
a6456f0a6c
Fixed bug #75143 new method setEncryptionName() seems not to exist in ZipArchive
...
update NEWS
2017-09-01 10:53:09 +02:00
Anatol Belski
49d9b3013f
Move cwd_state and path related routines to size_t
...
Having `int` there is no real profit in the size or speed, while unsigned
improves security and overall integration. ZPP supplied strings can
be then accepted directly and structs can be still handled with smaller
unsigned types for size reasons, which is safe. Yet some related places
are to go.
basic move tsrm_realpath_r to size_t
fix conditions and sync with affected places
touch ocurrences of php_sys_readlink usage
follow up on phar path handling
remove duplicated check
move zend_resolve_path and related pieces to size_t
touch yet resolve path related places
remove cast
missing pieces
missing piece
yet cleanups for php_sys_readlink for ssize_t
fix wrong return
2017-07-27 20:11:21 +02:00
Remi Collet
2458dce3e5
Fix segfault in php_stream_context_get_option call
2017-07-11 11:41:47 +02:00
Remi Collet
569d164c4a
ZipArchive implements countable, added ZipArchive::count() method
2017-07-10 11:31:55 +02:00
Tom Van Looy
04fb3f28ff
Remove superfluous semicolons
2017-06-26 00:23:25 +02:00
Remi Collet
75cda24b82
cleanup
...
ssite_t is used in lot of places, without need for this.
If really needed, should be in global location, not in an extension
2017-06-09 09:22:05 +02:00
Remi Collet
b54e0dc321
clean
2017-05-31 09:57:34 +02:00
Remi Collet
77cca632da
Use of bundled libzip is deprecated
2017-05-31 09:56:01 +02:00
Remi Collet
67136fe77b
zip ext is 1.14.0
2017-04-05 07:39:39 +02:00
Anatol Belski
3c750d91ee
external libzip neither requires zlib.h nor lib
2017-04-04 16:33:20 +02:00
Remi Collet
908029bbc0
Fixed Bug #73803 Reflection of ZipArchive does not show public properties
2017-03-21 11:15:45 +01:00
Anatol Belski
42821dd1c9
basic support for external libzip
2017-03-19 23:11:19 +01:00