ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
PEAR Class Reference
+ Inheritance diagram for PEAR:
+ Collaboration diagram for PEAR:

Public Member Functions

 PEAR ($error_class=null)
 Constructor. More...
 
 _PEAR ()
 Destructor (the emulated type of...). More...
 
getStaticProperty ($class, $var)
 If you have a class that's mostly/entirely static, and you need static properties, you can use this method to simulate them. More...
 
 registerShutdownFunc ($func, $args=array())
 Use this function to register a shutdown method for static classes. More...
 
 isError ($data, $code=null)
 Tell whether a value is a PEAR error. More...
 
 setErrorHandling ($mode=null, $options=null)
 Sets how errors generated by this object should be handled. More...
 
 expectError ($code=' *')
 This method is used to tell which errors you expect to get. More...
 
 popExpect ()
 This method pops one element off the expected error codes stack. More...
 
 _checkDelExpect ($error_code)
 This method checks unsets an error code if available. More...
 
 delExpect ($error_code)
 This method deletes all occurences of the specified element from the expected error codes stack. More...
 
raiseError ($message=null, $code=null, $mode=null, $options=null, $userinfo=null, $error_class=null, $skipmsg=false)
 This method is a wrapper that returns an instance of the configured error class with this object's default error handling applied. More...
 
throwError ($message=null, $code=null, $userinfo=null)
 Simpler form of raiseError with fewer options. More...
 
 staticPushErrorHandling ($mode, $options=null)
 
 staticPopErrorHandling ()
 
 pushErrorHandling ($mode, $options=null)
 Push a new error handler on top of the error handler options stack. More...
 
 popErrorHandling ()
 Pop the last error handler used. More...
 
 loadExtension ($ext)
 OS independant PHP extension load. More...
 

Data Fields

 $_debug = false
 
 $_default_error_mode = null
 
 $_default_error_options = null
 
 $_default_error_handler = ''
 
 $_error_class = 'PEAR_Error'
 
 $_expected_errors = array()
 

Detailed Description

Definition at line 102 of file PEAR.php.

Member Function Documentation

◆ _checkDelExpect()

PEAR::_checkDelExpect (   $error_code)

This method checks unsets an error code if available.

Parameters
mixederror code
Returns
bool true if the error code was unset, false otherwise @access private
Since
PHP 4.3.0

Definition at line 425 of file PEAR.php.

426 {
427 $deleted = false;
428
429 foreach ($this->_expected_errors AS $key => $error_array) {
430 if (in_array($error_code, $error_array)) {
431 unset($this->_expected_errors[$key][array_search($error_code, $error_array)]);
432 $deleted = true;
433 }
434
435 // clean up empty arrays
436 if (0 == count($this->_expected_errors[$key])) {
437 unset($this->_expected_errors[$key]);
438 }
439 }
440 return $deleted;
441 }

Referenced by delExpect().

+ Here is the caller graph for this function:

◆ _PEAR()

PEAR::_PEAR ( )

Destructor (the emulated type of...).

Does nothing right now, but is included for forward compatibility, so subclass destructors should always call it.

See the note in the class desciption about output from destructors.

@access public

Returns
void

Definition at line 209 of file PEAR.php.

209 {
210 if ($this->_debug) {
211 printf("PEAR destructor called, class=%s\n", strtolower(get_class($this)));
212 }
213 }

◆ delExpect()

PEAR::delExpect (   $error_code)

This method deletes all occurences of the specified element from the expected error codes stack.

Parameters
mixed$error_codeerror code that should be deleted
Returns
mixed list of error codes that were deleted or error @access public
Since
PHP 4.3.0

Definition at line 455 of file PEAR.php.

456 {
457 $deleted = false;
458
459 if ((is_array($error_code) && (0 != count($error_code)))) {
460 // $error_code is a non-empty array here;
461 // we walk through it trying to unset all
462 // values
463 foreach($error_code as $key => $error) {
464 if ($this->_checkDelExpect($error)) {
465 $deleted = true;
466 } else {
467 $deleted = false;
468 }
469 }
470 return $deleted ? true : PEAR::raiseError("The expected error you submitted does not exist"); // IMPROVE ME
471 } elseif (!empty($error_code)) {
472 // $error_code comes alone, trying to unset it
473 if ($this->_checkDelExpect($error_code)) {
474 return true;
475 } else {
476 return PEAR::raiseError("The expected error you submitted does not exist"); // IMPROVE ME
477 }
478 } else {
479 // $error_code is empty
480 return PEAR::raiseError("The expected error you submitted is empty"); // IMPROVE ME
481 }
482 }
_checkDelExpect($error_code)
This method checks unsets an error code if available.
Definition: PEAR.php:425
& raiseError($message=null, $code=null, $mode=null, $options=null, $userinfo=null, $error_class=null, $skipmsg=false)
This method is a wrapper that returns an instance of the configured error class with this object's de...
Definition: PEAR.php:524

References _checkDelExpect(), and raiseError().

+ Here is the call graph for this function:

◆ expectError()

PEAR::expectError (   $code = '*')

This method is used to tell which errors you expect to get.

Expected errors are always returned with error mode PEAR_ERROR_RETURN. Expected error codes are stored in a stack, and this method pushes a new element onto it. The list of expected errors are in effect until they are popped off the stack with the popExpect() method.

Note that this method can not be called statically

Parameters
mixed$codea single error code or an array of error codes to expect
Returns
int the new depth of the "expected errors" stack @access public

Definition at line 390 of file PEAR.php.

391 {
392 if (is_array($code)) {
393 array_push($this->_expected_errors, $code);
394 } else {
395 array_push($this->_expected_errors, array($code));
396 }
397 return sizeof($this->_expected_errors);
398 }
$_expected_errors
Definition: PEAR.php:154
$code
Definition: example_050.php:99

References $_expected_errors, and $code.

Referenced by MDB2_Driver_mysql\nextID(), MDB2_Driver_mysqli\nextID(), MDB2_Driver_oci8\nextID(), and MDB2_Driver_pgsql\nextID().

+ Here is the caller graph for this function:

◆ getStaticProperty()

& PEAR::getStaticProperty (   $class,
  $var 
)

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 = &PEAR::getStaticProperty('myclass', 'myVar'); You MUST use a reference, or they will not persist!

@access public

Parameters
string$classThe calling classname, to prevent clashes
string$varThe variable to retrieve.
Returns
mixed A reference to the variable. If not set it will be auto initialised to NULL.

