PATH:
opt
/
alt
/
tests
/
alt-php84-pecl-scoutapm_1.10.0-2.el8
/
tests
--TEST-- Bug https://github.com/scoutapp/scout-apm-php-ext/issues/93 - Should not segfault on static function usage --SKIPIF-- <?php if (!extension_loaded("scoutapm")) die("skip scoutapm extension required."); ?> --FILE-- <?php scoutapm_enable_instrumentation(true); (static function () { echo "Called 1.\n"; })(); $declared = static function () { echo "Called 2.\n"; }; $declared(); class A { static function thing() { echo "Called 3.\n"; } } A::thing(); ?> --EXPECTF-- Called 1. Called 2. Called 3.
[-] bug-55.phpt
[edit]
[-] 009-curl_exec.phpt
[edit]
[-] 005-requiring-external-files-handled.phpt
[edit]
[-] 002-file_get_contents.phpt
[edit]
[-] 010-fwrite-fread-tmpfile.phpt
[edit]
[-] 020-url-method-capture-curl-post.phpt
[edit]
[-] 003-scoutapm_get_calls-clears-calls-list.phpt
[edit]
[-] 015-phpredis-support.phpt
[edit]
[-] bug-49.phpt
[edit]
[-] 022-elastic-8-support.phpt
[edit]
[-] bug-93.phpt
[edit]
[-] 007-evaled-code-handled.phpt
[edit]
[-] 010-fwrite-fread-fopen.phpt
[edit]
[-] 018-do-not-instrument-by-default.phpt
[edit]
[-] bug-88.phpt
[edit]
[-] 011-pdostatement-execute-pdo-prepare.phpt
[edit]
[-] bug-47.phpt
[edit]
[-] 011-pdo-exec.phpt
[edit]
[-] 019-url-method-capture-fgc.phpt
[edit]
[-] bug-71.phpt
[edit]
[-] 008-class-with-no-constructor-call-handled.phpt
[edit]
[-] 011-pdo-query.phpt
[edit]
[+]
..
[-] 004-namespaced-fgc-is-not-logged.phpt
[edit]
[-] 017-elastic-7-support.phpt
[edit]
[-] 016-memcached-support.phpt
[edit]
[-] 006-anonymous-classes-handled.phpt
[edit]
[-] 014-predis-support.phpt
[edit]
[-] 012-file_put_contents.phpt
[edit]
[-] 021-url-method-capture-curl-customreq.phpt
[edit]
[-] 001-check-ext-loaded.phpt
[edit]
[-] external.inc
[edit]
[-] 013-fix-memory-leak-when-scoutapm_get_calls-not-called.phpt
[edit]