Skip to content
Newer
Older
100644 42 lines (31 sloc) 1.44 KB
61e6cd2 Reorganization.
Moriyoshi Koizumi authored Dec 14, 2003
1 1. strrpos() and strripos() now use the entire string as a needle.
2 Be aware that the existing scripts may no longer work as you expect.
3
1fa7458 A small start for so called "not-yet-written faq" about small changes…
Andrey Hristov authored Dec 6, 2003
4 EX :
5 <?php
6 var_dump(strrpos("ABCDEF","DEF"));
7 var_dump(strrpos("ABCDEF","DAF"));
8 ?>
32f41d1 add an example for illegal string offset. the example is stolen from …
Andrey Hristov authored Dec 13, 2003
9
61e6cd2 Reorganization.
Moriyoshi Koizumi authored Dec 14, 2003
10 Will give you different results. The former returns 3 while the latter
11 returns false rather than the position of the last occurrence of 'D'.
12 The same applies to strripos().
13
14 2. Illegal use of string offsets causes E_ERROR instead of E_WARNING.
15
32f41d1 add an example for illegal string offset. the example is stolen from …
Andrey Hristov authored Dec 13, 2003
16 EX :
61e6cd2 Reorganization.
Moriyoshi Koizumi authored Dec 14, 2003
17 <?php
18 $a = "foo";
19 unset($a[0][1][2]);
20 ?>
21
22 Fatal error: Cannot use string offset as an array in ... on line 1
32f41d1 add an example for illegal string offset. the example is stolen from …
Andrey Hristov authored Dec 13, 2003
23
61e6cd2 Reorganization.
Moriyoshi Koizumi authored Dec 14, 2003
24 3. array_merge() was changed to accept only arrays. If a non-array variable is
25 passed, a E_WARNING will be thrown for every such parameter. Be careful
26 because your code may start emitting E_WARNING out of the blue.
32f41d1 add an example for illegal string offset. the example is stolen from …
Andrey Hristov authored Dec 13, 2003
27
61e6cd2 Reorganization.
Moriyoshi Koizumi authored Dec 14, 2003
28 4. Be careful when porting from ext/mysql to ext/mysqli. The following
29 functions return NULL when no more data is available in the result set
30 (ext/mysql's functions return FALSE).
31
32 - mysqli_fetch_row()
33 - mysqli_fetch_array()
34 - mysqli_fetch_assoc()
5ce35b8 Note about Apache2 SAPI change.
Moriyoshi Koizumi authored Dec 14, 2003
35
36 5. PATH_TRANSLATED server variable is no longer set implicitly under
37 Apache2 SAPI in contrast to the situation in PHP4, where it is set to the
38 same value as the SCRIPT_FILENAME server variable when it is not populated
39 by Apache. This change was made to comply with the CGI specification.
40 Please refer to bug #23610 for further information.
61e6cd2 Reorganization.
Moriyoshi Koizumi authored Dec 14, 2003
41
Something went wrong with that request. Please try again.