📁 File Manager Pro
v10.0.2 | PHP: 8.1.34
Server: LiteSpeed
2026-06-29 18:53:48
📂
/
/
opt
/
alt
/
tests
/
alt-php85-pecl-scoutapm_1.10.0-2.el8
/
tests
✏️
Editing: bug-49.phpt
--TEST-- Bug https://github.com/scoutapp/scout-apm-php-ext/issues/49 - only record arguments for fopen if it returns a resource --SKIPIF-- <?php if (!extension_loaded("scoutapm")) die("skip scoutapm extension required."); ?> --FILE-- <?php scoutapm_enable_instrumentation(true); // Note, in PHP 8 the warning changed from "failed to open stream" to "Failed to open stream" hence the %c var_dump(fopen('/this/file/should/not/exist', 'r')); var_dump(scoutapm_get_calls()); ?> --EXPECTF-- Warning: fopen(%s): %cailed to open stream: No such file or directory in %s bool(false) array(0) { }
💾 Save Changes
❌ Cancel