summaryrefslogtreecommitdiff
path: root/ext/pcntl/php_pcntl.h
diff options
context:
space:
mode:
authorArnaud Le Blanc <lbarnaud@php.net>2010-11-01 20:10:17 +0000
committerArnaud Le Blanc <lbarnaud@php.net>2010-11-01 20:10:17 +0000
commita9507474e3ec43dbffc83875229ee155a425f94d (patch)
treee0717266e1b1dbc7db13ebd52dd06fbb8de0a349 /ext/pcntl/php_pcntl.h
parent8f8b24866d6d75daf0f307b051cf1426e3e67f2f (diff)
downloadphp-git-a9507474e3ec43dbffc83875229ee155a425f94d.tar.gz
Fix bug #52173 (ext/pcntl doesn't store/report errors) (patch
by nick dot telford at gmail dot com)
Diffstat (limited to 'ext/pcntl/php_pcntl.h')
-rw-r--r--ext/pcntl/php_pcntl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/pcntl/php_pcntl.h b/ext/pcntl/php_pcntl.h
index 35afb2cc3c..6db18633c8 100644
--- a/ext/pcntl/php_pcntl.h
+++ b/ext/pcntl/php_pcntl.h
@@ -42,6 +42,8 @@ PHP_FUNCTION(pcntl_wtermsig);
PHP_FUNCTION(pcntl_wstopsig);
PHP_FUNCTION(pcntl_signal);
PHP_FUNCTION(pcntl_signal_dispatch);
+PHP_FUNCTION(pcntl_get_last_error);
+PHP_FUNCTION(pcntl_strerror);
#ifdef HAVE_SIGPROCMASK
PHP_FUNCTION(pcntl_sigprocmask);
#endif
@@ -66,6 +68,7 @@ ZEND_BEGIN_MODULE_GLOBALS(pcntl)
HashTable php_signal_table;
int processing_signal_queue;
struct php_pcntl_pending_signal *head, *tail, *spares;
+ int last_error;
ZEND_END_MODULE_GLOBALS(pcntl)
#ifdef ZTS
@@ -74,6 +77,8 @@ ZEND_END_MODULE_GLOBALS(pcntl)
#define PCNTL_G(v) (pcntl_globals.v)
#endif
+#define REGISTER_PCNTL_ERRNO_CONSTANT(name) REGISTER_LONG_CONSTANT("PCNTL_" #name, name, CONST_CS | CONST_PERSISTENT)
+
#endif /* PHP_PCNTL_H */