Skip to content

Instantly share code, notes, and snippets.

@arraypad
arraypad / gist:6044439
Created July 20, 2013 09:28
Make echo & print callable
diff --git a/ext/standard/basic_functions.c b/ext/standard/basic_functions.c
index a9ce7de..1a56120 100644
--- a/ext/standard/basic_functions.c
+++ b/ext/standard/basic_functions.c
@@ -785,6 +785,14 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_print_r, 0, 0, 1)
ZEND_ARG_INFO(0, return)
ZEND_END_ARG_INFO()
+ZEND_BEGIN_ARG_INFO_EX(arginfo_print, 0, 0, 1)
+ ZEND_ARG_INFO(0, var)
--TEST--
Array key within interned string gets wrong hash value
--FILE--
<?php
class Foo
{
protected $unsetme = 1;
protected $keepme = 2;