diff --git a/barcode.php b/barcode.php index 60e390c..795892d 100755 --- a/barcode.php +++ b/barcode.php @@ -14,14 +14,14 @@ require_once 'vendor/autoload.php'; -define("_BC_VERSION", "1.0.2"); +define("_BC_VERSION", "1.0.3"); # permission to set to barcode files define("_BC_PERMISSION", 0644); # group to set to barcode files (disabled at bot) define("_BC_SYSGROUP", "yourGrpHere"); # default padding for barcode -define("_BC_PADDING", 30); +define("_BC_PADDING", 30); $verbose = false; @@ -295,4 +295,4 @@ function not_empty($str) { // done exit(0); -?> \ No newline at end of file +?> diff --git a/composer.lock b/composer.lock index 9d542a0..996a934 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,6 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "This file is @generated automatically" ], - "hash": "a723e9e5630e78d2303e845440a976b2", "content-hash": "8180bfe7b58f0f40617b074b3efc026a", "packages": [ { @@ -66,7 +65,7 @@ "svg", "upc" ], - "time": "2015-08-13 07:59:44" + "time": "2015-08-13T07:59:44+00:00" }, { "name": "ulrichsg/getopt-php", @@ -106,7 +105,7 @@ ], "description": "Command line arguments parser for PHP 5.3", "homepage": "http://ulrichsg.github.io/getopt-php", - "time": "2015-03-28 14:09:20" + "time": "2015-03-28T14:09:20+00:00" } ], "packages-dev": [], diff --git a/vendor/autoload.php b/vendor/autoload.php index f04aae1..15e5cc4 100644 --- a/vendor/autoload.php +++ b/vendor/autoload.php @@ -2,6 +2,6 @@ // autoload.php @generated by Composer -require_once __DIR__ . '/composer' . '/autoload_real.php'; +require_once __DIR__ . '/composer/autoload_real.php'; return ComposerAutoloaderInitf17787d2ecff231b84857fe0d96cbca5::getLoader(); diff --git a/vendor/composer/ClassLoader.php b/vendor/composer/ClassLoader.php index ff6ecfb..4626994 100644 --- a/vendor/composer/ClassLoader.php +++ b/vendor/composer/ClassLoader.php @@ -53,8 +53,9 @@ class ClassLoader private $useIncludePath = false; private $classMap = array(); - private $classMapAuthoritative = false; + private $missingClasses = array(); + private $apcuPrefix; public function getPrefixes() { @@ -271,6 +272,26 @@ class ClassLoader return $this->classMapAuthoritative; } + /** + * APCu prefix to use to cache found/not-found classes, if the extension is enabled. + * + * @param string|null $apcuPrefix + */ + public function setApcuPrefix($apcuPrefix) + { + $this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null; + } + + /** + * The APCu prefix in use, or null if APCu caching is not enabled. + * + * @return string|null + */ + public function getApcuPrefix() + { + return $this->apcuPrefix; + } + /** * Registers this instance as an autoloader. * @@ -313,29 +334,34 @@ class ClassLoader */ public function findFile($class) { - // work around for PHP 5.3.0 - 5.3.2 https://bugs.php.net/50731 - if ('\\' == $class[0]) { - $class = substr($class, 1); - } - // class map lookup if (isset($this->classMap[$class])) { return $this->classMap[$class]; } - if ($this->classMapAuthoritative) { + if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) { return false; } + if (null !== $this->apcuPrefix) { + $file = apcu_fetch($this->apcuPrefix.$class, $hit); + if ($hit) { + return $file; + } + } $file = $this->findFileWithExtension($class, '.php'); // Search for Hack files if we are running on HHVM - if ($file === null && defined('HHVM_VERSION')) { + if (false === $file && defined('HHVM_VERSION')) { $file = $this->findFileWithExtension($class, '.hh'); } - if ($file === null) { + if (null !== $this->apcuPrefix) { + apcu_add($this->apcuPrefix.$class, $file); + } + + if (false === $file) { // Remember that this class does not exist. - return $this->classMap[$class] = false; + $this->missingClasses[$class] = true; } return $file; @@ -399,6 +425,8 @@ class ClassLoader if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) { return $file; } + + return false; } } diff --git a/vendor/composer/autoload_real.php b/vendor/composer/autoload_real.php index e5e2427..93cfcde 100644 --- a/vendor/composer/autoload_real.php +++ b/vendor/composer/autoload_real.php @@ -23,19 +23,26 @@ class ComposerAutoloaderInitf17787d2ecff231b84857fe0d96cbca5 self::$loader = $loader = new \Composer\Autoload\ClassLoader(); spl_autoload_unregister(array('ComposerAutoloaderInitf17787d2ecff231b84857fe0d96cbca5', 'loadClassLoader')); - $map = require __DIR__ . '/autoload_namespaces.php'; - foreach ($map as $namespace => $path) { - $loader->set($namespace, $path); - } - - $map = require __DIR__ . '/autoload_psr4.php'; - foreach ($map as $namespace => $path) { - $loader->setPsr4($namespace, $path); - } - - $classMap = require __DIR__ . '/autoload_classmap.php'; - if ($classMap) { - $loader->addClassMap($classMap); + $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); + if ($useStaticLoader) { + require_once __DIR__ . '/autoload_static.php'; + + call_user_func(\Composer\Autoload\ComposerStaticInitf17787d2ecff231b84857fe0d96cbca5::getInitializer($loader)); + } else { + $map = require __DIR__ . '/autoload_namespaces.php'; + foreach ($map as $namespace => $path) { + $loader->set($namespace, $path); + } + + $map = require __DIR__ . '/autoload_psr4.php'; + foreach ($map as $namespace => $path) { + $loader->setPsr4($namespace, $path); + } + + $classMap = require __DIR__ . '/autoload_classmap.php'; + if ($classMap) { + $loader->addClassMap($classMap); + } } $loader->register(true); diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index f89632d..eb871e8 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -17,7 +17,7 @@ "require": { "php": ">=5.4.0" }, - "time": "2015-08-13 07:59:44", + "time": "2015-08-13T07:59:44+00:00", "type": "library", "installation-source": "dist", "autoload": { @@ -83,7 +83,7 @@ "require-dev": { "phpunit/phpunit": "3.7.*" }, - "time": "2015-03-28 14:09:20", + "time": "2015-03-28T14:09:20+00:00", "type": "library", "installation-source": "dist", "autoload": {