OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
reader
/
knoblyExpressLandingPage
/
vendor
/
aws
/
aws-sdk-php
/
build
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
08/21/2024 10:02:53 AM
rwxr-xr-x
📄
Burgomaster.php
13.48 KB
08/21/2024 10:02:23 AM
rw-r--r--
📄
ClassAnnotationUpdater.php
3.3 KB
08/21/2024 10:02:23 AM
rw-r--r--
📄
ClientAnnotator.php
4.57 KB
08/21/2024 10:02:23 AM
rw-r--r--
📄
JsonCompiler.php
2.48 KB
08/21/2024 10:02:23 AM
rw-r--r--
📄
PhpFileLinterTrait.php
1.44 KB
08/21/2024 10:02:23 AM
rw-r--r--
📄
ServiceBuilder.php
1.85 KB
08/21/2024 10:02:23 AM
rw-r--r--
📄
annotate-client-locator.php
1.04 KB
08/21/2024 10:02:23 AM
rw-r--r--
📄
annotate-clients.php
2.74 KB
08/21/2024 10:02:23 AM
rw-r--r--
📄
aws-clear-cache.php
91 bytes
08/21/2024 10:02:23 AM
rw-r--r--
📄
build-manifest.php
3.57 KB
08/21/2024 10:02:23 AM
rw-r--r--
📄
build-redirect-map.php
343 bytes
08/21/2024 10:02:23 AM
rw-r--r--
📄
build-service.php
1015 bytes
08/21/2024 10:02:23 AM
rw-r--r--
📁
changelog
-
08/21/2024 10:02:52 AM
rwxr-xr-x
📄
compile-json.php
447 bytes
08/21/2024 10:02:23 AM
rw-r--r--
📁
docs
-
08/21/2024 10:05:50 AM
rwxr-xr-x
📄
docs.php
1.72 KB
08/21/2024 10:02:23 AM
rw-r--r--
📄
gh-release.php
6.01 KB
08/21/2024 10:02:23 AM
rw-r--r--
📄
normalize-docs-files.php
7.74 KB
08/21/2024 10:02:23 AM
rw-r--r--
📄
option-docs.php
1.21 KB
08/21/2024 10:02:23 AM
rw-r--r--
📄
packager.php
2.2 KB
08/21/2024 10:02:23 AM
rw-r--r--
📄
phar-test-runner.php
161 bytes
08/21/2024 10:02:23 AM
rw-r--r--
📄
remove-method-annotations.php
1.4 KB
08/21/2024 10:02:23 AM
rw-r--r--
📄
test-phar.php
1.05 KB
08/21/2024 10:02:24 AM
rw-r--r--
Editing: PhpFileLinterTrait.php
Close
<?php /** * A trait that provides a method for linting a PHP file. It will use * `opcache_compile` if available and fall back to shelling out to `php -l` * otherwise. * * @internal */ trait PhpFileLinterTrait { /** * @param string $path * * @return bool */ private function lintFile($path) { static $linter; if (empty($linter)) { $linter = function_exists('opcache_get_status') && !empty(opcache_get_status(false)['opcache_enabled']) ? [$this, 'opcacheLint'] : [$this, 'commandLineLint']; } return call_user_func($linter, $path); } /** * @param string $path * * @return bool */ private function commandLineLint($path) { list($output, $exitCode) = [[], 1]; exec("php -l $path", $output, $exitCode); return 0 === $exitCode; } /** * Uses the Zend OPCache control functions to perform an in-process * validation of a file. This function will fail on code that declares new * symbols (e.g., classes or functions) if they have already been loaded * into the current process. * * @param string $path * * @return bool */ private function opcacheLint($path) { opcache_invalidate($path, true); return @opcache_compile_file($path); } }