Dmitry Stogov
265c3ed6cf
Fixed incorrrecr zval_dtor() usage to replace value of argument passed by reference, that may lead to memory leaks.
2018-07-05 10:57:49 +03:00
Dmitry Stogov
0b90cf85a6
Removed "dead" code (zend_hash_update() never fails)
2018-06-01 11:58:57 +03:00
Dmitry Stogov
d90c6f2443
Removed useless zval_ptr_dtor()
2018-05-29 17:58:06 +03: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
Bob Weinand
dfa383497a
Merge remote-tracking branch 'origin/PHP-7.2'
2018-02-28 02:36:18 +01:00
Bob Weinand
15d611e451
Merge branch 'PHP-7.1' into PHP-7.2
2018-02-28 02:35:44 +01:00
Bob Weinand
3f32bd9f43
Fix pcntl build on mac
...
Apparently on mac WIF*(x) macros resolve to (*(int*)&x) (_W_INT macro in sys/wait.h), forcing the value to be a lvalue
2018-02-28 02:13:28 +01:00
Christoph M. Becker
94d0c24dca
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix #75873 : pcntl_wexitstatus returns incorrect on Big_Endian platform (s390x)
2018-02-23 23:53:32 +01:00
Christoph M. Becker
32df2b6617
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix #75873 : pcntl_wexitstatus returns incorrect on Big_Endian platform (s390x)
2018-02-23 23:52:07 +01:00
Sam Ding
78c1ef2adb
Fix #75873 : pcntl_wexitstatus returns incorrect on Big_Endian platform (s390x)
...
Cf. https://github.com/php/php-src/pull/3141 .
2018-02-23 23:50:36 +01:00
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
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
Xinchen Hui
7a7ec01a49
year++
2018-01-02 12:55:14 +08:00
Xinchen Hui
ccd4716ec7
year++
2018-01-02 12:53:31 +08:00
Dmitry Stogov
9e709e2fa0
Move constants into read-only data segment
2017-12-14 18:43:44 +03:00
Xinchen Hui
a8a17a72b0
RC manipulation cleanup
2017-11-01 10:25:10 +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
Kalle Sommer Nielsen
c34ba92782
Get rid of all these old package[2].xml files, most of these had no had a release since PHP4, or any release at all in close to 10 years, some even did not have a package registered at pecl
...
OCI, PDO_OCI and zip are left as they are actively developed and released there
2017-08-17 22:09:29 +02:00
Nikita Popov
035a27cbc6
Only compute callback name in error cases
...
Mostly the callback name is only used to report an error. Try to
avoid calculating it if no error occurred.
2017-06-25 18:45:59 +02:00
Dennis Birkholz
d0c8aba3d8
Pcntl: Make realtime signals available
...
Expose constants SIGRTMIN and SIGRTMAX and adjust range checks to
support realtime signals.
2017-03-09 15:59:09 +01:00
Joe Watkins
bac4c97602
Fix bug #73939 memory allocation in signal handler when HAVE_STRUCT_SIGINFO_T
2017-01-16 04:32:27 +00:00
Adam Saponara
3e274018f8
Fix segfault in pcntl_signal_handler (bug #73939 )
2017-01-15 06:44:04 +00: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
Nikita Popov
270f1ffd19
Merge branch 'PHP-7.1'
2016-12-29 21:18:58 +01:00
David Walker
b09c2f899e
Fixed bug #73783
...
Bug #73783 raises an issue with signal handling when using SIG_IGN.
With PHP7.1 ZEND_SIGNALS is defaulted to on, which will for all
signals set the handler as zend_signal_handler_defer. This is
problematic for syscalls like sleep(), which will only return when the
requisite number of seconds have elapsed, or, a non-ignored signal is
raised. In this case we want to SIG_IGN SIGCHLD, however, SIG_IGN is
only stored in the SIGG(handlers) array, and the actual system level
handler is defined. This prevents proper signal ignoring when requeted.
2016-12-29 21:18:22 +01:00
Pedro Magalhães
617dcf1b37
Remove the binary cast from unrelated tests
2016-11-20 21:11:53 +01:00
Pedro Magalhães
9c5af4e4cb
Remove the b prefix from literals on unrelated tests
2016-11-20 21:11:53 +01:00
Davey Shafik
57092c5a68
Merge RFC Additional Context in pcntl_signal Handler
2016-07-20 14:17:04 -07:00
Aaron Piotrowski
1ba20e311e
Fix pcntl_signal_get_handler() test
...
Test was failing on Fedora.
2016-07-11 17:01:03 -05:00
David Walker
cc16eff7ad
Fix memory leak
2016-07-07 21:33:01 -06:00
David Walker
f64388e8c1
pnctl_signal(): add siginfo to handler args
...
Feature will utilize already available siginfo parsing
and extend the handler for signals to provide an array
of the siginfo_t data.
RFC:https://wiki.php.net/rfc/additional-context-in-pcntl-signal-handler
2016-07-07 09:43:18 -06:00
David Walker
ed9bff5352
oops, name test right
2016-07-06 13:57:37 -05:00
David Walker
90e326c620
change long to zend_long, for uniformity
2016-07-06 13:57:37 -05:00
David Walker
fcda3c8ada
Fix to not attempt to call if handler is long. Idea for this came
...
from comment on PR.
2016-07-06 13:57:37 -05:00
David Walker
217dcbcd91
Fix #72409 - return previous handler
...
This patch addresses https://bugs.php.net/bug.php?id=72409
This patch is applied to master compared to PR#1952 which was
patching 5.6.x branch of PHP
This patch takes into account discussions on PR #1978
Addressing that rather than have pcntl_signal() return a value
to create a new function that can be used to get the current
value of the signal handler.
2016-07-06 13:57:37 -05:00
Dmitry Stogov
c03ccfe78d
Asynchronous signal handling without TICKs.
...
Squashed commit of the following:
commit eda931df18
Author: Dmitry Stogov <dmitry@zend.com >
Date: Wed Jul 6 10:53:30 2016 +0300
Replace pcntl.async_signals INI direcrive with pcntl_async_signals() function.
commit bfbf7dd7c2
Author: Dmitry Stogov <dmitry@zend.com >
Date: Fri Jun 24 12:25:31 2016 +0300
Asynchronous signal handling without TICKs.
2016-07-06 13:11:47 +03:00
Dmitry Stogov
c8706331b5
Cleanup zend_signal API
2016-06-20 14:58:42 +03:00
Xinchen Hui
c15b6134f6
Fixed bug #72154 (pcntl_wait/pcntl_waitpid array internal structure overwrite)
2016-05-05 15:18:17 +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
560e4fa393
Removed or simplified incorrect SEPARATE_*() macros usage.
2015-09-29 11:17:43 +03:00
Andrey Hristov
be6546fac9
Add support for parameters to tick functions, on C level. This is only
...
for extensions that want to use register tick functions. Userland tick
functions are unaffected.
2015-09-28 11:21:17 +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
Matteo Beccati
6b3e44369d
Fixed bug #70386 Can't compile on NetBSD because of missing WCONTINUED
...
since 90114a3e93
2015-08-29 08:07:45 +02:00
Dmitry Stogov
4a2e40bb86
Use ZSTR_ API to access zend_string elements (this is just renaming without semantick changes).
2015-06-30 04:05:24 +03:00
Antony Dovgal
2fa4e79e8a
fix tests
2015-05-13 15:34:17 +02:00
Antony Dovgal
5c02e7e7fb
merge similar if conditions
2015-05-13 15:34:17 +02:00
Antony Dovgal
7e0e88820a
add rusage support to wait() and waitpid()
...
patch by Anton Stepanenko
2015-05-13 15:34:17 +02:00