Definition at line 230 of file PEAR.php.

231 {
232 static $properties;
233 if (!isset($properties[$class])) {
234 $properties[$class] = array();
235 }
236 if (!array_key_exists($var, $properties[$class])) {
237 $properties[$class][$var] = null;
238 }
239 return $properties[$class][$var];
240 }

Referenced by _PEAR_call_destructors(), PEAR_Error\PEAR_Error(), and HTTP_Request\sendRequest().

+ Here is the caller graph for this function:

◆ isError()

PEAR::isError (   $data,
  $code = null 
)

Tell whether a value is a PEAR error.

Parameters
mixed$datathe value to test
int$codeif $data is an error object, return true only if $code is a string and $obj->getMessage() == $code or $code is an integer and $obj->getCode() == $code @access public
Returns
bool true if parameter is an error

Definition at line 279 of file PEAR.php.

280 {
281 if (is_a($data, 'PEAR_Error')) {
282 if (is_null($code)) {
283 return true;
284 } elseif (is_string($code)) {
285 return $data->getMessage() == $code;
286 } else {
287 return $data->getCode() == $code;
288 }
289 }
290 return false;
291 }
$data

References $code, and $data.

Referenced by MDB2_Driver_Common\__call(), ilBMFClient\__decodeResponse(), ilBMFClient\__generate(), MDB2_Driver_mysql\_affectedRows(), MDB2_Driver_mysqli\_affectedRows(), MDB2_Driver_oci8\_affectedRows(), MDB2_Driver_pgsql\_affectedRows(), MDB2_Driver_Datatype_Common\_baseConvertResult(), Spreadsheet_Excel_Writer_Parser\_condition(), Auth_Container_DB\_connect(), Auth_Container_MDB\_connect(), Auth_Container_MDB2\_connect(), Auth_Container_DBLite\_connect(), Spreadsheet_Excel_Writer_Parser\_convertRange2d(), Spreadsheet_Excel_Writer_Parser\_convertRange3d(), Spreadsheet_Excel_Writer_Parser\_convertRef2d(), Spreadsheet_Excel_Writer_Parser\_convertRef3d(), Log_mdb2\_createTable(), ilBMFBase\_decodeDIMEMessage(), MDB2_Driver_pgsql\_doConnect(), MDB2_Driver_oci8\_doConnect(), MDB2_Driver_Common\_doQuery(), MDB2_Driver_mysql\_doQuery(), MDB2_Driver_mysqli\_doQuery(), MDB2_Driver_oci8\_doQuery(), MDB2_Driver_pgsql\_doQuery(), MDB2_Statement_Common\_execute(), MDB2_Statement_mysql\_execute(), MDB2_Statement_mysqli\_execute(), MDB2_Statement_oci8\_execute(), MDB2_Statement_pgsql\_execute(), Spreadsheet_Excel_Writer_Parser\_expression(), Structures_BibTex\_extractAuthors(), MDB2_Driver_Manager_Common\_fixIndexName(), MDB2_Driver_Manager_Common\_fixSequenceName(), Spreadsheet_Excel_Writer_Parser\_func(), MDB2_Driver_Datatype_Common\_getBLOBDeclaration(), MDB2_Driver_Datatype_Common\_getCLOBDeclaration(), MDB2_Result_mysql\_getColumnNames(), MDB2_Result_mysqli\_getColumnNames(), MDB2_Result_oci8\_getColumnNames(), MDB2_Result_pgsql\_getColumnNames(), MDB2_Driver_Manager_Common\_getCreateTableQuery(), MDB2_Driver_Datatype_Common\_getDeclaration(), MDB2_Driver_Datatype_Common\_getDeclarationOptions(), MDB2_Driver_Datatype_Common\_getIntegerDeclaration(), MDB2_Driver_Datatype_mysql\_getIntegerDeclaration(), MDB2_Driver_Datatype_mysqli\_getIntegerDeclaration(), MDB2_Driver_Datatype_pgsql\_getIntegerDeclaration(), Auth_Container_File\_load(), MDB2_Driver_Manager_oci8\_makeAutoincrement(), MDB2_Driver_Datatype_Common\_mapNativeDatatype(), MDB2_Driver_Datatype_mysql\_mapNativeDatatype(), MDB2_Driver_Datatype_mysqli\_mapNativeDatatype(), MDB2_Driver_Datatype_oci8\_mapNativeDatatype(), MDB2_Driver_Datatype_pgsql\_mapNativeDatatype(), ilBMFTransport_HTTP\_parseResponse(), Auth_Container_DB\_prepare(), Auth_Container_DBLite\_prepare(), Auth_Container_LDAP\_prepare(), Log_mdb2\_prepareStatement(), MDB2_Driver_Datatype_pgsql\_quoteBLOB(), MDB2_Driver_Datatype_Common\_quoteDate(), MDB2_Driver_Datatype_Common\_quoteLOB(), MDB2_Driver_Datatype_Common\_quoteText(), MDB2_Driver_Datatype_Common\_quoteTime(), MDB2_Driver_Datatype_Common\_quoteTimestamp(), MDB2_Driver_Datatype_Common\_readFile(), MDB2_Driver_Datatype_oci8\_readLOB(), MDB2_Driver_Datatype_oci8\_retrieveLOB(), Spreadsheet_Excel_Writer_Workbook\_storeOLEFile(), Spreadsheet_Excel_Writer_Workbook\_storeWorkbook(), Spreadsheet_Excel_Writer_Parser\_term(), MDB2_Driver_Common\_wrapResult(), Auth_Container_File\addUser(), MDB2_Driver_Manager_Common\alterTable(), MDB2_Driver_Manager_mysql\alterTable(), MDB2_Driver_Manager_mysqli\alterTable(), MDB2_Driver_Manager_pgsql\alterTable(), Auth_OpenID_MDB2Store\Auth_OpenID_MDB2Store(), MDB2_Extended\autoExecute(), MDB2_Extended\autoPrepare(), MDB2_Driver_mysql\beginTransaction(), MDB2_Driver_mysqli\beginTransaction(), MDB2_Driver_pgsql\beginTransaction(), MDB2_Statement_Common\bindParamArray(), MDB2_Statement_Common\bindValueArray(), MDB2_Extended\buildManipSQL(), ilBMFClient\call(), Auth_Container_File\changePassword(), MDB2_Driver_Datatype_Common\checkResultTypes(), Log_mail\close(), Spreadsheet_Excel_Writer_Workbook\close(), MDB2_Driver_mysql\commit(), MDB2_Driver_mysqli\commit(), MDB2_Driver_oci8\commit(), MDB2_Driver_pgsql\commit(), MDB2_Driver_Common\compareDefinition(), MDB2_Driver_Datatype_Common\compareDefinition(), MDB2_Driver_Common\completeNestedTransaction(), MDB2\connect(), MDB2_Driver_mysql\connect(), MDB2_Driver_mysqli\connect(), MDB2_Driver_oci8\connect(), MDB2_Driver_pgsql\connect(), MDB2_Driver_Datatype_Common\convertResult(), MDB2_Driver_Datatype_Common\convertResultRow(), Auth_OpenID_MDB2Store\create_assoc_table(), Auth_OpenID_MDB2Store\create_nonce_table(), MDB2_Driver_Manager_Common\createConstraint(), MDB2_Driver_Manager_mysql\createConstraint(), MDB2_Driver_Manager_mysqli\createConstraint(), MDB2_Driver_Manager_Common\createDatabase(), MDB2_Driver_Manager_mysql\createDatabase(), MDB2_Driver_Manager_mysqli\createDatabase(), MDB2_Driver_Manager_oci8\createDatabase(), MDB2_Driver_Manager_pgsql\createDatabase(), MDB2_Driver_Manager_Common\createIndex(), MDB2_Driver_Manager_mysql\createIndex(), MDB2_Driver_Manager_mysqli\createIndex(), MDB2_Driver_Manager_Common\createSequence(), MDB2_Driver_Manager_pgsql\createSequence(), MDB2_Driver_Manager_mysql\createSequence(), MDB2_Driver_Manager_mysqli\createSequence(), MDB2_Driver_Manager_Common\createTable(), MDB2_Driver_Manager_mysql\createTable(), MDB2_Driver_Manager_mysqli\createTable(), MDB2_Iterator\current(), MDB2_Driver_Native_pgsql\deleteOID(), Console_Getopt\doGetopt(), MDB2_Driver_Manager_Common\dropConstraint(), MDB2_Driver_Manager_mysql\dropConstraint(), MDB2_Driver_Manager_mysqli\dropConstraint(), MDB2_Driver_Manager_Common\dropDatabase(), MDB2_Driver_Manager_mysql\dropDatabase(), MDB2_Driver_Manager_mysqli\dropDatabase(), MDB2_Driver_Manager_oci8\dropDatabase(), MDB2_Driver_Manager_pgsql\dropDatabase(), MDB2_Driver_Manager_Common\dropIndex(), MDB2_Driver_Manager_mysql\dropIndex(), MDB2_Driver_Manager_mysqli\dropIndex(), MDB2_Driver_Manager_Common\dropSequence(), MDB2_Driver_Manager_mysql\dropSequence(), MDB2_Driver_Manager_mysqli\dropSequence(), MDB2_Driver_Manager_pgsql\dropSequence(), MDB2_Driver_Manager_Common\dropTable(), HTML_Template_IT\errorMessage(), MDB2\errorMessage(), MDB2_Driver_mysql\escape(), MDB2_Driver_mysqli\escape(), MDB2_Driver_pgsql\escape(), MDB2_Driver_Common\exec(), MDB2_Extended\execParam(), MDB2_Statement_Common\execute(), MDB2_Extended\executeMultiple(), MDB2_Driver_Function_Common\executeStoredProc(), MDB2_Driver_Function_mysql\executeStoredProc(), MDB2_Driver_Function_mysqli\executeStoredProc(), MDB2_Driver_Function_oci8\executeStoredProc(), MDB2_Driver_Function_pgsql\executeStoredProc(), MDB2\factory(), MDB2_Result_Common\fetchAll(), MDB2_Result_Common\fetchCol(), ilAuthContainerMultiple\fetchData(), Auth_Container_Multiple\fetchData(), ilAuthContainerLDAP\fetchData(), Auth_Container_SOAP\fetchData(), Auth_Container_SOAP5\fetchData(), Auth_Container_RADIUS\fetchData(), Auth_Container_MDB\fetchData(), Auth_Container_MDB2\fetchData(), MDB2_Result_Common\fetchOne(), MDB2_Result_mysql\fetchRow(), MDB2_Result_mysqli\fetchRow(), MDB2_Result_oci8\fetchRow(), MDB2_BufferedResult_oci8\fetchRow(), MDB2_Result_pgsql\fetchRow(), MDB2_Statement_mysql\free(), MDB2_Statement_mysqli\free(), MDB2_Statement_pgsql\free(), ilBMFWSDL_Cache\get(), MDB2_Extended\getAfterID(), MDB2_Extended\getAll(), MDB2_Extended\getAssoc(), Auth_OpenID_MDB2Store\getAssociation(), MDB2_Extended\getBeforeID(), MDB2_Extended\getCol(), MDB2_Result_Common\getColumnNames(), MDB2_Driver_Common\getConnection(), MDB2_Driver_Common\getDeclaration(), MDB2_Driver_Datatype_Common\getDeclaration(), MDB2_Driver_Manager_Common\getFieldDeclarationList(), MDB2_Extended\getOne(), MDB2_Extended\getRow(), MDB2_Driver_Reverse_Common\getSequenceDefinition(), MDB2_Driver_Reverse_oci8\getSequenceDefinition(), MDB2_Driver_pgsql\getSequenceName(), MDB2_Driver_mysql\getServerVersion(), MDB2_Driver_mysqli\getServerVersion(), MDB2_Driver_oci8\getServerVersion(), MDB2_Driver_pgsql\getServerVersion(), Mail_smtp\getSMTPObject(), MDB2_Driver_Reverse_mysqli\getTableConstraintDefinition(), MDB2_Driver_Reverse_oci8\getTableConstraintDefinition(), MDB2_Driver_Reverse_pgsql\getTableConstraintDefinition(), MDB2_Driver_Reverse_Common\getTableConstraintDefinition(), MDB2_Driver_Reverse_mysql\getTableConstraintDefinition(), MDB2_Driver_Reverse_Common\getTableFieldDefinition(), MDB2_Driver_Reverse_mysql\getTableFieldDefinition(), MDB2_Driver_Reverse_mysqli\getTableFieldDefinition(), MDB2_Driver_Reverse_oci8\getTableFieldDefinition(), MDB2_Driver_Reverse_pgsql\getTableFieldDefinition(), MDB2_Driver_Reverse_mysql\getTableIndexDefinition(), MDB2_Driver_Reverse_Common\getTableIndexDefinition(), MDB2_Driver_Reverse_mysqli\getTableIndexDefinition(), MDB2_Driver_Reverse_oci8\getTableIndexDefinition(), MDB2_Driver_Reverse_pgsql\getTableIndexDefinition(), MDB2_Driver_Reverse_Common\getTriggerDefinition(), MDB2_Driver_Reverse_mysql\getTriggerDefinition(), MDB2_Driver_Reverse_mysqli\getTriggerDefinition(), MDB2_Driver_Reverse_oci8\getTriggerDefinition(), MDB2_Driver_Reverse_pgsql\getTriggerDefinition(), MDB2_Driver_Datatype_Common\getTypeDeclaration(), MDB2_Driver_Datatype_mysql\getTypeDeclaration(), MDB2_Driver_Datatype_mysqli\getTypeDeclaration(), MDB2_Driver_Datatype_oci8\getTypeDeclaration(), MDB2_Driver_Datatype_pgsql\getTypeDeclaration(), MDB2_Driver_Datatype_Common\getValidTypes(), MDB2_Driver_Function_Common\guid(), ilBMFWSDL\ilBMFWSDL(), Services_JSON\isError(), Auth_OpenID_SQLStore\isError(), MDB2_Extended\limitQuery(), MDB2_Driver_Manager_Common\listDatabases(), MDB2_Driver_Manager_mysql\listDatabases(), MDB2_Driver_Manager_mysqli\listDatabases(), MDB2_Driver_Manager_pgsql\listDatabases(), MDB2_Driver_Manager_Common\listFunctions(), MDB2_Driver_Manager_mysql\listFunctions(), MDB2_Driver_Manager_mysqli\listFunctions(), MDB2_Driver_Manager_pgsql\listFunctions(), MDB2_Driver_Manager_Common\listSequences(), MDB2_Driver_Manager_mysql\listSequences(), MDB2_Driver_Manager_mysqli\listSequences(), MDB2_Driver_Manager_pgsql\listSequences(), MDB2_Driver_Manager_Common\listTableConstraints(), MDB2_Driver_Manager_mysql\listTableConstraints(), MDB2_Driver_Manager_mysqli\listTableConstraints(), MDB2_Driver_Manager_pgsql\listTableConstraints(), MDB2_Driver_Manager_Common\listTableFields(), MDB2_Driver_Manager_mysql\listTableFields(), MDB2_Driver_Manager_mysqli\listTableFields(), MDB2_Driver_Manager_pgsql\listTableFields(), MDB2_Driver_Manager_Common\listTableIndexes(), MDB2_Driver_Manager_mysql\listTableIndexes(), MDB2_Driver_Manager_mysqli\listTableIndexes(), MDB2_Driver_Manager_pgsql\listTableIndexes(), MDB2_Driver_Manager_Common\listTables(), MDB2_Driver_Manager_mysql\listTables(), MDB2_Driver_Manager_mysqli\listTables(), MDB2_Driver_Manager_pgsql\listTables(), MDB2_Driver_Manager_Common\listTableTriggers(), MDB2_Driver_Manager_mysql\listTableTriggers(), MDB2_Driver_Manager_mysqli\listTableTriggers(), MDB2_Driver_Manager_pgsql\listTableTriggers(), MDB2_Driver_Manager_Common\listTableViews(), MDB2_Driver_Manager_pgsql\listTableViews(), Auth_Container_File\listUsers(), MDB2_Driver_Manager_Common\listUsers(), MDB2_Driver_Manager_mysql\listUsers(), MDB2_Driver_Manager_mysqli\listUsers(), MDB2_Driver_Manager_pgsql\listUsers(), MDB2_Driver_Manager_Common\listViews(), MDB2_Driver_Manager_mysql\listViews(), MDB2_Driver_Manager_mysqli\listViews(), MDB2_Driver_Manager_pgsql\listViews(), MDB2_Driver_Common\loadModule(), ilDAVLocks\lockWithoutCheckingObj(), Log_mdb2\log(), MDB2_Driver_Datatype_Common\mapNativeDatatype(), MDB2_Driver_Datatype_Common\mapPrepareDatatype(), MDB2_Driver_Datatype_mysqli\mapPrepareDatatype(), MDB2_Driver_Datatype_pgsql\mapPrepareDatatype(), MDB2_Driver_Datatype_Common\matchPattern(), MDB2_Driver_Datatype_mysql\matchPattern(), MDB2_Driver_Datatype_mysqli\matchPattern(), MDB2_Driver_Datatype_pgsql\matchPattern(), System\mkDir(), System\mktemp(), MDB2_Driver_mysql\nextID(), MDB2_Driver_mysqli\nextID(), MDB2_Driver_oci8\nextID(), MDB2_Driver_pgsql\nextID(), MDB2_Result_mysqli\nextResult(), MDB2_BufferedResult_mysqli\nextResult(), MDB2_Result_pgsql\nextResult(), Log_mdb2\open(), Spreadsheet_Excel_Writer_Parser\parse(), ilBMFWSDL_Parser\parse(), MDB2_Driver_Datatype_oci8\patternEscapeString(), MDB2_Driver_Datatype_pgsql\patternEscapeString(), MDB2_Driver_Common\prepare(), MDB2_Driver_mysql\prepare(), MDB2_Driver_mysqli\prepare(), MDB2_Driver_oci8\prepare(), MDB2_Driver_pgsql\prepare(), HTTP_Response\process(), MDB2_Driver_Common\query(), MDB2_Driver_Common\quote(), MDB2_Driver_Datatype_Common\quote(), MDB2_Driver_Common\raiseError(), System\raiseError(), Auth_OpenID_MDB2Store\removeAssociation(), Auth_Container_File\removeUser(), MDB2_Driver_Common\replace(), MDB2_Driver_mysql\replace(), MDB2_Driver_mysqli\replace(), System\rm(), MDB2_Driver_mysql\rollback(), MDB2_Driver_mysqli\rollback(), MDB2_Driver_oci8\rollback(), MDB2_Driver_pgsql\rollback(), ilObjTest\saveToDb(), ilBMFTransport_SMTP\send(), Mail_smtp\send(), HTTP_Request\sendRequest(), MDB2_Driver_mysql\setCharset(), MDB2_Driver_mysqli\setCharset(), MDB2_Driver_pgsql\setCharset(), Spreadsheet_Excel_Writer_Validator\setFormula1(), Spreadsheet_Excel_Writer_Validator\setFormula2(), HTML_Template_IT\setOptions(), MDB2\setOptions(), MDB2_Result_Common\setResultTypes(), SOAP_Attachment\SOAP_Attachment(), MDB2_Driver_oci8\standaloneExec(), MDB2_Driver_Common\standaloneQuery(), MDB2_Driver_oci8\standaloneQuery(), MDB2_Driver_pgsql\standaloneQuery(), Auth_OpenID_MDB2Store\storeAssociation(), Structures_BibTex\Structures_BibTex(), MDB2_Driver_Common\subSelect(), Auth_OpenID_MDB2Store\tableExists(), MDB2_Driver_Reverse_Common\tableInfo(), MDB2_Driver_Reverse_mysql\tableInfo(), MDB2_Driver_Reverse_mysqli\tableInfo(), MDB2_Driver_Reverse_oci8\tableInfo(), MDB2_Driver_Reverse_pgsql\tableInfo(), BibTexTest\testCaseErrorEmptyString(), BibTexTest\testCaseErrorNonString(), BibTexTest\testLoadFileFileDoesNotExists(), BibTexTest\testWrongBraces3(), Spreadsheet_Excel_Writer_Parser\toReversePolish(), Auth_OpenID_MDB2Store\useNonce(), MDB2_BufferedResult_mysql\valid(), MDB2_BufferedResult_mysqli\valid(), MDB2_BufferedResult_pgsql\valid(), Spreadsheet_Excel_Writer_Worksheet\writeFormula(), MDB2_Driver_Datatype_Common\writeLOBToFile(), and MDB2_Driver_Datatype_oci8\writeLOBToFile().

+ Here is the caller graph for this function:

◆ loadExtension()

PEAR::loadExtension (   $ext)

OS independant PHP extension load.

Remember to take care on the correct extension name for case sensitive OSes.

Parameters
string$extThe extension name
Returns
bool Success or not on the dl() call

Definition at line 745 of file PEAR.php.

746 {
747 if (!extension_loaded($ext)) {
748 // if either returns true dl() will produce a FATAL error, stop that
749 if ((ini_get('enable_dl') != 1) || (ini_get('safe_mode') == 1)) {
750 return false;
751 }
752 if (OS_WINDOWS) {
753 $suffix = '.dll';
754 } elseif (PHP_OS == 'HP-UX') {
755 $suffix = '.sl';
756 } elseif (PHP_OS == 'AIX') {
757 $suffix = '.a';
758 } elseif (PHP_OS == 'OSX') {
759 $suffix = '.bundle';
760 } else {
761 $suffix = '.so';
762 }
763 return @dl('php_'.$ext.$suffix) || @dl($ext.$suffix);
764 }
765 return true;
766 }

Referenced by MDB2_Driver_oci8\_doConnect(), Auth_Container_SAP\Auth_Container_SAP(), MDB2_Driver_mysql\connect(), MDB2_Driver_mysqli\connect(), and MDB2_Driver_pgsql\connect().

