summaryrefslogtreecommitdiff
path: root/README.PHP4-TO-PHP5-THIN-CHANGES
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2003-12-13 12:33:14 +0000
committerAndrey Hristov <andrey@php.net>2003-12-13 12:33:14 +0000
commit32f41d172d6131cbb98d5c73c7cba82a30170044 (patch)
tree5b87a8b5f13df2cbd0f472876548b6d2233353ee /README.PHP4-TO-PHP5-THIN-CHANGES
parentec7ddff5c71c54c70172752decaa5b786cdc3b63 (diff)
downloadphp-git-32f41d172d6131cbb98d5c73c7cba82a30170044.tar.gz
add an example for illegal string offset. the example is stolen from Marcus
and Markus should be now satisfied :). Currently this code segfaults with PHP_4_3.
Diffstat (limited to 'README.PHP4-TO-PHP5-THIN-CHANGES')
-rw-r--r--README.PHP4-TO-PHP5-THIN-CHANGES6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.PHP4-TO-PHP5-THIN-CHANGES b/README.PHP4-TO-PHP5-THIN-CHANGES
index 9196481cff..91e2029843 100644
--- a/README.PHP4-TO-PHP5-THIN-CHANGES
+++ b/README.PHP4-TO-PHP5-THIN-CHANGES
@@ -5,8 +5,14 @@
var_dump(strrpos("ABCDEF","DAF"));
?>
Will give you differents results. The diffence is in the second cal to strrpos(). The same applies and for strripos().
+
2. Change illegal use of string offset from E_WARNING to E_ERROR
+ EX :
+ marcus@zaphod /usr/src/php5 $ sapi/cli/php -r '$a = "foo"; unset($a[0][1][2]);'
+ Fatal error: Cannot use string offset as an array in Command line code on line 1
+
3. array_merge() accepts only arrays. If non-array is passed a E_WARNING for every non-array
parameter will be throwed. Be careful because your code may start emitting E_WARNING out of the blue.
+
4. Be careful when porting from ext/mysql to ext/mysqli. mysqli_fetch_row()/mysqli_fetch_array()/mysql_fetch_assoc()
retun NULL when there is no more data in the result set (ext/mysql's functions return FALSE).