Gabriel Caruso
8034fdc9d9
Use int instead of integer in proto
2018-02-02 22:32:15 +01:00
Xinchen Hui
a6519d0514
year++
2018-01-02 12:57:58 +08:00
Dmitry Stogov
d9f5ea691f
zend_fcall_info_cache.initialized is removed (zend_fcall_info_cache is initialized if zend_fcall_info_cache.function_handler is set).
2017-12-27 15:15:03 +03:00
Xinchen Hui
4dfbfe93aa
Use cheaper API
2017-12-18 11:55:14 +08:00
Markus Staab
5142a06506
Use known string "file" in stream layer
2017-12-16 13:25:05 +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
Anatol Belski
98416a37f3
Put missing signature into header
2017-12-09 00:26:18 +01:00
Dmitry Stogov
6a9d2b2190
Cleanup type conversion
2017-12-07 19:24:55 +03:00
Dmitry Stogov
af7705bec2
Avoid strings duplication (zend_hash* and printf may work with non zero terminated strings)
2017-11-30 23:29:21 +03: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
Sara Golemon
fd463cfbad
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Bugfix#75515 php://streams behaving greedily
2017-11-13 13:35:46 -05:00
Sara Golemon
0a45e8f096
Bugfix#75515 php://streams behaving greedily
...
5060fc23 attempted to fix #68948 by treating all non-uri streams
as non-blocking, however php://fd/* streams (which includes stdin)
may block if the other end of the IPC isn't finished.
This represents a partial revert to the pre RC6 state,
but includes an escape hatch for php://memory and php://temp
streams which are local to the current process.
This also restores stream_set_chunk_size test to previous state.
2017-11-13 09:40:34 -05:00
Sara Golemon
e36244e776
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fixes #68948 related to a BC break introduced by #68532 fix.
2017-11-06 17:41:09 -05:00
Simon JAILLET
5060fc2349
Fixes #68948 related to a BC break introduced by #68532 fix.
2017-11-06 17:34:42 -05:00
Dmitry Stogov
468fd78bff
Fixed memory leaks
2017-11-02 03:04:27 +03:00
Dmitry Stogov
67d5f39a47
Persistent resources are "thread-local".
...
Register persistent resources through new functions zend_register_persistent_resource()/zend_register_persistent_resource_ex().
2017-11-01 15:19:31 +03:00
Dmitry Stogov
8897c80956
Use interned strings for stream transports
2017-11-01 02:39:09 +03:00
Dmitry Stogov
bbfd0df9d3
Use interned strings for persistent stream wrappers and filters
2017-10-31 18:51:35 +03:00
Dmitry Stogov
8203a0668d
Merge branch 'master' into rc_debug
...
* master:
Use per-request heap instead of system one
Extend zend_register_class_alias_ex() with additional argument to allow creating persistent or per-request aliases
Makrk persistent resources and references with GC_PERSISTENT flag
2017-10-27 14:59:09 +03:00
Dmitry Stogov
cf67a421e9
Use per-request heap instead of system one
2017-10-27 14:45:54 +03:00
Dmitry Stogov
49ea143bbd
Encapsulate reference-counting primitives.
...
Prohibit direct update of GC_REFCOUNT(), GC_SET_REFCOUNT(), GC_ADDREF() and GC_DELREF() shoukf be instead.
Added mactros to validate reference-counting (disabled for now).
These macros are going to be used to eliminate race-condintions during reference-counting on data shared between threads.
2017-10-27 01:28:58 +03: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
Adam Saponara
db96b7c245
Fix #75031 : Support append mode in php://temp streams
...
This patch introduces a distinction between write mode and append
mode in `php://temp` and `php://memory` streams, achieving parity
with C stdio.
2017-08-04 12:43:49 +01: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
Sara Golemon
bb02f99e71
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Do not allow using traits/interfaces/abstract classes as stream wrappers
Add oci8_failover.c to config.w32, follow up for commit 1b797f7a
2017-07-19 14:01:18 -04:00
Sara Golemon
a9e8239f45
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Do not allow using traits/interfaces/abstract classes as stream wrappers
2017-07-19 14:01:00 -04:00
Sara Golemon
c9fd093127
Do not allow using traits/interfaces/abstract classes as stream wrappers
...
Fixes https://bugs.php.net/bug.php?id=74951
2017-07-19 14:00:00 -04:00
Dmitry Stogov
6fcc7134f1
Keep resource of enclosing stream, because it may be referenced from other place(s).
...
This fixes valgrind warnings on Zend/tests/type_declarations/scalar_basic.phpt
2017-07-19 17:16:56 +03:00
Anatol Belski
2283b6ff53
eliminate casts
2017-07-10 15:48:54 +02:00
Anatol Belski
84079f4a1e
cleanup casts
2017-07-09 15:31:05 +02:00
Anatol Belski
aaf09f7bdf
eliminate casts
2017-07-09 15:11:02 +02:00
Tom Van Looy
04fb3f28ff
Remove superfluous semicolons
2017-06-26 00:23:25 +02:00
Dmitry Stogov
f25ecdacf8
shutdown_executor() refactoring (reuse opcache fast request shutdown code)
2017-06-22 01:45:28 +03:00
Niklas Keller
bec91e1117
Use any TLS crypto method by default, don't use SSL
2017-06-10 17:31:24 -04:00
Anatol Belski
2111de0dd7
Merge branch 'PHP-7.1'
...
* PHP-7.1:
Revert "Detect invalid port in xp_socket parse ip address"
Revert "Follow up patch regarding bug #74216 , see bug #74429 "
2017-04-27 11:13:00 +02:00
Anatol Belski
392bcba58d
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Revert "Detect invalid port in xp_socket parse ip address"
Revert "Follow up patch regarding bug #74216 , see bug #74429 "
2017-04-27 11:11:41 +02:00
Anatol Belski
09ef61e3ca
Revert "Detect invalid port in xp_socket parse ip address"
...
This reverts commit bab0b99f37 .
2017-04-27 02:49:12 +02:00
Anatol Belski
bf3e2dce7b
Revert "Follow up patch regarding bug #74216 , see bug #74429 "
...
This reverts commit cda7dcf4ca .
2017-04-27 02:49:01 +02:00
Anatol Belski
bbf0a9d8a7
Merge branch 'PHP-7.1'
...
* PHP-7.1:
Follow up patch regarding bug #74216 , see bug #74429
2017-04-25 13:00:10 +02:00
Anatol Belski
faf19a7756
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Follow up patch regarding bug #74216 , see bug #74429
2017-04-25 12:59:22 +02:00
Sara Golemon
cda7dcf4ca
Follow up patch regarding bug #74216 , see bug #74429
...
While the case in bug #74429 is not documented and is only worky due to
an implementation bug, the strength seems to breach some real world
apps. Given this patch doesn't impact the initial security fix for
bug #74216 , it is reasonable to let the apps keep working. As mentioned
in the ticket, this behavior is a subject to change in future versions
and should not be abused.
2017-04-25 12:52:48 +02:00
Anatol Belski
bbe2a13395
Merge branch 'PHP-7.1'
...
* PHP-7.1:
#74337 pointer returned by php_stream_fopen_tmpfile not validated in memory.c
2017-04-22 21:59:07 +02:00
Anatol Belski
91cb9a6ad1
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
#74337 pointer returned by php_stream_fopen_tmpfile not validated in memory.c
2017-04-22 21:58:10 +02:00
Anton Serbulov
793a8bd886
#74337 pointer returned by php_stream_fopen_tmpfile not validated in memory.c
2017-04-22 21:56:37 +02:00
Xinchen Hui
696bd37e67
Merge branch 'PHP-7.1'
...
* PHP-7.1:
Fixed condition check
Fixed condition check
another place
Conflicts:
ext/mcrypt/mcrypt.c
2017-04-10 14:49:13 +08:00
Xinchen Hui
65d77812fc
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed condition check
2017-04-10 14:47:42 +08:00
Xinchen Hui
4bebcb84ad
Fixed condition check
2017-04-10 14:47:24 +08:00
Thomas Punt
9f08aff3fd
Remove superfluous allocation checks around ZMM-based functions
2017-04-02 00:58:19 +02:00
Thomas Punt
932c4b35dc
Remove more unnecessary checks on Zend's allocator functions
2017-03-16 12:23:55 +01:00