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.5
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
.
Source Code
Source (tar.gz)
Change Logs
fixed bug #34299 (reflectionclass
Fixed bug
#34302
(date('W') do not return leading zeros for week 1 to 9). (Derick) classes).
Fixed bug
#34277
(array_filter() crashes with references and objects).
Fixed bug
#34260
(Segfault with callbacks (array_map) + overloading).
Fixed bug
#34137
(assigning array element by reference causes binary mess).
Fixed bug
#34078
(Reflection API problems in methods with boolean or null default values).
Fixed bug
#34064
(arr[] as param to function is allowed only if function receives argument by reference).
Fixed bug
#34062
(Crash in catch block when many arguments are used).
Fixed bug
#33989
(extract($GLOBALS,EXTR_REFS) crashes PHP).
Fixed bug
#33940
(array_map() fails to pass by reference when called recursively).
fixed bug #33853 (php
Fixed bug
#33802
(throw Exception in error handler causes crash).
Fixed bug
#33723
(php_value overrides php_admin_value).
Fixed bug
#33710
(ArrayAccess objects doen't initialize $this).
fixed bug #33588 (ldap
Fixed bug
#33558
(warning with nested calls to functions returning by reference).
Fixed bug
#33520
(crash if safe_mode is on and session.save_path is changed).
Fixed bug
#33491
(crash after extending MySQLi internal class).
fixed bug #33340 (cli crash when calling php
Fixed bug
#33277
(private method accessed by child class).
Fixed bug
#33268
(iconv_strlen() works only with a parameter of < 3 in length).
Fixed bug
#33263
(mysqli_real_escape doesn't work in __construct)
Fixed bug
#33257
(array_splice() inconsistent when passed function instead of variable).
Fixed bug
#33243
(ze1_compatibility_mode does not work as expected).
Fixed bug
#33242
(Mangled error message when stream fails).
Fixed bug
#33222
(segfault when CURL handle is closed in a callback).
Fixed bug
#33214
(odbc_next_result does not signal SQL errors with 2-statement SQL batches).
Fixed bug
#33210
(relax jpeg recursive loop protection).
fixed bug #33200 (preg_replace()
Fixed bug
#33185
(--enable-session=shared does not build).
Fixed bug
#33171
(foreach enumerates private fields declared in base classes).
Fixed bug
#33164
(Soap extension incorrectly detects HTTP/1.1).
Fixed bug
#33156
(cygwin version of setitimer doesn't accept ITIMER_PROF).
Fixed bug
#33116
(crash when assigning class name to global variable in __autoload).
Fixed bug
#33090
(mysqli_prepare() doesn't return an error).
Fixed bug
#33076
(str_ireplace() incorrectly counts result string length and may cause segfault).
Fixed bug
#33072
(Add a safemode/open_basedir check for runtime "session.save_path" change using session_save_path() function).
Fixed bug
#33070
(Improved performance of bzdecompress() by several orders of magnitude).
Fixed bug
#33059
(crash when moving xml attribute set in dtd).
Fixed bug
#33057
(Don't send extraneous entity-headers on a 304 as per RFC 2616 section 10.3.5)
Fixed bug
#33019
(socket errors cause memory leaks in php_strerror()). .
Fixed bug
#33017
("make distclean" gives an error with VPATH build).
Fixed bug
#33013
("next month" was handled wrong while parsing dates).
fixed bug #32981 (reflectionmethod
Fixed bug
#32956
(mysql_bind_result() doesn't support MYSQL_TYPE_NULL).
Fixed bug
#32947
(Incorrect option for mysqli default password).
Fixed bug
#32944
(Disabling session.use_cookies doesn't prevent reading session cookies).
Fixed bug
#32941
(Sending structured SOAP fault kills a php).
Fixed bug
#32936
(http redirects URLs are not checked for control chars).
Fixed bug
#32933
(Cannot extend class "SQLiteDatabase").
fixed bug #32932 (oracle ldap
Fixed bug
#32930
(class extending DOMDocument doesn't clone properly).
Fixed bug
#32904
(pg_get_notify() ignores result_type parameter).
Fixed bug
#32852
(Crash with singleton and __destruct when zend.ze1_compatibility_mode = On).
Fixed bug
#32813
(parse_url() does not handle scheme-only urls properly).
Fixed bug
#32810
(temporary files not using plain file wrapper).
Fixed bug
#32809
(Missing T1LIB support on Windows).
Fixed bug
#32802
(General cookie overrides more specific cookie).
fixed bug #32799 (crash
Fixed bug
#32776
(SOAP doesn't support one-way operations).
Fixed bug
#32773
(GMP functions break when second parameter is 0).
Fixed bug
#32759
(incorrect determination of default value (COM)).
Fixed bug
#32758
(Cannot access safearray properties in VB6 objects).
Fixed bug
#32755
(Segfault in replaceChild() when DocumentFragment has no children).
Fixed bug
#32753
(Undefined constant SQLITE_NOTADB).
Fixed bug
#32742
(segmentation fault when the stream with a wrapper is not closed).
Fixed bug
#32699
(pg_affected_rows() was defined when it was not available).
Fixed bug
#32686
(Require/include file in destructor causes segfault).
fixed bug #32682 (ext/mssql
Fixed bug
#32674
(exception in iterator causes crash).
Fixed bug
#32660
(Assignment by reference causes crash when field access is overloaded (__get)).
Fixed bug
#32647
(Using register_shutdown_function() with invalid callback can crash PHP).
Fixed bug
#32615
(Segfault in replaceChild() using fragment when previousSibling is NULL).
fixed bug #32613 (ext/snmp
Fixed bug
#32608
(html_entity_decode() converts single quotes even if ENT_NOQUOTES is given).
Fixed bug
#32596
(Segfault/Memory Leak by getClass (etc) in __destruct).
fixed bug #32591 (ext/mysql
Fixed bug
#32589
(Possible crash inside imap_mail_compose, with charsets).
fixed bug #32587 (apache2
Fixed bug
#32560
(configure looks for incorrect db2 library).
Fixed bug
#32553
(mmap loads only the 1st 2000000 bytes on Win32).
Fixed bug
#32533
(proc_get_status() returns the incorrect process status).
Fixed bug
#32530
(chunk_split() does not append endstr if chunklen is longer then the original string).
Fixed bug
#32491
(File upload error - unable to create a temporary file).
fixed bug #32405 (mysqli
Fixed bug
#32282
(Segfault in mysqli_fetch_array on 64-bit).
Fixed bug
#32296
(get_class_methods() output has changed between 5.0.2 and 5.0.3).
Fixed bug
#32245
(xml_parser_free() in a function assigned to the xml parser gives a segfault).
Fixed bug
#32171
(Userspace stream wrapper crashes PHP).
Fixed bug
#32080
(segfault when assigning object to itself with zend.ze1_compatibility_mode=On).
fixed bug #31887 (isapi
Fixed bug
#31828
(Crash with zend.ze1_compatibility_mode=On).
Fixed bug
#31668
(multi_query works exactly every other time - multi query d/e flag global and not per connection).
Fixed bug
#31636
(another crash when echoing a COM object).
Fixed bug
#31583
(php_std_date() uses short day names in non-y2k_compliance mode).
Fixed bug
#31525
(object reference being dropped. $this getting lost).
Fixed bug
#31502
(Wrong deserialization from session when using WDDX serializer).
Fixed bug
#31465
(False warning in unpack() when working with *).
Fixed bug
#31363
). ian at snork dot net
Fixed bug
#31213
(Sideeffects caused by fix of bug #29493).
Fixed bug
#31158
(array_splice on $GLOBALS crashes).
Fixed bug
#30961
(Wrong linenumber in ReflectionClass getStartLine()).
Fixed bug
#30889
(Conflict between __get/__set and ++ operator).
Fixed bug
#30833
(array_count_values() modifying input array).
Fixed bug
#30828
(debug_backtrace() reports incorrect class in overridden methods).
Fixed bug
#30820
(static member conflict with $this->member silently ignored).
Fixed bug
#30819
(Better support for LDAP SASL bind).
Fixed bug
#30791
(magic methods (__sleep/__wakeup/__toString) call __call if object is overloaded).
Fixed bug
#30707
(Segmentation fault on exception in method).
Fixed bug
#30702
(cannot initialize class variable from class constant).
Fixed bug
#30519
(Interface not existing says Class not found).
Fixed bug
#30394
(Assignment operators yield wrong result with __get/__set).
Fixed bug
#30332
(zend.ze1_compatibility_mode isnt fully compatable with array_push()).
Fixed bug
#30162
(Catching exception in constructor causes lose of $this).
Fixed bug
#30140
(Problem with array in static properties).
Fixed bug
#30126
(Enhancement for error message for abstract classes).
Fixed bug
#30080
(Passing array or non array of objects).
Fixed bug
#29975
(memory leaks when set_error_handler() is used inside error handler).
Fixed bug
#29971
(variables_order behaviour).
Fixed bug
#29944
(Function defined in switch, crashes).
Fixed bug
#29896
(Backtrace argument list out of sync).
Fixed bug
#29683
(headers_list() returns empty array).
Fixed bug
#29583
(crash when echoing a COM object).
Fixed bug
#29338
(unencoded spaces get ignored after certain tags).
fixed bug #29210 (function
Fixed bug
#29104
(Function declaration in method doesn't work).
Fixed bug
#29015
(Incorrect behavior of member vars(non string ones)-numeric mem vars und others).
Fixed bug
#28839
(SIGSEGV in interactive mode (php -a)).
Fixed bug
#28605
(Need to use -[m]ieee option for Alpha CPUs).
Fixed bug
#28377
(debug_backtrace is intermittently passing args).
Fixed bug
#27598
(list() array key assignment causes HUGE memory leak).
Fixed bug
#26456
(Wrong results from Reflection-API getDocComment() when called via STDIN).
Fixed bug
#25922
(In error handler, modifying 5th arg (errcontext) may result in seg fault).
Fixed bug
#22836
(returning reference to uninitialized variable).
Fixed bug
#29689
(default value of protected member overrides default value of private) and other private variable problems in inherited classes
Fixed bug
#29253
(array_diff with $GLOBALS argument fails).
Abstract private methods are no longer allowed
↑
and
↓
to navigate •
Enter
to select •
Esc
to close •
/
to open
Press
Enter
without selection to search using Google