diff options
Diffstat (limited to 'ext/sockets/tests/socket_set_option_error_socket_option.phpt')
-rw-r--r-- | ext/sockets/tests/socket_set_option_error_socket_option.phpt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/sockets/tests/socket_set_option_error_socket_option.phpt b/ext/sockets/tests/socket_set_option_error_socket_option.phpt index ea3b36d99f..18afcc8fb1 100644 --- a/ext/sockets/tests/socket_set_option_error_socket_option.phpt +++ b/ext/sockets/tests/socket_set_option_error_socket_option.phpt @@ -8,7 +8,7 @@ if (!extension_loaded('sockets')) { if (PHP_OS == 'Darwin') { die('skip Not for OSX'); } -$filename = dirname(__FILE__) . '/006_root_check.tmp'; +$filename = __DIR__ . '/006_root_check.tmp'; $fp = fopen($filename, 'w'); fclose($fp); if (fileowner($filename) == 0) { @@ -28,7 +28,7 @@ socket_close($socket); ?> --CLEAN-- <?php -unlink(dirname(__FILE__) . '/006_root_check.tmp'); +unlink(__DIR__ . '/006_root_check.tmp'); --EXPECTF-- Warning: socket_set_option(): unable to set socket option [%d]: Permission denied in %s on line %d --CREDITS-- |