From f35cca40628d940a43ba5491ea80494aed748907 Mon Sep 17 00:00:00 2001 From: heyanlong Date: Thu, 6 Dec 2018 13:32:15 +0800 Subject: [PATCH] clear test file --- sky-php7ext/skywalking.php | 64 -------------------------------------- 1 file changed, 64 deletions(-) diff --git a/sky-php7ext/skywalking.php b/sky-php7ext/skywalking.php index 4b75b38..62a2de0 100644 --- a/sky-php7ext/skywalking.php +++ b/sky-php7ext/skywalking.php @@ -1,67 +1,3 @@ fwrite("124124"); - - - $file = new SplFileObject('appid.pid'); -$aa = $file->current(); - -var_dump($aa); -exit; -function getfiles($path){ - foreach(scandir($path) as $afile) - { - if($afile=='.'||$afile=='..') continue; - if(is_file($path.'/'.$afile)){ - - echo $afile. "\n"; - } - } -} //简单的demo,列出当前目录下所有的文件 -getfiles(__DIR__); - -exit; -var_dump(base_convert(uniqid(), 16, 10)); -getMillisecond(); -function getMillisecond() - { - list($t1, $t2) = explode(' ', microtime()); - /*$t3 = $t1 * 100000000; - var_dump($t2, substr($t2, -6)); - $aa = (float)($t3 . substr($t2, -6)); - var_dump( (float)($t3 . substr($t2, -6))); - var_dump( json_encode(array("aaa"=> $aa))); - exit;*/ - $millisecond = (float)sprintf('%.0f', (floatval($t1) + floatval($t2)) * 10000); - var_dump( json_encode(array("aaa"=> $millisecond))); - var_dump( $millisecond); - return $millisecond; - } - exit; -var_dump(json_encode(["applicationCode"=>"mapi"]));exit; -exit; -$br = (php_sapi_name() == "cli")? "":"
"; - -if(!extension_loaded('skywalking')) { - dl('skywalking.' . PHP_SHLIB_SUFFIX); -} -$module = 'skywalking'; -$functions = get_extension_funcs($module); -echo "Functions available in the test extension:$br\n"; -foreach($functions as $func) { - echo $func."$br\n"; -} -echo "$br\n"; -$function = 'confirm_' . $module . '_compiled'; -if (extension_loaded($module)) { - $str = $function($module); -} else { - $str = "Module $module is not compiled into PHP"; -} -echo "$str\n"; ?> -- GitLab