- Output for 5.4.0 - 5.4.24
- Fatal error: Call-time pass-by-reference has been removed in /in/qaWYN on line 8
Process exited with code 255. - Output for 5.3.0 - 5.3.29
- Deprecated: Call-time pass-by-reference has been deprecated in /in/qaWYN on line 8 1
<?php
$a= & $_POST;
$a=array();
function countRefs(&$var) {
ob_start();
debug_zval_dump(&$var);
preg_match('~refcount\((\d+)\)~', ob_get_clean(), $matches);
echo $matches[1] - 4;
}
countRefs($a);