Changeset 1708035
- Timestamp:
- 08/03/2017 08:45:45 PM (9 years ago)
- Location:
- wp-post-acl
- Files:
-
- 12 edited
- 1 copied
-
tags/1.0.1 (copied) (copied from wp-post-acl/trunk)
-
tags/1.0.1/readme.txt (modified) (1 diff)
-
tags/1.0.1/vendor/autoload.php (modified) (1 diff)
-
tags/1.0.1/vendor/composer/ClassLoader.php (modified) (5 diffs)
-
tags/1.0.1/vendor/composer/LICENSE (modified) (1 diff)
-
tags/1.0.1/vendor/composer/autoload_real.php (modified) (1 diff)
-
tags/1.0.1/wp-post-acl.php (modified) (1 diff)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/ClassLoader.php (modified) (5 diffs)
-
trunk/vendor/composer/LICENSE (modified) (1 diff)
-
trunk/vendor/composer/autoload_real.php (modified) (1 diff)
-
trunk/wp-post-acl.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-post-acl/tags/1.0.1/readme.txt
r1449978 r1708035 4 4 Donate link: https://github.com/anttiviljami 5 5 Requires at least: 4.2 6 Tested up to: 4. 4.46 Tested up to: 4.7.1 7 7 Stable tag: 1.0.1 8 8 License: GPLv3 -
wp-post-acl/tags/1.0.1/vendor/autoload.php
r1450040 r1708035 3 3 // autoload.php @generated by Composer 4 4 5 require_once __DIR__ . '/composer ' . '/autoload_real.php';5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 7 return ComposerAutoloaderInit69d5b30f64515316ac39a7f70f14623d::getLoader(); -
wp-post-acl/tags/1.0.1/vendor/composer/ClassLoader.php
r1450040 r1708035 54 54 private $useIncludePath = false; 55 55 private $classMap = array(); 56 57 56 private $classMapAuthoritative = false; 57 private $missingClasses = array(); 58 private $apcuPrefix; 58 59 59 60 public function getPrefixes() … … 273 274 274 275 /** 276 * APCu prefix to use to cache found/not-found classes, if the extension is enabled. 277 * 278 * @param string|null $apcuPrefix 279 */ 280 public function setApcuPrefix($apcuPrefix) 281 { 282 $this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null; 283 } 284 285 /** 286 * The APCu prefix in use, or null if APCu caching is not enabled. 287 * 288 * @return string|null 289 */ 290 public function getApcuPrefix() 291 { 292 return $this->apcuPrefix; 293 } 294 295 /** 275 296 * Registers this instance as an autoloader. 276 297 * … … 314 335 public function findFile($class) 315 336 { 316 // work around for PHP 5.3.0 - 5.3.2 https://bugs.php.net/50731317 if ('\\' == $class[0]) {318 $class = substr($class, 1);319 }320 321 337 // class map lookup 322 338 if (isset($this->classMap[$class])) { 323 339 return $this->classMap[$class]; 324 340 } 325 if ($this->classMapAuthoritative ) {341 if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) { 326 342 return false; 327 343 } 344 if (null !== $this->apcuPrefix) { 345 $file = apcu_fetch($this->apcuPrefix.$class, $hit); 346 if ($hit) { 347 return $file; 348 } 349 } 328 350 329 351 $file = $this->findFileWithExtension($class, '.php'); 330 352 331 353 // Search for Hack files if we are running on HHVM 332 if ( $file === null&& defined('HHVM_VERSION')) {354 if (false === $file && defined('HHVM_VERSION')) { 333 355 $file = $this->findFileWithExtension($class, '.hh'); 334 356 } 335 357 336 if ($file === null) { 358 if (null !== $this->apcuPrefix) { 359 apcu_add($this->apcuPrefix.$class, $file); 360 } 361 362 if (false === $file) { 337 363 // Remember that this class does not exist. 338 return $this->classMap[$class] = false;364 $this->missingClasses[$class] = true; 339 365 } 340 366 … … 349 375 $first = $class[0]; 350 376 if (isset($this->prefixLengthsPsr4[$first])) { 351 foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) { 352 if (0 === strpos($class, $prefix)) { 353 foreach ($this->prefixDirsPsr4[$prefix] as $dir) { 377 $subPath = $class; 378 while (false !== $lastPos = strrpos($subPath, '\\')) { 379 $subPath = substr($subPath, 0, $lastPos); 380 $search = $subPath.'\\'; 381 if (isset($this->prefixDirsPsr4[$search])) { 382 foreach ($this->prefixDirsPsr4[$search] as $dir) { 383 $length = $this->prefixLengthsPsr4[$first][$search]; 354 384 if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) { 355 385 return $file; … … 400 430 return $file; 401 431 } 432 433 return false; 402 434 } 403 435 } -
wp-post-acl/tags/1.0.1/vendor/composer/LICENSE
r1450040 r1708035 1 1 2 Copyright (c) 2016Nils Adermann, Jordi Boggiano2 Copyright (c) Nils Adermann, Jordi Boggiano 3 3 4 4 Permission is hereby granted, free of charge, to any person obtaining a copy -
wp-post-acl/tags/1.0.1/vendor/composer/autoload_real.php
r1450040 r1708035 24 24 spl_autoload_unregister(array('ComposerAutoloaderInit69d5b30f64515316ac39a7f70f14623d', 'loadClassLoader')); 25 25 26 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') ;26 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); 27 27 if ($useStaticLoader) { 28 28 require_once __DIR__ . '/autoload_static.php'; -
wp-post-acl/tags/1.0.1/wp-post-acl.php
r1449951 r1708035 15 15 */ 16 16 17 /** Copyright 201 6Antti Kuosmanen17 /** Copyright 2017 Antti Kuosmanen 18 18 19 19 This program is free software; you can redistribute it and/or modify -
wp-post-acl/trunk/readme.txt
r1449978 r1708035 4 4 Donate link: https://github.com/anttiviljami 5 5 Requires at least: 4.2 6 Tested up to: 4. 4.46 Tested up to: 4.7.1 7 7 Stable tag: 1.0.1 8 8 License: GPLv3 -
wp-post-acl/trunk/vendor/autoload.php
r1450040 r1708035 3 3 // autoload.php @generated by Composer 4 4 5 require_once __DIR__ . '/composer ' . '/autoload_real.php';5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 7 return ComposerAutoloaderInit69d5b30f64515316ac39a7f70f14623d::getLoader(); -
wp-post-acl/trunk/vendor/composer/ClassLoader.php
r1450040 r1708035 54 54 private $useIncludePath = false; 55 55 private $classMap = array(); 56 57 56 private $classMapAuthoritative = false; 57 private $missingClasses = array(); 58 private $apcuPrefix; 58 59 59 60 public function getPrefixes() … … 273 274 274 275 /** 276 * APCu prefix to use to cache found/not-found classes, if the extension is enabled. 277 * 278 * @param string|null $apcuPrefix 279 */ 280 public function setApcuPrefix($apcuPrefix) 281 { 282 $this->apcuPrefix = function_exists('apcu_fetch') && ini_get('apc.enabled') ? $apcuPrefix : null; 283 } 284 285 /** 286 * The APCu prefix in use, or null if APCu caching is not enabled. 287 * 288 * @return string|null 289 */ 290 public function getApcuPrefix() 291 { 292 return $this->apcuPrefix; 293 } 294 295 /** 275 296 * Registers this instance as an autoloader. 276 297 * … … 314 335 public function findFile($class) 315 336 { 316 // work around for PHP 5.3.0 - 5.3.2 https://bugs.php.net/50731317 if ('\\' == $class[0]) {318 $class = substr($class, 1);319 }320 321 337 // class map lookup 322 338 if (isset($this->classMap[$class])) { 323 339 return $this->classMap[$class]; 324 340 } 325 if ($this->classMapAuthoritative ) {341 if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) { 326 342 return false; 327 343 } 344 if (null !== $this->apcuPrefix) { 345 $file = apcu_fetch($this->apcuPrefix.$class, $hit); 346 if ($hit) { 347 return $file; 348 } 349 } 328 350 329 351 $file = $this->findFileWithExtension($class, '.php'); 330 352 331 353 // Search for Hack files if we are running on HHVM 332 if ( $file === null&& defined('HHVM_VERSION')) {354 if (false === $file && defined('HHVM_VERSION')) { 333 355 $file = $this->findFileWithExtension($class, '.hh'); 334 356 } 335 357 336 if ($file === null) { 358 if (null !== $this->apcuPrefix) { 359 apcu_add($this->apcuPrefix.$class, $file); 360 } 361 362 if (false === $file) { 337 363 // Remember that this class does not exist. 338 return $this->classMap[$class] = false;364 $this->missingClasses[$class] = true; 339 365 } 340 366 … … 349 375 $first = $class[0]; 350 376 if (isset($this->prefixLengthsPsr4[$first])) { 351 foreach ($this->prefixLengthsPsr4[$first] as $prefix => $length) { 352 if (0 === strpos($class, $prefix)) { 353 foreach ($this->prefixDirsPsr4[$prefix] as $dir) { 377 $subPath = $class; 378 while (false !== $lastPos = strrpos($subPath, '\\')) { 379 $subPath = substr($subPath, 0, $lastPos); 380 $search = $subPath.'\\'; 381 if (isset($this->prefixDirsPsr4[$search])) { 382 foreach ($this->prefixDirsPsr4[$search] as $dir) { 383 $length = $this->prefixLengthsPsr4[$first][$search]; 354 384 if (file_exists($file = $dir . DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $length))) { 355 385 return $file; … … 400 430 return $file; 401 431 } 432 433 return false; 402 434 } 403 435 } -
wp-post-acl/trunk/vendor/composer/LICENSE
r1450040 r1708035 1 1 2 Copyright (c) 2016Nils Adermann, Jordi Boggiano2 Copyright (c) Nils Adermann, Jordi Boggiano 3 3 4 4 Permission is hereby granted, free of charge, to any person obtaining a copy -
wp-post-acl/trunk/vendor/composer/autoload_real.php
r1450040 r1708035 24 24 spl_autoload_unregister(array('ComposerAutoloaderInit69d5b30f64515316ac39a7f70f14623d', 'loadClassLoader')); 25 25 26 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') ;26 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); 27 27 if ($useStaticLoader) { 28 28 require_once __DIR__ . '/autoload_static.php'; -
wp-post-acl/trunk/wp-post-acl.php
r1449951 r1708035 15 15 */ 16 16 17 /** Copyright 201 6Antti Kuosmanen17 /** Copyright 2017 Antti Kuosmanen 18 18 19 19 This program is free software; you can redistribute it and/or modify
Note: See TracChangeset
for help on using the changeset viewer.