Browse Source

v1.0.3 Update picqer/php-barcode-generator to v0.2.1

master
parent
commit
fa73c89513
6 changed files with 66 additions and 32 deletions
  1. +3
    -3
      barcode.php
  2. +2
    -3
      composer.lock
  3. +1
    -1
      vendor/autoload.php
  4. +38
    -10
      vendor/composer/ClassLoader.php
  5. +20
    -13
      vendor/composer/autoload_real.php
  6. +2
    -2
      vendor/composer/installed.json

+ 3
- 3
barcode.php View File

@@ -14,14 +14,14 @@


require_once 'vendor/autoload.php'; require_once 'vendor/autoload.php';


define("_BC_VERSION", "1.0.2");
define("_BC_VERSION", "1.0.3");


# permission to set to barcode files # permission to set to barcode files
define("_BC_PERMISSION", 0644); define("_BC_PERMISSION", 0644);
# group to set to barcode files (disabled at bot) # group to set to barcode files (disabled at bot)
define("_BC_SYSGROUP", "yourGrpHere"); define("_BC_SYSGROUP", "yourGrpHere");
# default padding for barcode # default padding for barcode
define("_BC_PADDING", 30);
define("_BC_PADDING", 30);




$verbose = false; $verbose = false;
@@ -295,4 +295,4 @@ function not_empty($str) {
// done // done
exit(0); exit(0);


?>
?>

+ 2
- 3
composer.lock View File

@@ -4,7 +4,6 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"hash": "a723e9e5630e78d2303e845440a976b2",
"content-hash": "8180bfe7b58f0f40617b074b3efc026a", "content-hash": "8180bfe7b58f0f40617b074b3efc026a",
"packages": [ "packages": [
{ {
@@ -66,7 +65,7 @@
"svg", "svg",
"upc" "upc"
], ],
"time": "2015-08-13 07:59:44"
"time": "2015-08-13T07:59:44+00:00"
}, },
{ {
"name": "ulrichsg/getopt-php", "name": "ulrichsg/getopt-php",
@@ -106,7 +105,7 @@
], ],
"description": "Command line arguments parser for PHP 5.3", "description": "Command line arguments parser for PHP 5.3",
"homepage": "http://ulrichsg.github.io/getopt-php", "homepage": "http://ulrichsg.github.io/getopt-php",
"time": "2015-03-28 14:09:20"
"time": "2015-03-28T14:09:20+00:00"
} }
], ],
"packages-dev": [], "packages-dev": [],


+ 1
- 1
vendor/autoload.php View File

@@ -2,6 +2,6 @@


// autoload.php @generated by Composer // autoload.php @generated by Composer


require_once __DIR__ . '/composer' . '/autoload_real.php';
require_once __DIR__ . '/composer/autoload_real.php';


return ComposerAutoloaderInitf17787d2ecff231b84857fe0d96cbca5::getLoader(); return ComposerAutoloaderInitf17787d2ecff231b84857fe0d96cbca5::getLoader();

+ 38
- 10
vendor/composer/ClassLoader.php View File

@@ -53,8 +53,9 @@ class ClassLoader


private $useIncludePath = false; private $useIncludePath = false;
private $classMap = array(); private $classMap = array();

private $classMapAuthoritative = false; private $classMapAuthoritative = false;
private $missingClasses = array();
private $apcuPrefix;


public function getPrefixes() public function getPrefixes()
{ {
@@ -271,6 +272,26 @@ class ClassLoader
return $this->classMapAuthoritative; 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. * Registers this instance as an autoloader.
* *
@@ -313,29 +334,34 @@ class ClassLoader
*/ */
public function findFile($class) 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 // class map lookup
if (isset($this->classMap[$class])) { if (isset($this->classMap[$class])) {
return $this->classMap[$class]; return $this->classMap[$class];
} }
if ($this->classMapAuthoritative) {
if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
return false; return false;
} }
if (null !== $this->apcuPrefix) {
$file = apcu_fetch($this->apcuPrefix.$class, $hit);
if ($hit) {
return $file;
}
}


$file = $this->findFileWithExtension($class, '.php'); $file = $this->findFileWithExtension($class, '.php');


// Search for Hack files if we are running on HHVM // 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'); $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. // Remember that this class does not exist.
return $this->classMap[$class] = false;
$this->missingClasses[$class] = true;
} }


return $file; return $file;
@@ -399,6 +425,8 @@ class ClassLoader
if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) { if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
return $file; return $file;
} }

return false;
} }
} }




+ 20
- 13
vendor/composer/autoload_real.php View File

@@ -23,19 +23,26 @@ class ComposerAutoloaderInitf17787d2ecff231b84857fe0d96cbca5
self::$loader = $loader = new \Composer\Autoload\ClassLoader(); self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInitf17787d2ecff231b84857fe0d96cbca5', 'loadClassLoader')); 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); $loader->register(true);


+ 2
- 2
vendor/composer/installed.json View File

@@ -17,7 +17,7 @@
"require": { "require": {
"php": ">=5.4.0" "php": ">=5.4.0"
}, },
"time": "2015-08-13 07:59:44",
"time": "2015-08-13T07:59:44+00:00",
"type": "library", "type": "library",
"installation-source": "dist", "installation-source": "dist",
"autoload": { "autoload": {
@@ -83,7 +83,7 @@
"require-dev": { "require-dev": {
"phpunit/phpunit": "3.7.*" "phpunit/phpunit": "3.7.*"
}, },
"time": "2015-03-28 14:09:20",
"time": "2015-03-28T14:09:20+00:00",
"type": "library", "type": "library",
"installation-source": "dist", "installation-source": "dist",
"autoload": { "autoload": {


Loading…
Cancel
Save