+ Here is the caller graph for this function:

◆ PEAR()

PEAR::PEAR (   $error_class = null)

Constructor.

Registers this object in $_PEAR_destructor_object_list for destructor emulation if a destructor object exists.

Parameters
string$error_class(optional) which class to use for error objects, defaults to PEAR_Error. @access public
Returns
void

Definition at line 170 of file PEAR.php.

171 {
172 $classname = strtolower(get_class($this));
173 if ($this->_debug) {
174 print "PEAR constructor called, class=$classname\n";
175 }
176 if ($error_class !== null) {
177 $this->_error_class = $error_class;
178 }
179 while ($classname && strcasecmp($classname, "pear")) {
180 $destructor = "_$classname";
181 if (method_exists($this, $destructor)) {
182 global $_PEAR_destructor_object_list;
183 $_PEAR_destructor_object_list[] = &$this;
184 if (!isset($GLOBALS['_PEAR_SHUTDOWN_REGISTERED'])) {
185 register_shutdown_function("_PEAR_call_destructors");
186 $GLOBALS['_PEAR_SHUTDOWN_REGISTERED'] = true;
187 }
188 break;
189 } else {
190 $classname = get_parent_class($classname);
191 }
192 }
193 }
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
if(! $in) print

References $GLOBALS, and print.

