Autoloading Classes

Examples: Autoload example Note: Prior to PHP 5.3, exceptions thrown in the __autoload() function could not be caught in the catch block and would result in a fatal error. From PHP 5.3 and upwards, this is possible provided that if a custom exception is thrown, then the custom exception class is available. The __autoload() function may be used recursively to autoload the custom exception class. Note: Autoloading is not available if using PHP in CLI interactive m

ssh2_sftp_lstat

(PECL ssh2 >= 0.9.0) Stat a symbolic link array ssh2_sftp_lstat ( resource $sftp, string $path ) Stats a symbolic link on the remote filesystem without following the link. This function is similar to using the lstat() function with the ssh2.sftp:// wrapper in PHP 5 and returns the same values. Parameters: sftp Stats a symbolic link on the remote filesystem without fo

CairoContext::setSourceRGBA

(PECL cairo >= 0.1.0) The setSourceRGBA purpose public void CairoContext::setSourceRGBA ( string $red, string $green, string $blue, string $alpha ) Object oriented style (method): Procedural style: void cairo_set_source ( CairoContext $context , CairoPattern $pattern ) Description here. Parameters: context Description... pattern De

PharData::copy

(PHP >= 5.3.0, PECL phar >= 2.0.0) Copy a file internal to the phar archive to another new file within the phar bool PharData::copy ( string $oldfile, string $newfile ) Copy a file internal to the tar/zip archive to another new file within the same archive. This is an object-oriented alternative to using copy() with the phar stream wrapper. Parameters: oldfile Copy

Phar::isCompressed

(PHP >= 5.3.0, PECL phar >= 2.0.0) Returns Phar::GZ or PHAR::BZ2 if the entire phar archive is compressed (.tar.gz/tar.bz and so on) public mixed Phar::isCompressed ( void ) Note: This method requires the php.ini setting phar.readonly to be set to 0 in order to work for Phar objects. Otherwise, a PharException will be thrown. Returns Phar::GZ or PHAR::BZ2 if the entire phar archive is compressed (.tar.gz/tar.bz and

Memcached::decrement

(PECL memcached >= 0.1.0) Decrement numeric item's value public int Memcached::decrement ( string $key [, int $offset = 1 [, int $initial_value = 0 [, int $expiry = 0 ]]] ) Memcached::decrement() decrements a numeric item's value by the specified offset. If the item's value is not numeric, an error will result. If the operation would decrease the value below 0, the new value will be 0. Memcached::decrement() will set t

ps_end_pattern

(PECL ps >= 1.2.0) End a pattern bool ps_end_pattern ( resource $psdoc ) Ends a pattern which was started with ps_begin_pattern(). Once a pattern has been ended, it can be used like a color to fill areas. Parameters: psdoc Resource identifier of the postscript file as returned by ps_new(). Returns: Returns TRUE on success or FALSE on failure.

Yaf_Dispatcher::catchException

(Yaf >=1.0.0) Switch on/off exception catching public Yaf_Dispatcher Yaf_Dispatcher::catchException ([ bool $flag ] ) While the application.dispatcher.throwException is On(you can also calling to Yaf_Dispatcher::throwException(TRUE)() to enable it), Yaf will throw Exception whe error occurrs instead of trigger error. then if you enable Yaf_Dispatcher::catchException()(also can enabled by set application.dispatcher.catch

runkit_function_rename

(PECL runkit >= 0.7.0) Change a function's name bool runkit_function_rename ( string $funcname, string $newname ) Note: By default, only userspace functions may be removed, renamed, or modified. In order to override internal functions, you must enable the runkit.internal_override setting in php.ini. Parameters: funcname Current function name

Yaf_View_Simple::__get

(Yaf >=1.0.0) Retrieve assigned variable public void Yaf_View_Simple::__get ([ string $name ] ) Retrieve assigned varaiable Note: parameter can be empty since 2.1.11 Parameters: name the assigned variable name if this is empty, all assigned variables will be returned Returns: