Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 323 lines (250 sloc) 9.697 kb
420721d fix tag
sniper authored
1 $Id$
b4ac113 Added 5.1 upgrading notes.
iliaa authored
2
7b8a412 Reset this document
rasmus authored
3 UPGRADE NOTES - PHP X.Y
4
5 1. Changes made to default configuration
6 2. Reserved words and classes
7 3. Changes made to existing functions
8 4. Changes made to existing methods
9 5. Changes made to existing classes
10 6. Deprecated
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
11 7. Extensions:
12 a. moved out to PECL and actively maintained there
13 b. no longer maintained
14 c. with changed behaviour
15 d. no longer possible to disable
16 8. Changes in SAPI support
17 9. Changes in INI directives
18 10. Syntax additions
4915c29 - fix index
pajoye authored
19 11. Syntax additions
20 12. Windows support
7b8a412 Reset this document
rasmus authored
21 12. New in PHP X.Y:
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
22 a. New libraries
23 b. New extensions
24 c. New stream wrappers
f465e89 Missing enhancements
bjori authored
25 d. New stream filters
26 e. New functions
27 f. New global constants
28 g. New classes
29 h. New methods
30 i. New class constants
7b8a412 Reset this document
rasmus authored
31 j. New hash algorithms
b4ac113 Added 5.1 upgrading notes.
iliaa authored
32
7b8a412 Reset this document
rasmus authored
33 ========================================
34 1. Changes made to default configuration
35 ========================================
f465e89 Missing enhancements
bjori authored
36
7b8a412 Reset this document
rasmus authored
37 - The default_charset setting now defaults to UTF-8.
38 It was ISO-88590-1 before, so if you were relying
39 on the default, you will need to add:
b8d46fe Synced with the wiki
philip authored
40
7b8a412 Reset this document
rasmus authored
41 default_charset = iso-8859-1
b4ac113 Added 5.1 upgrading notes.
iliaa authored
42
0a45757 Set session.entropy_file to /dev/urandom or /dev/arandom by
rasmus authored
43 to your php.ini to preserve pre-PHPX.Y behavior.
44
45 - We now check at compile time if /dev/urandom or /dev/arandom
46 are present to provide non-blocking entropy to session id
47 generation. If either is present, session.entropy_file
48 now defaults to that file and session.entropy_length defaults
49 to 32. If you do not want extra entropy for your session ids
50 for some reason, add:
51
52 session.entropy_file=
53 session.entropy_length=0
54
55 to your php.ini to preserve pre-PHPX.Y behavior.
b4ac113 Added 5.1 upgrading notes.
iliaa authored
56
efb4df6 Update UPGRADING with recent feature removals
kalle authored
57 - Deprecated ini directives will now throw an E_CORE_WARNING's
58 instead of the previous E_WARNING's.
59
60 The following directives are marked as deprecated:
61 - magic_quotes_gpc
62 - magic_quotes_runtime
63 - magic_quotes_sybase
64
65 - The following directives, which indicates a removed feature
66 in PHP will now throw an E_CORE_ERROR upon startup like the
67 deprecation warnings.
68
69 The following directives are no longer available:
70 - allow_call_time_pass_reference
71 - define_syslog_variables
72 - highlight.bg
73 - register_globals
74 - register_long_arrays
75 - safe_mode
76 - safe_mode_gid
77 - safe_mode_include_dir
78 - safe_mode_exec_dir
79 - safe_mode_allowed_env_vars
80 - safe_mode_protected_env_vars
81 - zend.ze1_compatibility_mode
82
7b8a412 Reset this document
rasmus authored
83 =============================
84 2. Reserved words and classes
85 =============================
a01465a Whitespace fixes, reformatting to bring all lines to 80 cols, grammatica...
gwynne authored
86
7b8a412 Reset this document
rasmus authored
87 -
a01465a Whitespace fixes, reformatting to bring all lines to 80 cols, grammatica...
gwynne authored
88
7b8a412 Reset this document
rasmus authored
89 =====================================
90 3. Changes made to existing functions
91 =====================================
bd80623 More missing stuff
bjori authored
92
fb7c5fb Implemented request #34857 (Change array_combine behaviour when called w...
aharvey authored
93 - array_combine now returns array() instead of FALSE when two empty arrays are
94 provided as parameters.
06cbff8 - Added to UPGRADING(.INTERNALS) information about the changes on html.c...
cataphract authored
95 - Added an extra parameter to dns_get_record(), which allows requesting DNS
96 records by numeric type and makes the result include only the raw data of
97 the response.
98 - call_user_func_array no longer allows call-time pass by reference.
99 - htmlentities/htmlspecialchars are stricter in the code units they accept for
100 the asian encodings. For Big5-HKSCS, the octets 0x80 and 0xFF are rejected.
101 For GB2312/EUC-CN, the octets 0x8E, 0x8F, 0xA0 and 0xFF are rejected. For
102 SJIS, the octets 0x80, 0xA0, 0xFD, 0xFE and 0xFF are rejected, except maybe
103 after a valid starting byte. For EUC-JP, the octets 0xA0 and 0xFF are
104 rejected.
105 - htmlentities now emits an E_STRICT warning when used with asian characters,
106 as in that case htmlentities has (and already had before this version) the
107 same functionality as htmlspecialchars.
108 - htmlentities no longer numerically encodes high characters for single-byte
109 encodings (except when there's actually a corresponding named entity). This
110 behavior was not documented and was inconsistent with that for "UTF-8".
111 - html_entity_decode/htmlspecialchars_decode behave more consistently, now
112 decoding entities in malformed strings such as "&&" or "&#&".
113 - htmlentities/htmlspecialchars/html_entity_decode/htmlspecialchars_decode:
114 Added the flags ENT_HTML401, ENT_XML1, ENT_XHTML, and ENT_HTML5. The
115 behavior of these functions including, but not limited to, the characters
116 that are encoded and the entities that are decoded depend on the document
117 type that is specified by those flags.
118 - htmlentities/htmlspecialchars with !$double_encode do more strict checks on
119 the validity of the entities. Numerical entities are checked for a valid
120 range (0 to 0x10FFFF); if the flag ENT_DISALLOWED is given, the validity of
121 such numerical entity in the target document type is also checked. Named
122 entitities are checked for necessary existence in the target document type
123 instead of only checking whether they were constituted by alphanumeric
124 characters.
125 - The flag ENT_DISALLOWED was addded. In addition to the behavior described in
126 the item before, it also makes htmlentities/htmlspecialchars substitute
127 characters that appear literally in the argument string and which are not
128 allowed in the target document type with U+FFFD (UTF-8) or �.
129 - The flag ENT_SUBSTITUTE was added. This flag makes invalid multibyte
130 sequences be replaced by U+FFFD (UTF-8) or &#FFFD; by htmlspecialchars and
131 htmlentities. It is an alternative to the default behavior, which just
132 returns an empty string and to ENT_IGNORE, which is a security risk. The
133 behavior follows the recommendations of Unicode Technical Report #36.
134 - htmlspecialchars_decode/html_entity_decode now decode ' if the document
135 type is ENT_XML1, ENT_XHTML, or ENT_HTML5.
84943cb Implemented FR #53238 (Make third parameter of preg_match_all optional).
aharvey authored
136 - The third parameter ($matches) to preg_match_all() is now optional. If
137 omitted, the function will simply return the number of times the pattern was
138 matched in the subject and will have no other side effects.
06cbff8 - Added to UPGRADING(.INTERNALS) information about the changes on html.c...
cataphract authored
139
bd80623 More missing stuff
bjori authored
140
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
141 ===================================
7b8a412 Reset this document
rasmus authored
142 4. Changes made to existing methods
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
143 ===================================
b4ac113 Added 5.1 upgrading notes.
iliaa authored
144
7b8a412 Reset this document
rasmus authored
145 -
b4ac113 Added 5.1 upgrading notes.
iliaa authored
146
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
147 ===================================
7b8a412 Reset this document
rasmus authored
148 5. Changes made to existing classes
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
149 ===================================
b4ac113 Added 5.1 upgrading notes.
iliaa authored
150
7b8a412 Reset this document
rasmus authored
151 -
b4ac113 Added 5.1 upgrading notes.
iliaa authored
152
153 =============
7b8a412 Reset this document
rasmus authored
154 6. Deprecated
b4ac113 Added 5.1 upgrading notes.
iliaa authored
155 =============
156
efb4df6 Update UPGRADING with recent feature removals
kalle authored
157 ==========
158 7. Removed
159 ==========
160
161 a. removed features
162
163 - register_globals
164 - register_long_arrays
165 - Safe mode
166 - Session extension bug compatibility mode
167 - y2k_compliance mode
168
169 b. removed ini directives
170
171 - define_syslog_variables
172 - register_globals
173 - register_long_arrays
174 - safe_mode
175 - safe_mode_gid
176 - safe_mode_include_dir
177 - safe_mode_exec_dir
178 - safe_mode_allowed_env_vars
179 - safe_mode_protected_env_vars
180 - session.bug_compat42
181 - session.bug_compat_warn
182 - y2k_compliance
183
184 c. removed functions
185
186 - define_syslog_variables()
187 - import_request_variables()
188 - session_is_registered()
189 - session_register()
190 - session_unregister()
932172d Cleanup in trunk. Remove some functions, noted in
andrey authored
191 - mysqli_bind_param() (alias of mysqli_stmt_bind_param())
192 - mysqli_bind_result() (alias of mysqli_stmt_bind_result())
193 - mysqli_client_encoding() (alias of mysqli_character_set_name())
194 - mysqli_fetch() (alias of mysqli_stmt_fetch())
195 - mysqli_param_count() (alias of mysqli_stmt_param_count())
196 - mysqli_get_metadata() (alias of mysqli_stmt_result_metadata())
197 - mysqli_send_long_data() (alias of mysqli_stmt_send_long_data())
198 - mysqli::client_encoding() (alias of mysqli::character_set_name)
199 - mysqli_stmt::stmt() (never worked/always throws, undocumented)
efb4df6 Update UPGRADING with recent feature removals
kalle authored
200
201 =============
202 8. Extensions
203 =============
b4ac113 Added 5.1 upgrading notes.
iliaa authored
204
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
205 a. moved out to PECL and actively maintained there
b4ac113 Added 5.1 upgrading notes.
iliaa authored
206
7b8a412 Reset this document
rasmus authored
207 -
b4ac113 Added 5.1 upgrading notes.
iliaa authored
208
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
209 b. no longer maintained
b4ac113 Added 5.1 upgrading notes.
iliaa authored
210
7b8a412 Reset this document
rasmus authored
211 -
b4ac113 Added 5.1 upgrading notes.
iliaa authored
212
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
213 c. with changed behaviour
b4ac113 Added 5.1 upgrading notes.
iliaa authored
214
354f7ae @arnaud-lb NEWS
arnaud-lb authored
215 - The session extension now can hook into the file upload feature
216 in order to provide upload progress information through session
217 variables.
c889c74 Persistent connections with mysqli missing
kalle authored
218
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
219 d. no longer possible to disable
b4ac113 Added 5.1 upgrading notes.
iliaa authored
220
7b8a412 Reset this document
rasmus authored
221 -
b4ac113 Added 5.1 upgrading notes.
iliaa authored
222
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
223 ==========================
efb4df6 Update UPGRADING with recent feature removals
kalle authored
224 9. Changes in SAPI support
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
225 ==========================
b4ac113 Added 5.1 upgrading notes.
iliaa authored
226
9aa03ee REQUEST_TIME notes
iliaa authored
227 - The REQUEST_TIME value insde server now returns a floating point number
228 indicating the time with microsecond precision. All SAPIs provinding this
229 value should be returning float and not time_t.
b4ac113 Added 5.1 upgrading notes.
iliaa authored
230
efb4df6 Update UPGRADING with recent feature removals
kalle authored
231 =============================
232 10. Changes in INI directives
233 =============================
b4ac113 Added 5.1 upgrading notes.
iliaa authored
234
354f7ae @arnaud-lb NEWS
arnaud-lb authored
235 - Added session.upload_progress.enabled, session.upload_progress.cleanup,
236 session.upload_progress.prefix, session.upload_progress.name,
237 session.upload_progress.freq, session.upload_progress.min_freq.
7e022fa - Added missing deprecated things
bjori authored
238
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
239 ====================
efb4df6 Update UPGRADING with recent feature removals
kalle authored
240 11. Syntax additions
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
241 ====================
b4ac113 Added 5.1 upgrading notes.
iliaa authored
242
e2e287b - Added array dereferencing support [DOC]
felipe authored
243 - Array dereferencing.
244 e.g.
245 foo()[0]
246 $foo->bar()[0]
a01465a Whitespace fixes, reformatting to bring all lines to 80 cols, grammatica...
gwynne authored
247
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
248 ===================
efb4df6 Update UPGRADING with recent feature removals
kalle authored
249 12. Windows support
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
250 ===================
251
9a71a3e - is_link note
pajoye authored
252 - is_link now works properly for symbolic links on Windows Vista
253 or later. Earlier systems do not support symbolic links.
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
254
255 ===================
efb4df6 Update UPGRADING with recent feature removals
kalle authored
256 13. New in PHP X.Y:
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
257 ===================
258
259 a. New libraries
260
7b8a412 Reset this document
rasmus authored
261 -
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
262
263 b. New extensions
264
7b8a412 Reset this document
rasmus authored
265 -
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
266
267 c. New stream wrappers
268
7b8a412 Reset this document
rasmus authored
269 -
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
270
91f9d51 Missing items
bjori authored
271 d. New stream filters
272
7b8a412 Reset this document
rasmus authored
273 -
91f9d51 Missing items
bjori authored
274
275 e. New functions
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
276
7b8a412 Reset this document
rasmus authored
277 - Core:
b64a234 Update UPGRADING
kalle authored
278 - get_declared_traits()
279 - http_response_code()
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
280
91f9d51 Missing items
bjori authored
281 f. New global constants
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
282
44e87a5 Implement FR #44331 (Formatting option for json_encode). Bikeshedding ab...
aharvey authored
283 - JSON_PRETTY_PRINT
dec622c Implemented FR #49366 (Make slash escaping optional in json_encode()).
aharvey authored
284 - JSON_UNESCAPED_SLASHES
06cbff8 - Added to UPGRADING(.INTERNALS) information about the changes on html.c...
cataphract authored
285 - ENT_SUBSTITUTE
286 - ENT_ALLOWED
287 - ENT_HTML401
288 - ENT_XML1
289 - ENT_XHTML
290 - ENT_HTML5
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
291
91f9d51 Missing items
bjori authored
292 g. New classes
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
293
2cf868c - One more reflection entry
johannes authored
294 - Reflection:
295 - ReflectionZendExtension
06cbff8 - Added to UPGRADING(.INTERNALS) information about the changes on html.c...
cataphract authored
296
297 - Intl:
298 - Transliterator
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
299
91f9d51 Missing items
bjori authored
300 h. New methods
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
301
6fef6dd - Added ReflectionClass::isCloneable() [DOC]
felipe authored
302 - Reflection:
303 - ReflectionClass::isCloneable()
e1a9ffb - Added the three new ReflectionClass methods related to traits
felipe authored
304 - ReflectionClass::getTraits()
305 - ReflectionClass::getTraitNames()
306 - ReflectionClass::getTraitAliases()
30ee43b - Added ReflectionParameter::canBePassedByValue().
cataphract authored
307 - ReflectionParameter::canBePassedByValue()
aaa0fa2 - Added missing entries related to pdo_dblib
felipe authored
308
309 - PDO_dblib
310 - PDO::newRowset()
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
311
91f9d51 Missing items
bjori authored
312 i. New class constants
f81c1d9 - Skeleton version taken directly from the scratchpad and tidied.
sfox authored
313
7b8a412 Reset this document
rasmus authored
314 -
315
316 j. New Hash algorithms
317
318 - fnv132
319 - fnv164
320 - joaat
500befc - use TSRMLS_CC instead of TSRMLS_FETCH in virtual_file_ex
pajoye authored
321
322
Something went wrong with that request. Please try again.