Skip to content

Instantly share code, notes, and snippets.

@NewEraCracker
Created December 14, 2016 19:15
Show Gist options
  • Save NewEraCracker/67fffc853a27be166a4df745dcb9ad77 to your computer and use it in GitHub Desktop.
Save NewEraCracker/67fffc853a27be166a4df745dcb9ad77 to your computer and use it in GitHub Desktop.
--- php5.4/Zend/zend.h
+++ php5.4/Zend/zend.h
@@ -212,6 +212,7 @@
#define ZEND_FILE_LINE_EMPTY_CC , ZEND_FILE_LINE_EMPTY_C
#define ZEND_FILE_LINE_ORIG_RELAY_C __zend_orig_filename, __zend_orig_lineno
#define ZEND_FILE_LINE_ORIG_RELAY_CC , ZEND_FILE_LINE_ORIG_RELAY_C
+#define ZEND_ASSERT(c) assert(c)
#else
#define ZEND_FILE_LINE_D
#define ZEND_FILE_LINE_DC
@@ -225,6 +226,7 @@
#define ZEND_FILE_LINE_EMPTY_CC
#define ZEND_FILE_LINE_ORIG_RELAY_C
#define ZEND_FILE_LINE_ORIG_RELAY_CC
+#define ZEND_ASSERT(c)
#endif /* ZEND_DEBUG */
#ifdef ZTS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment