Jakub Zelenka
d404b5e255
Add ssl/tls streams options for min and max proto version
2018-07-01 18:46:52 +01:00
Peter Kokot
32489322a1
Remove outdated comments about PHP 3
2018-06-27 11:53:40 +02:00
Dmitry Stogov
5eb1f92f31
Use zend_string_release_ex() instread of zend_string_release() in places, where we sure about string persistence.
2018-05-28 16:27:12 +03:00
Dmitry Stogov
524f5245c5
Avoid useless checks, using zend_string_efree(), in cases where the string is known to be a temporary allocated zend_string.
2018-05-08 17:30:15 +03:00
Gabriel Caruso
1314f0fb3a
Use int instead of long in protos
2018-02-23 11:06:20 +01:00
alexanderholman
a01de10b07
Fixed bug #74719
...
Allow stream context arguments for fopen, rename, unlink, mkdir
and rmdir to be null.
2018-01-17 12:46:59 +01:00
Xinchen Hui
a6519d0514
year++
2018-01-02 12:57:58 +08:00
Xinchen Hui
7a7ec01a49
year++
2018-01-02 12:55:14 +08:00
Anatol Belski
f3f6cd24e9
Modernize realpath and integrate quick variant into virtual_file_ex
...
The slower I/O as a traditional bottleneck on Windows which is
the target of this patch. The recursive path resolution, while being
an allround solution, is expensive when it comes to the common case.
Files with proper ACLs set can be resolved in one go by usage of specific
API. Those are available since Vista, so actually can be called old. Those
simpler api is used for the cases where no CWD_EXPAND is requested. For
the cases where ACLs are improper, the existing solution based on
FindFirstFile still does good job also partially providing quirks. Cases
involing reparse tags and other non local filesystems are also partially
server by new APIs.
The approach uses both APIs - the quick one for the common case still
integrating realpath cache, and the existing one as a fallback. The tests
show the I/O load drop on the realpath resolution part due to less
system calls for the sub part resolution of paths. In most case it is
justified, as the sub parts were otherwise cached or unused as well. The
realpath() implementation in ioutil is also closer to the POSIX.
2017-12-15 13:23:34 +01:00
Dmitry Stogov
64c5e38adf
Use cheaper functions
2017-12-01 01:32:51 +03:00
Dmitry Stogov
ccc12b82da
Avoid unnecessary reference-counting on strings.
2017-11-16 17:09:32 +03:00
Xinchen Hui
70ee6688de
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Avoid overflow
2017-11-13 11:19:46 +08:00
Xinchen Hui
2d88b2a1ea
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Avoid overflow
2017-11-13 11:19:42 +08:00
Xinchen Hui
c718fd16a1
Avoid overflow
2017-11-13 11:18:56 +08:00
Xinchen Hui
46a21c5173
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Update NEWS
Fixed bug #75511 (fread not free unused buffer)
2017-11-13 11:14:10 +08:00
Xinchen Hui
bc38c06752
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #75511 (fread not free unused buffer)
2017-11-13 11:13:42 +08:00
Xinchen Hui
1c1df0d937
Fixed bug #75511 (fread not free unused buffer)
2017-11-13 11:13:27 +08:00
Kalle Sommer Nielsen
d3bc8beb4f
Removed support for BeOS, development for BeOS was supported 17 years ago.
...
This patch however does not drop support for the BeOS compatible variant, Haiku, see Github PR #2697 which is currently a WiP
I intentionally left out some fragments for BeOS in the build system for that seems to be bundles
2017-08-29 22:03:56 +02:00
Dmitry Stogov
9c2a1f52a5
Avoid useless dereferences and separations during paramter passing.
2017-06-19 12:55:59 +03:00
Sammy Kaye Powers
dac6c639bb
Update copyright headers to 2017
2017-01-04 11:23:42 -06:00
Sammy Kaye Powers
9e29f841ce
Update copyright headers to 2017
2017-01-02 09:30:12 -06:00
Sara Golemon
2ea5b64d9a
Use new param API in standard/file
2016-12-30 18:07:35 -08:00
Kalle Sommer Nielsen
2104bea5d7
Remove Netware support
...
If this does not break the Unix system somehow, I'll be amazed. This should get most of it out, apologies for any errors this may cause on non-Windows ends which I cannot test atm.
2016-11-12 11:20:01 +01:00
Andrea Faulds
fc5497cb92
Merge branch 'PHP-7.0' into PHP-7.1
2016-09-11 22:46:20 +01:00
Andrea Faulds
d690014bf3
Remove zpp fallback code (always use Fast ZPP)
...
Squashed commit of the following:
commit 3e27fbb3d2
Author: Andrea Faulds <ajf@ajf.me>
Date: Sun Sep 11 19:14:37 2016 +0100
Keep dummy FAST_ZPP macro for compatibility
commit 8a7cfd00de
Author: Andrea Faulds <ajf@ajf.me>
Date: Mon Sep 5 22:36:03 2016 +0100
Remove FAST_ZPP macro and plain zpp fallback code
2016-09-11 22:44:46 +01:00
Christoph M. Becker
8f32d609c5
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-31 14:53:53 +02:00
Christoph M. Becker
314a9f8553
Fix #71882 amendment: Negative ftruncate() on php://memory exhausts memory
...
To avoid BC breaks, we do not raise a warning for now.
2016-08-31 14:51:37 +02:00
Christoph M. Becker
38a7c0e0f7
Merge branch 'PHP-7.0' into PHP-7.1
2016-08-30 02:24:43 +02:00
Christoph M. Becker
65f0c163f9
Merge branch 'PHP-5.6' into PHP-7.0
2016-08-30 02:13:48 +02:00
Christoph M. Becker
207dab585a
Fix #71882 : Negative ftruncate() on php://memory exhausts memory
...
We must not pass negative sizes to a size_t parameter.
2016-08-30 02:05:45 +02:00
Christoph M. Becker
9c8b2c8689
Merge branch 'PHP-7.0' into PHP-7.1
2016-07-21 18:53:42 +02:00
Christoph M. Becker
4472f9e822
Merge branch 'PHP-5.6' into PHP-7.0
2016-07-21 18:39:27 +02:00
Christoph M. Becker
f2c2a4be9e
Fix #72330 : CSV fields incorrectly split if escape char followed by UTF chars
...
We must not forget to properly reset the state for multibyte characters
following an escape character.
2016-07-21 18:37:24 +02:00
Dmitry Stogov
adc95c5114
Fixed compilation warnings
2016-06-23 12:47:06 +03:00
Dmitry Stogov
1616038698
Added ZEND_ATTRIBUTE_FORMAT to some middind functions.
...
"%p" replaced by ZEND_LONG_FMT to avoid compilation warnings.
Fixed most incorrect use cases of format specifiers.
2016-06-21 16:00:37 +03:00
Stanislav Malyshev
544940c48a
Merge branch 'PHP-5.5' into PHP-5.6.22
...
* PHP-5.5:
Fix memory leak in imagescale()
Update NEWS
Better fix for bug #72135
Fixed bug #72227 : imagescale out-of-bounds read
Fix bug #72241 : get_icu_value_internal out-of-bounds read
Fix bug #72135 - don't create strings with lengths outside int range
Add check for string overflow to all string add operations
Fix bug #72114 - int/size_t confusion in fread
Updated NEWS
Fixed bug #71331 - Uninitialized pointer in phar_make_dirstream()
Conflicts:
Zend/zend_operators.c
ext/phar/dirstream.c
ext/phar/tests/bug71331.phpt
2016-05-24 16:56:36 -07:00
Stanislav Malyshev
abd159cce4
Fix bug #72114 - int/size_t confusion in fread
2016-05-09 21:55:29 -07:00
Anatol Belski
9db8cefa3c
fix constants availability
...
The issue here is that winsock2 defines IP protocols as an enum,
so the preprocessor won't catch it. However all the items related
are available as of winxp (see ws2def.h), so it's safe just to have.
2016-04-29 11:37:19 +02:00
Joe Watkins
05b44c20e1
Merge branch 'PHP-7.0'
...
* PHP-7.0:
fix #71609 : Segmentation fault on ZTS with gethostbyname
2016-03-31 12:39:45 +01:00
Joe Watkins
233115ea23
fix #71609 : Segmentation fault on ZTS with gethostbyname
2016-03-31 12:39:01 +01:00
Francois Laupretre
e30060da15
file_get_contents(): Add support for negative offset
2016-03-09 14:41:38 +01:00
Xinchen Hui
695e8b79af
Fixed bug #71287 (Error message contains hexadecimal instead of decimal number)
2016-01-06 00:01:44 +08:00
Xinchen Hui
919562d53b
Fixed bug #71264 (file_put_contents() returns unexpected value when filesystem runs full)
2016-01-03 14:21:23 +08:00
Lior Kaplan
ed35de784f
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
49493a2dcf
Happy new year (Update copyright to 2016)
2016-01-01 19:21:47 +02:00
Dmitry Stogov
ad4fa8f758
Fixed incorrect usage of HASH_OF() macro. Replaced HASH_OF() with more appropriate Z_ARRVAL_P() or Z_OBJPROP_P().
2015-09-24 22:39:59 +03:00
Anatol Belski
807c29ed14
fix warning
2015-09-24 16:33:54 +02:00
Bob Weinand
509712c7d9
Add FAST_ZPP to various important stream funcs
2015-09-20 04:27:51 +02:00
Xinchen Hui
fc58025627
This can not be true
2015-07-02 11:04:24 +08:00
Dmitry Stogov
b4db4114c5
Cleanup (avoid reallocation)
2015-07-01 22:17:55 +03:00