Referenced by Auth_RADIUS\Auth_RADIUS(), ilErrorHandling\ilErrorHandling(), ilSetup\ilSetup(), and ilValidator\ilValidator().

+ Here is the caller graph for this function:

◆ popErrorHandling()

PEAR::popErrorHandling ( )

Pop the last error handler used.

Returns
bool Always true
See also
PEAR::pushErrorHandling

Definition at line 721 of file PEAR.php.

722 {
723 $stack = &$GLOBALS['_PEAR_error_handler_stack'];
724 array_pop($stack);
725 list($mode, $options) = $stack[sizeof($stack) - 1];
726 array_pop($stack);
727 if (isset($this) && is_a($this, 'PEAR')) {
728 $this->setErrorHandling($mode, $options);
729 } else {
731 }
732 return true;
733 }
setErrorHandling($mode=null, $options=null)
Sets how errors generated by this object should be handled.
Definition: PEAR.php:335
if(!is_array($argv)) $options

References $GLOBALS, $options, and setErrorHandling().

+ Here is the call graph for this function:

◆ popExpect()

PEAR::popExpect ( )

This method pops one element off the expected error codes stack.

Returns
array the list of error codes that were popped

Definition at line 409 of file PEAR.php.

410 {
411 return array_pop($this->_expected_errors);
412 }

Referenced by MDB2_Driver_mysql\nextID(), MDB2_Driver_mysqli\nextID(), MDB2_Driver_oci8\nextID(), and MDB2_Driver_pgsql\nextID().

+ Here is the caller graph for this function:

◆ pushErrorHandling()

PEAR::pushErrorHandling (   $mode,
  $options = null 
)

Push a new error handler on top of the error handler options stack.

With this you can easily override the actual error handler for some code and restore it later with popErrorHandling.

Parameters
mixed$mode(same as setErrorHandling)
mixed$options(same as setErrorHandling)
Returns
bool Always true
See also
PEAR::setErrorHandling

