mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-24 09:09:22 +00:00
Use class_exists() with FALSE second argument
This commit is contained in:
@@ -65,7 +65,7 @@ class PHPExcel_Autoloader
|
||||
* @param string $pClassName Name of the object to load
|
||||
*/
|
||||
public static function Load($pClassName){
|
||||
if ((class_exists($pClassName)) || (strpos($pClassName, 'PHPExcel') !== 0)) {
|
||||
if ((class_exists($pClassName,FALSE)) || (strpos($pClassName, 'PHPExcel') !== 0)) {
|
||||
// Either already loaded, or not a PHPExcel class request
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
* @package PHPExcel_CachedObjectStorage
|
||||
* @copyright Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
|
||||
*/
|
||||
class PHPExcel_CachedObjectStorage_CacheBase {
|
||||
abstract class PHPExcel_CachedObjectStorage_CacheBase {
|
||||
|
||||
/**
|
||||
* Parent worksheet
|
||||
|
||||
@@ -267,7 +267,7 @@ class PHPExcel_CachedObjectStorage_SQLite3 extends PHPExcel_CachedObjectStorage_
|
||||
* @return boolean
|
||||
*/
|
||||
public static function cacheMethodIsAvailable() {
|
||||
if (!class_exists('SQLite3')) {
|
||||
if (!class_exists('SQLite3',FALSE)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -236,7 +236,7 @@ class PHPExcel_Reader_Excel2007 implements PHPExcel_Reader_IReader
|
||||
}
|
||||
|
||||
// Check if zip class exists
|
||||
if (!class_exists('ZipArchive')) {
|
||||
if (!class_exists('ZipArchive',FALSE)) {
|
||||
throw new Exception("ZipArchive library is not enabled");
|
||||
}
|
||||
|
||||
|
||||
@@ -190,7 +190,7 @@ class PHPExcel_Reader_OOCalc implements PHPExcel_Reader_IReader
|
||||
}
|
||||
|
||||
// Check if zip class exists
|
||||
if (!class_exists('ZipArchive')) {
|
||||
if (!class_exists('ZipArchive',FALSE)) {
|
||||
throw new Exception("ZipArchive library is not enabled");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user