Download
Download Latest
Version Support Policy
Documentation
Documentation Home
Tutorial
Project
Governance
Branding
License
GitHub Repository
Community
Contribute to PHP
Online Communities
Events | Conferences
Mailing Lists
PHP 8.5
All Releases
Search docs
Getting Started
Introduction
A simple tutorial
Language Reference
Basic syntax
Types
Variables
Constants
Expressions
Operators
Control Structures
Functions
Classes and Objects
Namespaces
Exceptions
Generators
References Explained
Predefined Variables
Predefined Exceptions
Predefined Interfaces and Classes
Context options and parameters
Supported Protocols and Wrappers
Security
Introduction
General considerations
Installed as CGI binary
Installed as an Apache module
Filesystem Security
Database Security
Error Reporting
Using Register Globals
User Submitted Data
Magic Quotes
Hiding PHP
Keeping Current
Features
HTTP authentication with PHP
Cookies
Sessions
Dealing with XForms
Handling file uploads
Using remote files
Connection handling
Persistent Database Connections
Safe Mode
Command line usage
Garbage Collection
DTrace Dynamic Tracing
Function Reference
Affecting PHP's Behaviour
Audio Formats Manipulation
Authentication Services
Command Line Specific Extensions
Compression and Archive Extensions
Credit Card Processing
Cryptography Extensions
Database Extensions
Date and Time Related Extensions
File System Related Extensions
Human Language and Character Encoding Support
Image Processing and Generation
Mail Related Extensions
Mathematical Extensions
Non-Text MIME Output
Process Control Extensions
Other Basic Extensions
Other Services
Search Engine Extensions
Server Specific Extensions
Session Extensions
Text Processing
Variable and Type Related Extensions
Web Services
Windows Only Extensions
XML Manipulation
Keyboard Shortcuts
?
This help
j
Next menu item
k
Previous menu item
g p
Previous man page
g n
Next man page
G
Scroll to bottom
g g
Scroll to top
g h
Goto homepage
g s
Goto search
(current page)
/
Focus search box
PHP Release 5.0.4
Unsupported Version
5.0 has reached end-of-life
and will no longer receive bugfixes or security patches from the PHP Project.
Some downstream distributions may still continue to provide backported fixes for a time, depending on their support policy.
For more information please see our
support policy
.
This Release is Outdated
The latest release of PHP 5.0 is
5.0.5
.
Source Code
Source (tar.gz)
Change Logs
changed foreach() to throw an exception if iteratoraggregate
Added checks for negative values to gmp_sqrt(), gmp_powm(), gmp_sqrtrem() and gmp_fact() to prevent SIGFPE. (Tony) does not return an Iterator.
Changed phpize not to require libtool.
Updated bundled oniguruma library (used for multibyte regular expression) to 3.7.0.
Updated bundled libmbfl library (used for multibyte functions). Fixed bugs:
Bug #32311 does not properly escape characters)
Bug #32063
Bug #31911 is case-sensitive to hex escapes)
bug #30573
Bug #30549 .
Fixed bug preventing from building oci8 as shared.
Fixed a bug in mysql_affected_rows and mysql_stmt_affected_rows when the api function returns -1
Fixed several leaks in ext/browscap and sapi/embed.
Fixed several leaks in ext/filepro.
Fixed build system to always use bundled libtool files.
Fixed a bug in mysqli_stmt_execute() (type conversion with NULL values).
Fixed segfault in mysqli_fetch_field_direct() when invalid field offset is passed.
Fixed posix_getsid() & posix_getpgid() to return sid & pgid instead of true.
Fixed bug
#32394
(offsetUnset() segfaults in a foreach).
Fixed bug
#32373
(segfault in bzopen() if supplied path to non-existent file).
Fixed bug
#32326
(Check values of Connection/Transfer-Encoding case-incentively in SOAP extension).
Fixed bug
#32290
(call_user_func_array() calls wrong class method within child class).
fixed bug #32238 (spl_array.c
Fixed bug
#32210
(proc_get_status() sets "running" always to true).
Fixed bug
#32200
(Prevent using both --with-apxs2 and --with-apxs2filter).
Fixed bug
#32134
(Overloading offsetGet/offsetSet).
fixed bug #32130 (arrayiterator
Fixed bug
#32115
(dateTime SOAP encoding of timezone incorrect).
Fixed bug
#32081
(in mysqli default socket value is not being used).
Fixed bug
#32021
(Crash caused by range('', 'z')).
Fixed bug
#32011
(Fragments which replaced Nodes are not globaly useable).
Fixed bug
#32001
(xml_parse_into_struct() function exceeds maximum execution time).
Fixed bug
#31980
(Unicode exif data not available on Windows).
Fixed bug
#31960
(msql_fetch_row() and msql_fetch_array() dropping columns with NULL values).
Fixed bug
#31878
(Segmentation fault using clone keyword on nodes).
Fixed bug
#31858
(--disable-cli does not force --without-pear).
Fixed bug
#31842
(*date('r') does not return RFC2822 conforming date string).
Fixed bug
#31832
(SOAP encoding problem with complex types in WSDL mode with multiple parts).
Fixed bug
#31797
(exif_read_data() uses too low nesting limit).
Fixed bug
#31796
(readline completion handler does not handle empty return values).
Fixed bug
#31792
(getrusage() does not provide ru_nswap value).
Fixed bug
#31755
(Cannot create SOAP header in no namespace).
Fixed bug
#31754
(dbase_open() fails for mode = 1).
Fixed bug
#31751
(pg_parameter_status() missing on Windows).
Fixed bug
#31747
(SOAP Digest Authentication doesn't work with "HTTP/1.1 100 Continue" response).
Fixed bug
#31732
(mb_get_info() causes segfault when no parameters specified).
Fixed bug
#31710
(Wrong return values for mysqli_autocommit/commit/rollback).
fixed bug #31705 (parse_url() does not recognize http
Fixed bug
#31695
(Cannot redefine endpoint when using WSDL).
fixed bug #31684 (dio_tcsetattr()
Fixed bug
#31683
(changes to $name in __get($name) override future parameters).
Fixed bug
#31699
(unserialize() float problem on non-English locales).
Fixed bug
#31562
(__autoload() problem with static variables).
fixed bug #31651 (reflectionclass
Fixed bug
#31623
(OCILogin does not support password grace period).
Fixed bug
#31527
(crash in msg_send() when non-string is stored without being serialized).
Fixed bug
#31515
(Improve performance of scandir() by factor of 10 or so).
Fixed bug
#31514
(open_basedir uses path_translated rather then cwd for . translation).
Fixed bug
#31480
(Possible infinite loop in imap_mail_compose()).
Fixed bug
#31479
(Fixed crash in chunk_split(), when chunklen > strlen).
Fixed bug
#31454
(session_set_save_handler crashes PHP when supplied non-existent object ref).
Fixed bug
#31444
(Memory leak in zend_language_scanner.c).
Fixed bug
#31442
(unserialize broken on 64-bit systems).
Fixed bug
#31440
($GLOBALS can be overwritten via GPC when register_globals is enabled).
Fixed bug
#31422
(No Error-Logging on SoapServer-Side).
Fixed bug
#31413
(curl POSTFIELDS crashes on 64-bit platforms).
Fixed bug
#31396
(compile fails with gd 2.0.33 without freetype).
Fixed bug
#31371
(highlight_file() trims new line after heredoc).
Fixed bug
#31361
(simplexml/domxml segfault when adding node twice).
fixed bug #31346 (arrayiterator
Fixed bug
#31190
(Unexpected warning then exception is thrown from call_user_func_array()).
Fixed bug
#31142
(imap_mail_compose() fails to generate correct output).
Fixed bug
#31139
(XML Parser Functions seem to drop & when parsing).
Fixed bug
#31398
(When magic_guotes_gpc are enabled filenames with ' get cutoff).
Fixed bug
#31288
(Possible crash in mysql_fetch_field(), if mysql_list_fields() was not called previously).
Fixed bug
#31107
, #31110, #31111, #31249 (Compile failure of zend_strtod.c).
Fixed bug
#31110
(PHP 4.3.10 does not compile on Tru64 UNIX 5.1B).
Fixed bug
#31107
(Compile failure on Solaris 9 (Intel) and gcc 3.4.3).
Fixed bug
#31103
(Better error message when c-client cannot be found).
Fixed bug
#31101
(missing kerberos header file path with --with-openssl).
Fixed bug
#31098
(isset() / empty() incorrectly return true in dereference of a string type).
Fixed bug
#31087
(broken php_url_encode_hash macro).
Fixed bug
#31072
(var_export() does not output an array element with an empty string key).
Fixed bug
#31060
(imageftbbox() does not use linespacing parameter).
Fixed bug
#31056
(php_std_date() returns invalid formatted date if y2k_compliance is On).
fixed bug #31055 (apache2filter
Fixed bug
#30901
(can't send cookies with soap envelop).
Fixed bug
#30871
(Misleading warning message for array_combine()).
Fixed bug
#30868
(evaluated pointer comparison in mbregex causes compile failure).
Fixed bug
#30862
(Static array with boolean indexes).
Fixed bug
#30726
(-.1 like numbers are not being handled correctly).
Fixed bug
#30725
(PHP segfaults when an exception is thrown in getIterator() within foreach).
Fixed bug
#30609
(cURL functions bypass open_basedir).
fixed bug #30446 (apache2handler
Fixed bug
#30430
(odbc_next_result() doesn't bind values and that results in segfault).
Fixed bug
#30266
(Invalid opcode 137/1/8).
Fixed bug
#30120
(imagettftext() and imagettfbbox() accept too many parameters).
Fixed bug
#30106
(SOAP cannot not parse 'ref' element. Causes Uncaught SoapFault exception).
Fixed bug
#29989
(type re_registers redefined in oniguruma.h).
Fixed bug
#28803
(enabled debug causes bailout errors with CLI on AIX because of fflush() called on already closed filedescriptor).
Fixed bug
#29767
(Weird behaviour of __set($name, $value)).
Fixed bug
#29733
(printf() handles repeated placeholders wrong).
Fixed bug
#29424
(width and height inverted for JPEG2000 files).
Fixed bug
#29329
(configure for mysqli with shared doesn't work).
Fixed bug
#29136
(make test - libtool failure on MacOSX).
fixed bug #28976 (mail()
Fixed bug
#28930
(PHP sources pick wrong header files generated by bison).
Fixed bug
#28840
(__destruct of a class that extends mysqli not called).
Fixed bug
#28804
(ini-file section parsing pattern is buggy).
Fixed bug
#28451
(corrupt EXIF headers have unlimited recursive IFD directory entries).
Fixed bug
#28444
(Cannot access undefined property for object with overloaded property access).
Fixed bug
#28442
(Changing a static variables in a class changes it across sub/super classes.)
Fixed bug
#28324
(HTTP_SESSION_VARS appear when register_long_arrays is Off).
fixed bug #28074 (fastcgi
Fixed bug
#28067
(partially incorrect utf8 to htmlentities mapping).
Fixed bug
#28041
(SOAP HTTP Digest Access Authentication).
Fixed bug
#27633
(Double \r problem on ftp_get in ASCII mode on Win32).
Fixed bug
#18613
(Multiple OUs in x509 certificate not handled properly).
↑
and
↓
to navigate •
Enter
to select •
Esc
to close •
/
to open
Press
Enter
without selection to search using Google