Open effeks opened 8 years ago
Not a fatal error in recent versions:
<?php
error_reporting(E_ALL);
$stream = fopen('/tmp/temp', 'r+');
var_dump(stream_socket_get_name($stream,true));
error_reporting call doesn't change behavior, but makes PHP5 output more similar.
fred@hhvm-oss-bench:~/test$ php5 test.php
PHP Warning: fopen(/tmp/temp): failed to open stream: No such file or directory in /home/fred/test/test.php on line 3
PHP Warning: stream_socket_get_name() expects parameter 1 to be resource, boolean given in /home/fred/test/test.php on line 4
bool(false)
fred@hhvm-oss-bench:~/test$ hhvm test.php
Warning: No such file or directory in /home/fred/test/test.php on line 3
Warning: stream_socket_get_name() expects parameter 1 to be resource, boolean given in /home/fred/test/test.php on line 4
NULL
re-titling issue to indicate remaining problem
Hi,
Wondering about a diff between HHVM (3.9.1) and PHP (5.6)
Testscript: