diff options
author | Zeev Suraski <zeev@php.net> | 2001-07-21 16:21:22 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2001-07-21 16:21:22 +0000 |
commit | ef4fe54f0ae3e93a77c7728d90b4adf2318c5bde (patch) | |
tree | 6850a65eccd41f3dfc4a91e8643118dfde008f47 | |
parent | 6fa5ac832fb3d17a51233e9f24fe23c76a876e89 (diff) | |
download | php-git-ef4fe54f0ae3e93a77c7728d90b4adf2318c5bde.tar.gz |
Always track bailout file/lineno
-rw-r--r-- | Zend/zend.c | 4 | ||||
-rw-r--r-- | Zend/zend.h | 8 |
2 files changed, 4 insertions, 8 deletions
diff --git a/Zend/zend.c b/Zend/zend.c index d592065b2a..3fd618e42d 100644 --- a/Zend/zend.c +++ b/Zend/zend.c @@ -464,13 +464,13 @@ void zenderror(char *error) BEGIN_EXTERN_C() -ZEND_API void _zend_bailout(ZEND_FILE_LINE_D) +ZEND_API void _zend_bailout(char *filename, uint lineno) { CLS_FETCH(); ELS_FETCH(); if (!EG(bailout_set)) { - zend_output_debug_string(1, "%s(%d) : Bailed out without a bailout address!" ZEND_FILE_LINE_RELAY_CC); + zend_output_debug_string(1, "%s(%d) : Bailed out without a bailout address!", filename, lineno); exit(-1); } CG(unclean_shutdown) = 1; diff --git a/Zend/zend.h b/Zend/zend.h index 6ff6feacb5..d43c082be0 100644 --- a/Zend/zend.h +++ b/Zend/zend.h @@ -307,14 +307,10 @@ void zend_shutdown(void); void zend_set_utility_values(zend_utility_values *utility_values); BEGIN_EXTERN_C() -ZEND_API void _zend_bailout(ZEND_FILE_LINE_D); +ZEND_API void _zend_bailout(char *filename, uint lineno); END_EXTERN_C() -#if ZEND_DEBUG -#define zend_bailout() _zend_bailout(ZEND_FILE_LINE_C) -#else -#define zend_bailout() _zend_bailout() -#endif +#define zend_bailout() _zend_bailout(__FILE__, __LINE__) #define zend_try \ { \ |