Skip to content

Instantly share code, notes, and snippets.

@ircmaxell
ircmaxell / gist:1963999
Created March 3, 2012 02:54
Scalar type hint/casting patch 2
Index: Zend/zend.h
===================================================================
--- Zend/zend.h (revision 323850)
+++ Zend/zend.h (working copy)
@@ -575,6 +575,15 @@
#define IS_CONSTANT_ARRAY 9
#define IS_CALLABLE 10
+/* Data type casts, hacked to be different from data type constants */
+#define IS_NULL_CAST 0x010