Definition at line 690 of file PEAR.php.

691 {
692 $stack = &$GLOBALS['_PEAR_error_handler_stack'];
693 if (isset($this) && is_a($this, 'PEAR')) {
694 $def_mode = &$this->_default_error_mode;
695 $def_options = &$this->_default_error_options;
696 } else {
697 $def_mode = &$GLOBALS['_PEAR_default_error_mode'];
698 $def_options = &$GLOBALS['_PEAR_default_error_options'];
699 }
700 $stack[] = array($def_mode, $def_options);
701
702 if (isset($this) && is_a($this, 'PEAR')) {
703 $this->setErrorHandling($mode, $options);
704 } else {
706 }
707 $stack[] = array($mode, $options);
708 return true;
709 }
$_default_error_mode
Definition: PEAR.php:120
$_default_error_options
Definition: PEAR.php:129

References $_default_error_mode, $_default_error_options, $GLOBALS, $options, and setErrorHandling().

+ Here is the call graph for this function:

◆ raiseError()

& PEAR::raiseError (   $message = null,
  $code = null,
  $mode = null,
  $options = null,
  $userinfo = null,
  $error_class = null,
  $skipmsg = false 
)

This method is a wrapper that returns an instance of the configured error class with this object's default error handling applied.

If the $mode and $options parameters are not specified, the object's defaults are used.

Parameters
mixed$messagea text error message or a PEAR error object
int$codea numeric error code (it is up to your class to define these if you want to use codes)
int$modeOne of PEAR_ERROR_RETURN, PEAR_ERROR_PRINT, PEAR_ERROR_TRIGGER, PEAR_ERROR_DIE, PEAR_ERROR_CALLBACK, PEAR_ERROR_EXCEPTION.
mixed$optionsIf $mode is PEAR_ERROR_TRIGGER, this parameter specifies the PHP-internal error level (one of E_USER_NOTICE, E_USER_WARNING or E_USER_ERROR). If $mode is PEAR_ERROR_CALLBACK, this parameter specifies the callback function or method. In other error modes this parameter is ignored.
string$userinfoIf you need to pass along for example debug information, this parameter is meant for that.
string$error_classThe returned error object will be instantiated from this class, if specified.
bool$skipmsgIf true, raiseError will only pass error codes, the error message parameter will be dropped.

@access public

Returns
object a PEAR error object
See also
PEAR::setErrorHandling
Since
PHP 4.0.5

Definition at line 524 of file PEAR.php.

531 {
532 // The error is yet a PEAR error object
533 if (is_object($message)) {
534 $code = $message->getCode();
535 $userinfo = $message->getUserInfo();
536 $error_class = $message->getType();
537 $message->error_message_prefix = '';
538 $message = $message->getMessage();
539 }
540
541 if (isset($this) && isset($this->_expected_errors) && sizeof($this->_expected_errors) > 0 && sizeof($exp = end($this->_expected_errors))) {
542 if ($exp[0] == "*" ||
543 (is_int(reset($exp)) && in_array($code, $exp)) ||
544 (is_string(reset($exp)) && in_array($message, $exp))) {
545 $mode = PEAR_ERROR_RETURN;
546 }
547 }
548 // No mode given, try global ones
549 if ($mode === null) {
550 // Class error handler
551 if (isset($this) && isset($this->_default_error_mode)) {
554 // Global error handler
555 } elseif (isset($GLOBALS['_PEAR_default_error_mode'])) {
556 $mode = $GLOBALS['_PEAR_default_error_mode'];
557 $options = $GLOBALS['_PEAR_default_error_options'];
558 }
559 }
560
561 if ($error_class !== null) {
562 $ec = $error_class;
563 } elseif (isset($this) && isset($this->_error_class)) {
565 } else {
566 $ec = 'PEAR_Error';
567 }
568 if (intval(PHP_VERSION) < 5) {
569 // little non-eval hack to fix bug #12147
570 include 'PEAR/FixPHP5PEARWarnings.php';
571 return $a;
572 }
573 if ($skipmsg) {
574 $a = new $ec($code, $mode, $options, $userinfo);
575 } else {
576 $a = new $ec($message, $code, $mode, $options, $userinfo);
577 }
578 return $a;
579 }
const PEAR_ERROR_RETURN
#+ ERROR constants
Definition: PEAR.php:31
$_error_class
Definition: PEAR.php:146

References $_default_error_mode, $_default_error_options, $_error_class, $code, $GLOBALS, $options, and PEAR_ERROR_RETURN.

