Standard library.
PHP version: 5
Required modules: none
Required packages: none
Also referred as the "core" library, it is a collection of the most used constants, functions and classes. The standard library is available on any PHP installation.
Some of the constant's values are actually dummy values intended only to give the right type to the constant, since the actual value does not care to PHPLint.
See: http://www.php.net/manual/en/
INF = 0.0
(dummy value)
INFO_ALL = -1
NAN = 0.0
(dummy value)
NOEXPR = 327681
PEAR_EXTENSION_DIR = "/usr/local/php-5.0.1/lib/php/extensions/no-debug-non-zts-20040412"
PHP_BINDIR = "/usr/local/php-5.0.1/bin"
PHP_CONFIG_FILE_PATH = "/usr/local/php-5.0.1/lib"
PHP_DATADIR = "/usr/local/php-5.0.1/share/php"
PHP_EXTENSION_DIR = "/usr/local/php-5.0.1/lib/php/extensions/no-debug-non-zts-20040412"
PHP_LIBDIR = "/usr/local/php-5.0.1/lib/php"
PHP_LOCALSTATEDIR = "/usr/local/php-5.0.1/var"
PHP_PREFIX = "/usr/local/php-5.0.1"
PHP_SYSCONFDIR = "/usr/local/php-5.0.1/etc"
PHP_WINDOWS_VERSION_PLATFORM = 1
PHP_WINDOWS_VERSION_SP_MAJOR = 1
PHP_WINDOWS_VERSION_SP_MINOR = 1
PHP_WINDOWS_VERSION_SUITEMASK = 1
PHP_WINDOWS_VERSION_PRODUCTTYPE = 1
PHP_WINDOWS_NT_DOMAIN_CONTROLLER = 1
PHP_WINDOWS_NT_WORKSTATION = 1
DEBUG_BACKTRACE_PROVIDE_OBJECT = 1
DEBUG_BACKTRACE_IGNORE_ARGS = 2
mixed time_nanosleep(
int $secs,
int $nanosecs)
string strftime(
string $fmt, ...)
string gmstrftime(
string $fmt, ...)
int strtotime(
string $time, ...)
string date(
string $fmt, ...)
string gmdate(
string $fmt, ...)
int[] localtime(
int $timestamp = 0,
boolean $is_associative = FALSE)
triggers E_WARNING, E_NOTICE
boolean checkdate(
int $month,
int $day,
int $year)
string wordwrap(
string $s,
int $width = 75,
string $break_ = "\n",
boolean $cut = FALSE)
string htmlspecialchars(
string $s,
int $quote_style = 2,
string $charset = "ISO-8859-1",
boolean $double_encode = TRUE)
string htmlspecialchars_decode(
string $s,
int $quote_style = 2)
string htmlentities(
string $s,
int $quote_style = 2,
string $charset = "ISO-8859-1",
boolean $double_encode = TRUE)
string html_entity_decode(
string $s,
int $quote_style = 2,
string $charset = "ISO-8859-1")
string[string] get_html_translation_table(
int $table = 0,
int $quote_style = 2)
boolean phpinfo(
int $what = -1)
boolean phpcredits(
int $flag = -1)
string php_uname(
string $mode = "a")
string php_ini_scanned_files()
int strnatcmp(
string $s1,
string $s2)
int strnatcasecmp(
string $s1,
string $s2)
int strcasecmp(
string $s1,
string $s2)
int substr_count(
string $haystack,
string $needle)
int strspn(
string $str1,
string $str2, ...)
int strcspn(
string $str1,
string $str2, ...)
string strtok(
string $str,
string $token)
int strpos(
string $haystack,
mixed $needle, ...)
int stripos(
string $haystack,
string $needle, ...)
int strrpos(
string $haystack,
string $needle, ...)
int strripos(
string $haystack,
string $needle, ...)
string hebrev(
string $str,
int $max_chars_per_line = 0)
string hebrevc(
string $str,
int $max_chars_per_line = 0)
string nl2br(
string $s,
boolean $is_xhtml = TRUE)
string basename(
string $path, ...)
string[string] pathinfo(
string $path, ...)
string stripslashes(
string $s)
string stripcslashes(
string $str)
string strstr(
string $haystack,
mixed $needle, ...)
string strchr(
string $haystack,
string $needle)
string stristr(
string $haystack,
mixed $needle, ...)
string strrchr(
string $haystack,
mixed $needle)
string str_shuffle(
string $str)
mixed str_word_count(
string $str, ...)
string[int] str_split(
string $s,
int $split_length = 1)
string strpbrk(
string $haystack,
string $charlist)
int substr_compare(
string $main_str,
string $str,
int $offset, ...)
int strcoll(
string $str1,
string $str2)
string money_format(
string $format,
float $number_)
Deprecated: this function is not available on Windows
string substr(
string $s,
int $start, ...)
mixed substr_replace(
mixed $s,
string $replacement,
int $start, ...)
string quotemeta(
string $str)
string strtr(
string $s,
mixed $x, ...)
string addslashes(
string $str)
string addcslashes(
string $str,
string $charlist)
string rtrim(
string $s,
string $charlist = " \t\n\r\x00\x0B")
string chop(
string $s,
string $charlist = " \t\n\r\x00\x0B")
mixed str_replace(
mixed $search,
mixed $replace,
mixed $subject, ...)
mixed str_ireplace(
mixed $search,
mixed $replace,
mixed $subject, ...)
string str_repeat(
string $s,
int $n)
mixed count_chars(
string $str,
int $mode = 0)
string chunk_split(
string $body,
int $chunklen = 76,
string $end = "\r\n")
string trim(
string $str,
string $charlist = " \t\n\r\x00\x0B")
string ltrim(
string $str,
string $charlist = " \t\n\r\x00\x0B")
string strip_tags(
string $str, ...)
int similar_text(
string $first,
string $second, ...)
string[int] explode(
string $sep,
string $s, ...)
string implode(
string $glue,
string[] $pieces)
ATTENTION!
The actual PHP function also accepts one single array assuming glue to be the empty string. Rewrite as implode("", array) to comply with this declaration.
string join(
string $glue,
string[] $pieces)
string setlocale(
int $category,
mixed $locale, ...)
string nl_langinfo(
int $item)
int levenshtein(
string $str1,
string $str2, ...)
void parse_str(
string $str, ...)
string str_pad(
string $input,
int $pad_length,
string $pad_string = " ",
int $pad_type = 1)
string sprintf(
string $fmt, ...)
string printf(
string $fmt, ...)
int vprintf(
string $format,
mixed[] $args_)
string vsprintf(
string $format,
mixed[] $args_)
int fprintf(
resource $f,
string $fmt, ...)
int vfprintf(
resource $handle,
string $format,
mixed[] $args_)
mixed sscanf(
string $str,
string $fmt, ...)
mixed fscanf(
resource $handle,
string $format, ...)
string[string] parse_url(
string $url,
int $component = -1)
triggers E_WARNING
string rawurlencode(
string $str)
string rawurldecode(
string $str)
string http_build_query(
mixed[] $formdata, ...)
string readlink(
string $path)
boolean symlink(
string $target,
string $link)
boolean link(
string $target,
string $link)
boolean unlink(
string $filename, ...)
triggers E_WARNING
string exec(
string $command, ...)
string system(
string $command, ...)
string escapeshellcmd(
string $command)
string escapeshellarg(
string $arg)
void passthru(
string $command, ...)
string shell_exec(
string $cmd)
resource proc_open(
string $cmd,
string[int][int] $descriptorspec,
return resource[] & $pipes, ...)
int proc_close(
resource $process)
int proc_terminate(
resource $process, ...)
mixed[string] proc_get_status(
resource $process)
boolean proc_nice(
int $increment)
int getservbyname(
int $service,
string $protocol)
string getservbyport(
int $port,
string $protocol)
int getprotobyname(
string $name)
string getprotobynumber(
int $number_)
string base64_decode(
string $s)
string base64_encode(
string $s)
string convert_uuencode(
string $data)
string convert_uudecode(
string $data)
float abs(
float $n)
Returns the absolute value of the argument
Warning. This function can be applied to int values as well when an int result is expected, but this is not the case when the int value is the maximum negative int, in fact the result is float:
abs(-PHP_INT_MAX-1) ==> float(2147483648)and applying the typecast required by PHPLint we end with an unexpected negative number:(int) abs(-PHP_INT_MAX-1) ==> int(-2147483648) rather than the expected 0 as a result of the 2-complement. If you really need the common behaviour of a true abs() function applied to int, consider this expression instead that calculates the 2-complement: <pre>$i >= 0? $i : (($i ^ PHP_INT_MAX) + 1) & PHP_INT_MAXor even:$i == -PHP_INT_MAX - 1? 0 : (int) abs($i)If, instead, you are only interested to drop the sign, simply do this:$i ^ PHP_INT_MAXReturn: The absolute value of the argument.
float acos(
float $x)
float atan2(
float $y,
float $x)
float round(
float $x,
int $precision = 0,
int $mode = 1)
boolean is_finite(
float $val)
boolean is_infinite(
float $val)
float pow(
float $base,
float $esp)
float hypot(
float $x,
float $y)
float deg2rad(
float $number_)
float rad2deg(
float $number_)
string base_convert(
string $number_,
int $frombase,
int $tobase)
string number_format(
float $n,
int $decimals = 0,
string $dec_point = ".",
string $thousands_sep = ",")
WARNING. This function cannot be called with 3 arguments. Instead,
you MUST either provide one, two or four arguments.
float fmod(
float $x,
float $y)
int ip2long(
string $ip_address)
string long2ip(
int $proper_address)
string getenv(
string $varname)
boolean putenv(
string $setting)
string[string][int] getopt(
string $options, ...)
mixed microtime(
boolean $get_as_float = FALSE)
int[string] getrusage(
int $who = 0)
string uniqid(
string $prefix = "",
boolean $more_entropy = FALSE)
string quoted_printable_decode(
string $str)
string quoted_printable_encode(
string $str)
string convert_cyr_string(
string $str,
string $from,
string $to)
void set_time_limit(
int $seconds)
string get_cfg_var(
string $varname)
boolean set_magic_quotes_runtime(
int $new_setting)
int get_magic_quotes_gpc()
int get_magic_quotes_runtime()
boolean import_request_variables(
string $types,
string $prefix)
Official manual states that the second arguments is de-facto
Deprecated: since PHP 5.4
mandatory, altough being formally optional. Then the declaration here given is the most conservative one to prevent errors.
boolean error_log(
string $message, ...)
mixed call_user_func(
mixed $func, ...)
mixed call_user_func_array(
mixed $func,
mixed[int] $param_arr)
triggers E_WARNING
mixed call_user_method(
string $method_name,
object & $obj, ...)
Deprecated: Use
call_user_func_array()instead.
mixed call_user_method_array(
string $method_name,
object & $obj,
mixed[int] $paramarr)
Deprecated: Use
call_user_func_array()instead.
string serialize(
mixed $value)
mixed unserialize(
string $s)
E_NOTICE
Under PHP 5, please apply cast() to the result.
For example, if the intended result must be an object:
$obj = cast("MyClass", unserialize($serialized_data));
or if the expected result must be an array:
$arr = cast("array[int]MyClass", unserialize($serialized_data)(;
Warning. Raises E_NOTICE if the data are corrupted.
void var_dump(
mixed $x, ...)
string var_export(
mixed $x, ...)
void debug_zval_dump(
mixed $variable)
mixed print_r(
mixed $expr,
boolean $return_ = FALSE)
void register_shutdown_function(
mixed $func, ...)
boolean register_tick_function(
mixed $func, ...)
Deprecated: See the manual for details.
void unregister_tick_function(
string $func)
mixed highlight_file(
string $filename, ...)
mixed show_source(
string $filename, ...)
mixed highlight_string(
string $str, ...)
string php_strip_whitespace(
string $filename)
boolean php_check_syntax(
string $filename, ...)
Deprecated: For technical reasons, this function is deprecated and removed from PHP. Instead, use
php -l somefile.phpfrom the commandline. Or, even better, use PHPLint.
string ini_get(
string $varname)
Gets the value of a configuration option
Returns the value of the configuration option on success. Failure, such as querying for a non-existent value, will return an empty string. Boolean values are returned as "0" for FALSE, "1" for "TRUE". Some parameters have the default value NULL, and this value gets returned if the paramenter isn't defined in the php.ini. Some values uses a special format, for example "upload_max_filesize = 10M": take a look to the official WEB site for an example on how to parse these values. A typical example:
if ( ini_get("magic_quotes_gpc") === "1" ) $s =stripslashes($s);
mixed[string][string] ini_get_all(...)
string ini_set(
string $varname,
string $newvalue)
string ini_alter(
string $varname,
string $newvalue)
void ini_restore(
string $varname)
string set_include_path(
string $new_inc_path)
boolean setcookie(
string $n, ...)
boolean setrawcookie(
string $n, ...)
void header_remove(
string $name = NULL)
mixed[string][string] parse_ini_file(
string $filename, ...)
boolean is_uploaded_file(
string $fn)
boolean move_uploaded_file(
string $fn,
string $dst)
string gethostbyaddr(
string $ip)
string gethostbyname(
string $hn)
string[int] gethostbynamel(
string $hostname)
boolean dns_check_record(
string $host, ...)
boolean checkdnsrr(
string $host, ...)
boolean dns_get_mx(
string $hostname,
return string[int] & $mxhosts, ...)
boolean getmxrr(
string $hostname,
return string[int] & $a, ...)
mixed[int][string] dns_get_record(
string $hostname, ...)
string gettype(
mixed $variable)
boolean settype(
mixed & $v,
string $type)
Deprecated: the variable's type is always statically determined under PHPLint and cannot be changed at runtime
boolean is_null(
mixed $v)
boolean is_resource(
mixed $v)
boolean is_callable(
mixed $f, ...)
boolean dl(
string $lib)
Deprecated: As of PHP 5, the dl() function is deprecated in every SAPI except CLI. Use Extension Loading Directives method instead.
int pclose(
resource $handle)
resource popen(
string $cmd,
string $mode)
triggers E_WARNING
int readfile(
string $fn, ...)
triggers E_WARNING
boolean rewind(
resource $handle)
boolean rmdir(
string $dirname, ...)
triggers E_WARNING
boolean fclose(
resource $f)
triggers E_WARNING
string fgetc(
resource $h)
triggers E_WARNING
string fgets(
resource $f, ...)
triggers E_WARNING
string fgetss(
resource $f, ...)
triggers E_WARNING
string fread(
resource $f,
int $length)
triggers E_WARNING
resource fopen(
string $filename,
string $mode, ...)
triggers E_WARNING
int fpassthru(
resource $handle)
triggers E_WARNING
boolean ftruncate(
resource $handle,
int $size)
triggers E_WARNING
int[string] fstat(
resource $handle)
triggers E_WARNING
int fseek(
resource $handle,
int $offset, ...)
triggers E_WARNING
boolean fflush(
resource $handle)
triggers E_WARNING
int fwrite(
resource $handle,
string $s, ...)
triggers E_WARNING
int fputs(
resource $handle,
string $s, ...)
triggers E_WARNING
boolean mkdir(
string $pathname, ...)
triggers E_WARNING
boolean rename(
string $oldname,
string $newname, ...)
triggers E_WARNING
boolean copy(
string $source,
string $dest, ...)
triggers E_WARNING
string tempnam(
string $dir,
string $prefix)
string[int] file(
string $filename, ...)
triggers E_WARNING
string file_get_contents(
string $fn, ...)
triggers E_WARNING
int file_put_contents(
string $fn,
string $data, ...)
triggers E_WARNING
string[int] fgetcsv(
resource $handle, ...)
triggers E_WARNING
boolean flock(
resource $handle,
int $op, ...)
triggers E_WARNING
string[string] get_meta_tags(
string $fn, ...)
triggers E_WARNING
int set_file_buffer(
resource $stream,
int $buffer)
string realpath(
string $path)
boolean fnmatch(
string $pattern,
string $str, ...)
resource fsockopen(
string $target,
int $port = 0,
return int & $errno = 0,
return string & $errstr = "",
float $timeout = 0.0)
triggers E_WARNING
resource pfsockopen(
string $hostname, ...)
triggers E_WARNING
string pack(
string $format, ...)
mixed[string] unpack(
string $format,
string $data)
string crypt(
string $str,
string $salt = "")
resource opendir(
string $path, ...)
triggers E_WARNING
void closedir(
resource $dirhandle)
boolean chdir(
string $dir)
triggers E_WARNING
boolean chroot(
string $dir)
triggers E_WARNING
void rewinddir(
resource $dir_handle)
triggers E_WARNING
string readdir(
resource $dir_handle)
triggers E_WARNING
Directory dir(
string $directory, ...)
triggers E_WARNING
string[int] scandir(
string $dir, ...)
triggers E_WARNING
string[int] glob(
string $pattern, ...)
int fileatime(
string $fn)
triggers E_WARNING
int filectime(
string $fn)
triggers E_WARNING
int filegroup(
string $fn)
triggers E_WARNING
int fileinode(
string $fn)
triggers E_WARNING
int filemtime(
string $fn)
triggers E_WARNING
int fileowner(
string $fn)
triggers E_WARNING
int fileperms(
string $fn)
triggers E_WARNING
int filesize(
string $filename)
triggers E_WARNING
string filetype(
string $fn)
triggers E_WARNING
boolean file_exists(
string $fn)
boolean is_writable(
string $fn)
boolean is_writeable(
string $fn)
boolean is_readable(
string $fn)
boolean is_executable(
string $fn)
int[] stat(
string $fn)
triggers E_WARNING
int[] lstat(
string $fn)
triggers E_WARNING
boolean chown(
string $fn,
mixed $user)
triggers E_WARNING
boolean chgrp(
string $fn,
mixed $group)
triggers E_WARNING
boolean chmod(
string $fn,
int $mode)
triggers E_WARNING
boolean touch(
string $fn, ...)
triggers E_WARNING
float disk_total_space(
string $dir)
triggers E_WARNING
float disk_free_space(
string $dir)
triggers E_WARNING
float diskfreespace(
string $dir)
triggers E_WARNING
boolean mail(
string $to,
string $subj,
string $msg, ...)
boolean openlog(
string $ident,
int $option,
int $facility)
boolean syslog(
int $priority,
string $msg)
void define_syslog_variables()
E_DEPRECATED
Deprecated: since PHP 5.3.0
float lcg_value()
string metaphone(
string $str, ...)
boolean ksort(
mixed[] $array_arg,
int $sort_flags = 0)
boolean krsort(
mixed[] $array_arg,
int $sort_flags = 0)
void natsort(
mixed[] $array_arg)
void natcasesort(
mixed[] $array_arg)
boolean asort(
mixed[] $a,
int $sort_flags = 0)
boolean arsort(
mixed[] $a,
int $sort_flags = 0)
boolean sort(
mixed[int] $a,
int $sort_flags = 0)
Warning: indexes must really be int.
That is because in any case this function changes the type of the array into array[int].
boolean rsort(
mixed[int] $a,
int $sort_flags = 0)
Warning: indexes must really be int.
That is because in any case this function changes the type of the array into array[int].
boolean usort(
mixed[int] $a,
mixed $cmp_func)
Warning: indexes must really be int.
That is because in any case this function changes the type of the array into array[int].
boolean uasort(
mixed[] $a,
mixed $cmp_func)
boolean uksort(
mixed[] $a,
mixed $cmp_func)
boolean shuffle(
mixed[] $array_arg)
boolean array_walk(
mixed[] $input,
mixed $funcname, ...)
boolean array_walk_recursive(
mixed[] $input,
mixed $funcname, ...)
mixed key(
mixed[] $array_arg)
float min(
float $a,
float $b, ...)
float max(
float $a,
float $b, ...)
Actually the max() function has a more complex semantic that cannot be effectively expressed using the restrictive syntax of PHPLint. The arguments can be of the type int or float, and the result can be either int or float; a single array of numbers is also allowed. The syntax described here should be the most useful one, with two or more int or float numbers and returning a float. If the required result must be int, use a cast: $m = (int) max($count1, $count2);.
boolean in_array(
mixed $needle,
mixed[] $haystack, ...)
mixed array_search(
mixed $needle,
mixed[] $hatstack, ...)
int extract(
mixed[string] $var_array, ...)
mixed[string] compact(
mixed $var_names, ...)
mixed[] range(
mixed $low,
mixed $high, ...)
mixed[] array_change_key_case(
mixed[] $a, ...)
mixed[int][] array_chunk(
mixed[] $a,
int $size,
boolean $preserve_keys = FALSE)
triggers E_WARNING
mixed[] array_combine(
mixed[] $keys,
mixed[] $values)
triggers E_WARNING
mixed[] array_count_values(
mixed[] $input)
triggers E_WARNING
mixed[] array_diff(
mixed[] $arr1,
mixed[] $arr2, ...)
mixed[] array_diff_key(
mixed[] $arr1,
mixed[] $arr2, ...)
mixed[] array_diff_assoc(
mixed[] $arr1,
mixed[] $arr2, ...)
mixed[] array_diff_uassoc(
mixed[] $arr1,
mixed[] $arr2, ...)
mixed[] array_fill(
int $start_key,
int $num,
mixed $val)
triggers E_WARNING
mixed[] array_filter(
mixed[] $input, ...)
mixed[] array_flip(
mixed[] $input)
mixed[] array_intersect(
mixed[] $arr1,
mixed[] $arr2, ...)
mixed[] array_intersect_assoc(
mixed[] $arr1,
mixed[] $arr2, ...)
mixed[] array_intersect_uassoc(
mixed[] $arr1,
mixed[] $arr2, ...)
boolean array_key_exists(
mixed $key,
mixed[] $search)
mixed[int] array_keys(
mixed[] $input, ...)
mixed[] array_map(
mixed $callback,
mixed[] $a1, ...)
mixed[] array_merge(
mixed[] $a1,
mixed[] $a2, ...)
mixed[] array_merge_recursive(
mixed[] $arr1,
mixed[] $arr2, ...)
boolean array_multisort(
mixed[] $ar1, ...)
mixed[] array_pad(
mixed[] $input,
int $pad_size,
mixed $pad_value)
mixed array_pop(
mixed[] $stack)
int array_push(
mixed[] $stack,
mixed $var_, ...)
mixed array_rand(
mixed[] $input, ...)
mixed array_reduce(
mixed[] $input,
mixed $string_, ...)
mixed[] array_reverse(
mixed[] $input, ...)
mixed array_shift(
mixed[] $a)
mixed[] array_slice(
mixed[] $input,
int $offset, ...)
mixed[] array_splice(
mixed[] $input,
int $offset, ...)
mixed array_sum(
mixed[] $input)
mixed[] array_udiff(
mixed[] $arr1,
mixed[] $arr2, ...)
mixed[] array_udiff_assoc(
mixed[] $arr1,
mixed[] $arr2, ...)
mixed[] array_udiff_uassoc(
mixed[] $arr1,
mixed[] $arr2, ...)
mixed[] array_uintersect(
mixed[] $arr1,
mixed[] $arr2, ...)
mixed[] array_uintersect_assoc(
mixed[] $arr1,
mixed[] $arr2, ...)
mixed[] array_uintersect_uassoc(
mixed[] $arr1,
mixed[] $arr2, ...)
mixed[] array_unique(
mixed[] $input)
int array_unshift(
mixed[] $stack,
mixed $var_, ...)
mixed[] array_values(
mixed[] $input)
mixed assert_options(
int $what, ...)
int version_compare(
string $ver1,
string $ver2, ...)
int ftok(
string $pathname,
string $proj)
string str_rot13(
string $str)
boolean output_add_rewrite_var(
string $name,
string $value)
boolean output_reset_rewrite_vars()
mixed date_sunrise(
mixed $time, ...)
mixed date_sunset(
mixed $time, ...)
int strcmp(
string $a,
string $b)
boolean ctype_cntrl(
string $text)
boolean empty(
mixed $variable)
mixed eval(
string $cmd)
Deprecated: the contents of the eval() cannot be parsed by PHPLint.
boolean defined(
string $c)
boolean headers_sent(
return string & $file = "",
return int & $line = 0)
boolean header_register_callback(
mixed $callback)
int http_response_code(
int $response_code = 0)
mixed set_error_handler(
mixed $cb, ...)
boolean function_exists(
string $func_name)
boolean method_exists(
mixed $obj,
string $method)
string get_class(
object $obj = NULL)
boolean is_subclass_of(
mixed $obj,
string $class_name)
boolean my_drawtext(
resource $image,
string $text,
resource $font,
int $x,
int $y, ...)
int strncmp(
string $str1,
string $str2,
int $len)
int strncasecmp(
string $str1,
string $str2,
int $len)
string get_parent_class(
mixed $object_ = NULL)
boolean is_a(
object $object_,
string $class_name)
mixed[string] get_class_vars(
string $class_name)
mixed[string] get_object_vars(
object $obj)
string[int] get_class_methods(
mixed $class_)
boolean class_exists(
string $classname,
boolean $autoload = TRUE)
boolean interface_exists(
string $classname,
boolean $autoload = TRUE)
void leak(
int $num_bytes = 3)
string[int] get_included_files()
string[int] get_declared_classes()
string[int] get_declared_interfaces()
string[string][int] get_defined_functions()
mixed[string] get_defined_vars()
string create_function(
string $args_,
string $code)
string get_resource_type(
resource $res)
string[int] get_loaded_extensions()
mixed[string] get_defined_constants()
void debug_print_backtrace(
int $options = 0,
int $limit = 0)
mixed[int][string] debug_backtrace(
int $options = 1,
int $limit = 0)
boolean extension_loaded(
string $extension_name)
string[int] get_extension_funcs(
string $extension_name)
string confirm_extname_compiled(
string $arg)
string uuencode(
string $data)
string uudecode(
string $data)
string image_type_to_extension(
int $imagetype, ...)
string image_type_to_mime_type(
int $imgtype)
string[] get_headers(
string $url,
int $format = 0)
triggers E_WARNING
mixed[string] error_get_last()
boolean time_sleep_until(
float $timestamp)
triggers E_WARNING
mixed[] array_fill_keys(
mixed[] $keys,
mixed $value)
mixed[] array_intersect_key(
mixed[] $array1,
mixed[] $array2, ...)
mixed[] array_intersect_ukey(
mixed[] $array1,
mixed[] $array2, ...)
mixed[] array_diff_ukey(
mixed[] $array1,
mixed[] $array2, ...)
float array_product(
mixed[] $array_)
int memory_get_peak_usage(...)
string set_exception_handler(
mixed $exception_handler)
void restore_exception_handler()
boolean property_exists(
mixed $class_,
string $property)
DateTime date_create(...)
void date_date_set(
DateTime $obj,
int $year,
int $month,
int $day)
string date_default_timezone_get()
boolean date_default_timezone_set(
string $timezone_identifier)
string date_format(
DateTime $obj,
string $format)
void date_isodate_set(
DateTime $obj,
int $year,
int $week, ...)
void date_modify(
DateTime $obj,
string $modify)
int date_offset_get(
DateTime $obj)
mixed[string] date_parse(
string $date)
string[string] date_sun_info(
int $time,
float $latitude,
float $longitude)
void date_time_set(
DateTime $obj,
int $hour,
int $minute, ...)
DateTimeZone date_timezone_get(
DateTime $obj)
void date_timezone_set(
DateTime $obj,
DateTimeZone $tz)
mixed[] timezone_abbreviations_list()
string[int] timezone_identifiers_list()
string timezone_name_from_abbr(
string $abbr, ...)
string timezone_name_get(
DateTimeZone $obj)
int timezone_offset_get(
DateTimeZone $tz,
DateTime $date)
DateTimeZone timezone_open(
string $timezone)
mixed[string][string] timezone_transitions_get(
DateTimeZone $tz)
string[int] str_getcsv(
string $input, ...)
mixed[] array_replace(
mixed[] $arr,
mixed[] $arr1, ...)
mixed[] array_replace_recursive(
mixed[] $arr,
mixed[] $arr1, ...)
DateTime date_add(
DateTime $dt,
DateInterval $interval)
DateTime date_sub(
DateTime $dt,
DateInterval $interval)
mixed[string] date_parse_from_format(
string $format,
string $date)
mixed[] parse_ini_string(
string $ini,
boolean $process_sections = FALSE,
int $scanner_mode = 1)
class Directory
{
}
class stdClass
{
}
class __PHP_Incomplete_Class_Name
Trying to retrieve an object from $_SESSION[] whose class is undefined we ends with an instance of this dummy class
Original properties are restored, but the original class name and the methods do not, so the class is unusable. Trying to call any method on this class causes these messages:
PHP Notice: main(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "MyClass" of the object you are trying to operate on was loaded _before_ unserialize() gets called or provide a __autoload() function to load the class definition in /home/www.icosaedro.it/public_html/mypage.html on line 34
PHP Fatal error: main(): The script tried to execute a method or access a property of an incomplete object. [again, same hint]
{
}
class php_user_filter
{
}
class Exception
{
protected string $message = ""Exception message
protected int $code = 0User defined exception code
protected string $fileSource filename of exception
protected int $line = 0Source line of exception
void __construct(
string $message = "",
int $code = 0,
Exception$previous = NULL)final string getMessage()Message of exception
finalExceptiongetPrevious()Return previous exception, or NULL if there is not
final int getCode()Code of exception
final string getFile()Source filename
final int getLine()Source line
final mixed[int][string] getTrace()An array of the backtrace()
final string getTraceAsString()Formatted string of trace
string __toString()Formatted string for display
final void __clone()Always gives a fatal error: exceptions are not clonable.
FIXME: this method is `private' in official manual: why?
}
class ErrorException
|
`--Exception
Generic exception into which errors can be mapped
{
protected string $message = ""
inherited fromException
protected int $code = 0
inherited fromException
protected string $file
inherited fromException
protected int $line = 0
inherited fromExceptionvoid __construct(
string $message = "",
int $code = 0,
int $severity = 1,
string $filename = NULL,
int $lineno = 0)Encapsulate errors in exceptions
$message is the human-readable description of the exception, while $code lets the program to detect the specific condition occurred. The $severity is the usual log level (see the E_* constants). $filename and $lineno lets to indicate an alternate position; customized error handling functions can indicate the real source of the error rather that the point where the exception was thrown.
int getSeverity()
final string getMessage()
inherited fromException
finalExceptiongetPrevious()
inherited fromException
final int getCode()
inherited fromException
final string getFile()
inherited fromException
final int getLine()
inherited fromException
final mixed[int][string] getTrace()
inherited fromException
final string getTraceAsString()
inherited fromException
string __toString()
inherited fromException
final void __clone()
inherited fromException
}
class DateTime
{
void __construct(
string $time = "now",
DateTimeZone$timezone = NULL)
throwsException
void setDate(
int $year,
int $month,
int $day)
string format(
string $format)
void setISODate(
int $year,
int $week, ...)
void setTime(
int $hour,
int $minute, ...)
DateTimeZonegetTimezone()
void setTimezone(
DateTimeZone$tz)
DateTimeadd(
DateInterval$interval)
DateTimesub(
DateInterval$interval)
DateIntervaldiff(
DateTime$datetime, ...)
staticDateTimecreateFromFormat(
string $format,
string $time, ...)
static mixed[string] getLastErrors()
DateTimesetTimestamp(
int $unixtimestamp)
}
class DateTimeZone
{
static mixed[] listAbbreviations()
static string[int] listIdentifiers(
int $what = 2047,
string $country = NULL)
static int getOffset(
DateTime$datetime)
void __construct(
string $timezone)
mixed[string][string] getTransitions()
}
class DateInterval
{
void __construct(
string $interval_spec)
staticDateIntervalcreateFromDateString(
string $time)
string format(
string $format)
}
class DatePeriod
{
void __construct(
DateTime$start,
DateInterval$interval,
int $recurrences, ...)
}
Generated by PHPLint Documentator