PHP 8.2.30
Preview: PEAR5.php Size: 1.06 KB
//opt/cloudlinux/alt-php52/root/usr/share/pear/PEAR5.php

<?php
/**
 * This is only meant for PHP 5 to get rid of certain strict warning
 * that doesn't get hidden since it's in the shutdown function
 */
class PEAR5
{
    /**
    * If you have a class that's mostly/entirely static, and you need static
    * properties, you can use this method to simulate them. Eg. in your method(s)
    * do this: $myVar = &PEAR5::getStaticProperty('myclass', 'myVar');
    * You MUST use a reference, or they will not persist!
    *
    * @access public
    * @param  string $class  The calling classname, to prevent clashes
    * @param  string $var    The variable to retrieve.
    * @return mixed   A reference to the variable. If not set it will be
    *                 auto initialised to NULL.
    */
    static function &getStaticProperty($class, $var)
    {
        static $properties;
        if (!isset($properties[$class])) {
            $properties[$class] = array();
        }

        if (!array_key_exists($var, $properties[$class])) {
            $properties[$class][$var] = null;
        }

        return $properties[$class][$var];
    }
}

Directory Contents

Dirs: 15 × Files: 10

Name Size Perms Modified Actions
.channels DIR
- drwxr-xr-x 2024-03-03 22:40:40
Edit Download
.pkgxml DIR
- drwxr-xr-x 2024-03-03 22:54:23
Edit Download
.registry DIR
- drwxr-xr-x 2024-03-03 22:54:25
Edit Download
Archive DIR
- drwxr-xr-x 2024-03-03 22:40:40
Edit Download
Auth DIR
- drwxr-xr-x 2024-03-03 22:54:23
Edit Download
Console DIR
- drwxr-xr-x 2024-03-03 22:40:40
Edit Download
data DIR
- drwxr-xr-x 2024-03-03 22:54:23
Edit Download
File DIR
- drwxr-xr-x 2024-03-03 22:54:23
Edit Download
Mail DIR
- drwxr-xr-x 2024-03-03 22:54:23
Edit Download
Net DIR
- drwxr-xr-x 2024-03-03 22:54:23
Edit Download
OS DIR
- drwxr-xr-x 2024-03-03 22:40:40
Edit Download
PEAR DIR
- drwxr-xr-x 2024-03-03 22:40:40
Edit Download
- drwxr-xr-x 2024-03-03 22:54:23
Edit Download
test DIR
- drwxr-xr-x 2024-03-03 22:54:23
Edit Download
XML DIR
- drwxr-xr-x 2024-03-03 22:40:40
Edit Download
4.39 KB lrw-r--r-- 2024-03-03 22:54:25
Edit Download
0 B lrw-r--r-- 2024-03-03 22:54:25
Edit Download
19.35 KB lrw-r--r-- 2024-03-03 22:54:25
Edit Download
0 B lrw-r--r-- 2024-03-03 22:54:25
Edit Download
9.65 KB lrw-r--r-- 2021-12-02 08:06:02
Edit Download
33.06 KB lrw-r--r-- 2019-12-12 15:05:42
Edit Download
1.06 KB lrw-r--r-- 2019-12-12 15:05:42
Edit Download
14.20 KB lrw-r--r-- 2019-12-12 15:05:42
Edit Download
1.01 KB lrw-r--r-- 2019-12-12 15:05:42
Edit Download
20.34 KB lrw-r--r-- 2019-12-12 15:05:42
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).