OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
Xpress_backup
/
vendor
/
aws
/
aws-crt-php
/
src
/
AWS
/
CRT
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
01/06/2025 08:26:13 AM
rwxr-xr-x
📁
Auth
-
05/19/2025 10:07:18 AM
rwxr-xr-x
📄
CRT.php
13.29 KB
05/19/2025 10:07:18 AM
rw-r--r--
📁
HTTP
-
05/19/2025 10:07:18 AM
rwxr-xr-x
📁
IO
-
05/19/2025 10:07:18 AM
rwxr-xr-x
📁
Internal
-
05/19/2025 10:07:18 AM
rwxr-xr-x
📄
Log.php
1.06 KB
05/19/2025 10:07:18 AM
rw-r--r--
📄
NativeResource.php
1.04 KB
05/19/2025 10:07:18 AM
rw-r--r--
📄
Options.php
1.76 KB
05/19/2025 10:07:18 AM
rw-r--r--
Editing: NativeResource.php
Close
<?php /** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ namespace AWS\CRT; use AWS\CRT\CRT as CRT; /** * Base class for all native resources, tracks all outstanding resources * and provides basic leak checking */ abstract class NativeResource { protected static $crt = null; protected static $resources = []; protected $native = null; protected function __construct() { if (is_null(self::$crt)) { self::$crt = new CRT(); } self::$resources[spl_object_hash($this)] = 1; } protected function acquire($handle) { return $this->native = $handle; } protected function release() { $native = $this->native; $this->native = null; return $native; } function __destruct() { // Should have been destroyed and released by derived resource assert($this->native == null); unset(self::$resources[spl_object_hash($this)]); } }