Referenced by Spreadsheet_Excel_Writer_Parser\_cellToPackedRowcol(), Auth_Container_IMAP\_checkServer(), Auth_Container_KADM5\_checkServer(), Auth_Container_DB\_connect(), Auth_Container_MDB\_connect(), Auth_Container_MDB2\_connect(), Auth_Container_DBLite\_connect(), Auth_Container_LDAP\_connect(), Spreadsheet_Excel_Writer_Parser\_convert(), Spreadsheet_Excel_Writer_Parser\_convertRange2d(), Spreadsheet_Excel_Writer_Parser\_convertRange3d(), Spreadsheet_Excel_Writer_Parser\_convertRef2d(), Spreadsheet_Excel_Writer_Parser\_convertRef3d(), Spreadsheet_Excel_Writer_Parser\_convertString(), HTTP_Response\_decodeGzip(), Structures_BibTex\_determineCase(), Spreadsheet_Excel_Writer_Parser\_fact(), SOAP_Attachment\_file2str(), Spreadsheet_Excel_Writer_Parser\_func(), Auth_Container_LDAP\_getBaseDN(), Spreadsheet_Excel_Writer_Parser\_getRefIndex(), Spreadsheet_Excel_Writer_Parser\_packExtRef(), Console_Getopt\_parseLongOption(), Console_Getopt\_parseShortOption(), Mail_smtpmx\_raiseError(), Spreadsheet_Excel_Writer_Parser\_rangeToPackedRange(), Spreadsheet_Excel_Writer_BIFFwriter\_setByteOrder(), Spreadsheet_Excel_Writer_Workbook\_storeOLEFile(), Spreadsheet_Excel_Writer_Workbook\_storeWorkbook(), Spreadsheet_Excel_Writer_Worksheet\_substituteCellref(), Auth_Container_SOAP5\_validateOptions(), HTTP_Request\addFile(), Auth_Container_DB\addUser(), Auth_Container_MDB\addUser(), Auth_Container_MDB2\addUser(), Spreadsheet_Excel_Writer_Workbook\addWorksheet(), Auth_HTTP\assignData(), Auth_Container_Array\Auth_Container_Array(), Auth_Container_DB\Auth_Container_DB(), Auth_Container_DBLite\Auth_Container_DBLite(), Auth_Container_IMAP\Auth_Container_IMAP(), Auth_Container_KADM5\Auth_Container_KADM5(), Auth_Container_LDAP\Auth_Container_LDAP(), Auth_Container_MDB\Auth_Container_MDB(), Auth_Container_MDB2\Auth_Container_MDB2(), Auth_Container_Multiple\Auth_Container_Multiple(), Auth_Container_Pear\Auth_Container_Pear(), Auth_Container_RADIUS\Auth_Container_RADIUS(), Auth_Container_SAP\Auth_Container_SAP(), Auth_Container_SMBPasswd\Auth_Container_SMBPasswd(), Auth_Container_vpopmail\Auth_Container_vpopmail(), Auth_Container_DB\changePassword(), Auth_Container_MDB\changePassword(), Auth_Container_MDB2\changePassword(), Auth_Container_LDAP\checkGroup(), Spreadsheet_Excel_Writer_Workbook\close(), Net_Socket\connect(), delExpect(), Net_Socket\disconnect(), Net_Socket\enableCrypto(), Mail\factory(), Auth_Container_DBLite\fetchData(), Auth_Container_LDAP\fetchData(), Auth_Container_Vpopmaild\fetchData(), Auth_Container_Pear\fetchData(), Auth_Container_SAP\fetchData(), Auth_Container_SOAP5\fetchData(), Auth_Container_DB\fetchData(), Auth_Container_MDB\fetchData(), Auth_Container_MDB2\fetchData(), HTML_Template_IT\findBlocks(), HTML_Template_IT\get(), HTML_Template_IT\getFile(), Net_Socket\gets(), Mail_smtp\getSMTPObject(), Net_Socket\getStatus(), OLE_PPS_File\init(), Auth_Container_DB\listUsers(), Auth_Container_MDB\listUsers(), Auth_Container_MDB2\listUsers(), Structures_BibTex\loadFile(), Auth_HTTP\login(), HTML_Template_IT\parse(), Structures_BibTex\parse(), Mail_RFC822\parseAddressList(), HTTP_Response\process(), MDB2\raiseError(), MDB2_Driver_Common\raiseError(), XML_Util\raiseError(), ilDB\raisePearError(), OLE\read(), Net_Socket\read(), Net_Socket\readAll(), Net_Socket\readByte(), Net_Socket\readInt(), Net_Socket\readIPAddress(), Net_Socket\readLine(), Console_Getopt\readPHPArgv(), Net_Socket\readString(), Net_Socket\readWord(), Auth_Container_DB\removeUser(), Auth_Container_MDB\removeUser(), Auth_Container_MDB2\removeUser(), OLE_PPS_Root\save(), Net_Socket\select(), Mail\send(), Mail_mail\send(), Mail_sendmail\send(), Mail_smtp\send(), Mail_smtpmx\send(), Auth_RADIUS\send(), HTTP_Request\sendRequest(), Net_Socket\setBlocking(), HTML_Template_IT\setCurrentBlock(), Spreadsheet_Excel_Writer_Workbook\setCustomColor(), Spreadsheet_Excel_Writer_Worksheet\setInputEncoding(), Structures_BibTex\setOption(), HTML_Template_IT\setOption(), Spreadsheet_Excel_Writer_Worksheet\setPrintScale(), Spreadsheet_Excel_Writer_Format\setTextRotation(), Net_Socket\setTimeout(), Net_Socket\setWriteBuffer(), Spreadsheet_Excel_Writer_Worksheet\setZoom(), SOAP_Attachment\SOAP_Attachment(), throwError(), HTML_Template_IT\touchBlock(), ilSetup\updateNewClient(), Net_Socket\write(), and Net_Socket\writeLine().

+ Here is the caller graph for this function:

◆ registerShutdownFunc()

PEAR::registerShutdownFunc (   $func,
  $args = array() 
)

Use this function to register a shutdown method for static classes.

@access public

Parameters
mixed$funcThe function name (or array of class/method) to call
mixed$argsThe arguments to pass to the function
Returns
void

Definition at line 254 of file PEAR.php.

255 {
256 // if we are called statically, there is a potential
257 // that no shutdown func is registered. Bug #6445
258 if (!isset($GLOBALS['_PEAR_SHUTDOWN_REGISTERED'])) {
259 register_shutdown_function("_PEAR_call_destructors");
260 $GLOBALS['_PEAR_SHUTDOWN_REGISTERED'] = true;
261 }
262 $GLOBALS['_PEAR_shutdown_funcs'][] = array($func, $args);
263 }

References $GLOBALS.

Referenced by System\mktemp().

+ Here is the caller graph for this function:

◆ setErrorHandling()

PEAR::setErrorHandling (   $mode = null,
  $options = null 
)

Sets how errors generated by this object should be handled.

Can be invoked both in objects and statically. If called statically, setErrorHandling sets the default behaviour for all PEAR objects. If called in an object, setErrorHandling sets the default behaviour for that object.

Parameters
int$modeOne of PEAR_ERROR_RETURN, PEAR_ERROR_PRINT, PEAR_ERROR_TRIGGER, PEAR_ERROR_DIE, PEAR_ERROR_CALLBACK or PEAR_ERROR_EXCEPTION.
mixed$optionsWhen $mode is PEAR_ERROR_TRIGGER, this is the error level (one of E_USER_NOTICE, E_USER_WARNING or E_USER_ERROR).

When $mode is PEAR_ERROR_CALLBACK, this parameter is expected to be the callback function or method. A callback function is a string with the name of the function, a callback method is an array of two elements: the element at index 0 is the object, and the element at index 1 is the name of the method to call in the object.

When $mode is PEAR_ERROR_PRINT or PEAR_ERROR_DIE, this is a printf format string used when printing the error message.

@access public

Returns
void
See also
PEAR_ERROR_RETURN
PEAR_ERROR_PRINT
PEAR_ERROR_TRIGGER
PEAR_ERROR_DIE
PEAR_ERROR_CALLBACK
PEAR_ERROR_EXCEPTION
Since
PHP 4.0.5

Definition at line 335 of file PEAR.php.

336 {
337 if (isset($this) && is_a($this, 'PEAR')) {
338 $setmode = &$this->_default_error_mode;
339 $setoptions = &$this->_default_error_options;
340 } else {
341 $setmode = &$GLOBALS['_PEAR_default_error_mode'];
342 $setoptions = &$GLOBALS['_PEAR_default_error_options'];
343 }
344
345 switch ($mode) {
348 case PEAR_ERROR_PRINT:
350 case PEAR_ERROR_DIE:
351 case null:
352 $setmode = $mode;
353 $setoptions = $options;
354 break;
355
357 $setmode = $mode;
358 // class/object method callback
359 if (is_callable($options)) {
360 $setoptions = $options;
361 } else {
362 trigger_error("invalid error callback", E_USER_WARNING);
363 }
364 break;
365
366 default:
367 trigger_error("invalid error mode", E_USER_WARNING);
368 break;
369 }
370 }
const PEAR_ERROR_PRINT
Definition: PEAR.php:32
const PEAR_ERROR_TRIGGER
Definition: PEAR.php:33
const PEAR_ERROR_EXCEPTION
WARNING: obsolete.
Definition: PEAR.php:40
const PEAR_ERROR_CALLBACK
Definition: PEAR.php:35
const PEAR_ERROR_DIE
Definition: PEAR.php:34

References $_default_error_mode, $_default_error_options, $GLOBALS, $options, PEAR_ERROR_CALLBACK, PEAR_ERROR_DIE, PEAR_ERROR_EXCEPTION, PEAR_ERROR_PRINT, PEAR_ERROR_RETURN, and PEAR_ERROR_TRIGGER.

Referenced by ilDB\connect(), ilDB\connectHost(), ilSetup\ilSetup(), ilValidator\ilValidator(), ilInitialisation\initCore(), ilUtil\is_email(), popErrorHandling(), and pushErrorHandling().

+ Here is the caller graph for this function:

◆ staticPopErrorHandling()

PEAR::staticPopErrorHandling ( )

Definition at line 640 of file PEAR.php.

641 {
642 $stack = &$GLOBALS['_PEAR_error_handler_stack'];
643 $setmode = &$GLOBALS['_PEAR_default_error_mode'];
644 $setoptions = &$GLOBALS['_PEAR_default_error_options'];
645 array_pop($stack);
646 list($mode, $options) = $stack[sizeof($stack) - 1];
647 array_pop($stack);
648 switch ($mode) {
651 case PEAR_ERROR_PRINT:
653 case PEAR_ERROR_DIE:
654 case null:
655 $setmode = $mode;
656 $setoptions = $options;
657 break;
658
660 $setmode = $mode;
661 // class/object method callback
662 if (is_callable($options)) {
663 $setoptions = $options;
664 } else {
665 trigger_error("invalid error callback", E_USER_WARNING);
666 }
667 break;
668
669 default:
670 trigger_error("invalid error mode", E_USER_WARNING);
671 break;
672 }
673 return true;
674 }

References $GLOBALS, $options, PEAR_ERROR_CALLBACK, PEAR_ERROR_DIE, PEAR_ERROR_EXCEPTION, PEAR_ERROR_PRINT, PEAR_ERROR_RETURN, and PEAR_ERROR_TRIGGER.

◆ staticPushErrorHandling()

PEAR::staticPushErrorHandling (   $mode,
  $options = null 
)

Definition at line 605 of file PEAR.php.

606 {
607 $stack = &$GLOBALS['_PEAR_error_handler_stack'];
608 $def_mode = &$GLOBALS['_PEAR_default_error_mode'];
609 $def_options = &$GLOBALS['_PEAR_default_error_options'];
610 $stack[] = array($def_mode, $def_options);
611 switch ($mode) {
614 case PEAR_ERROR_PRINT:
616 case PEAR_ERROR_DIE:
617 case null:
618 $def_mode = $mode;
619 $def_options = $options;
620 break;
621
623 $def_mode = $mode;
624 // class/object method callback
625 if (is_callable($options)) {
626 $def_options = $options;
627 } else {
628 trigger_error("invalid error callback", E_USER_WARNING);
629 }
630 break;
631
632 default:
633 trigger_error("invalid error mode", E_USER_WARNING);
634 break;
635 }
636 $stack[] = array($mode, $options);
637 return true;
638 }

References $GLOBALS, $options, PEAR_ERROR_CALLBACK, PEAR_ERROR_DIE, PEAR_ERROR_EXCEPTION, PEAR_ERROR_PRINT, PEAR_ERROR_RETURN, and PEAR_ERROR_TRIGGER.

◆ throwError()

& PEAR::throwError (   $message = null,
  $code = null,
  $userinfo = null 
)

Simpler form of raiseError with fewer options.

In most cases message, code and userinfo are enough.

Parameters
string$message

Definition at line 591 of file PEAR.php.

594 {
595 if (isset($this) && is_a($this, 'PEAR')) {
596 $a = &$this->raiseError($message, $code, null, null, $userinfo);
597 return $a;
598 } else {
599 $a = &PEAR::raiseError($message, $code, null, null, $userinfo);
600 return $a;
601 }
602 }

References $code, and raiseError().

Referenced by Auth\Auth(), ilValidator\isModeEnabled(), ilValidator\purgeObjects(), ilValidator\removeInvalidChilds(), ilValidator\removeInvalidReferences(), ilValidator\removeInvalidRolefolders(), ilValidator\restoreDeletedObjects(), ilValidator\restoreMissingObjects(), ilValidator\restoreReference(), ilValidator\restoreSubTrees(), ilValidator\restoreTrash(), ilValidator\restoreUnboundObjects(), and ilValidator\setMode().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $_debug

PEAR::$_debug = false

Definition at line 112 of file PEAR.php.

◆ $_default_error_handler

PEAR::$_default_error_handler = ''

Definition at line 138 of file PEAR.php.

◆ $_default_error_mode

PEAR::$_default_error_mode = null

◆ $_default_error_options

PEAR::$_default_error_options = null

◆ $_error_class

PEAR::$_error_class = 'PEAR_Error'

Definition at line 146 of file PEAR.php.

Referenced by raiseError().

◆ $_expected_errors

PEAR::$_expected_errors = array()

Definition at line 154 of file PEAR.php.

Referenced by expectError().


The documentation for this class was generated from the following file: