Dokumentation: Hier wird Ihnen gezeigt, was sie alles ändern müssen, damit das PHPKIT 1.6.5 Build 12 PHP Version 5.3.1++ Kompatibel wird
Hier mal eine Liste mit Funktionen, die es nicht mehr oder nur noch bis PHP Version 6.0 geben wird. Alle Coder werden gebeten
möglichst keine der Funktionen aus der folgenden Liste noch weiter zu verwenden!
Veraltete Funktionen (Werden in PHP Version 6.0 entfernt!!!):
- call_user_method() (use call_user_func() instead)
- call_user_method_array() (use call_user_func_array() instead)
- define_syslog_variables()
- dl()
- ereg() (use preg_match() instead)
- ereg_replace() (use preg_replace() instead)
- eregi() (use preg_match() with the 'i' modifier instead)
- eregi_replace() (use preg_replace() with the 'i' modifier instead)
- set_magic_quotes_runtime() and its alias, magic_quotes_runtime()
- session_register() (use the $_SESSION superglobal instead)
- session_unregister() (use the $_SESSION superglobal instead)
- session_is_registered() (use the $_SESSION superglobal instead)
- set_socket_blocking() (use stream_set_blocking() instead)
- split() (use preg_split() instead)
- spliti() (use preg_split() with the 'i' modifier instead)
- sql_regcase()
- mysql_db_query() (use mysql_select_db() and mysql_query() instead)
- mysql_escape_string() (use mysql_real_escape_string() instead)
- Passing locale category names as strings is now deprecated. Use the LC_* family of constants instead.
- The is_dst parameter to mktime(). Use the new timezone handling functions instead.
Veraltete Eigenschaften:
- Assigning the return value of new by reference is now deprecated.
- Call-time pass-by-reference is now deprecated.
- The use of {} to access string offsets is deprecated. Use [] instead.
Wird erweitert, wenn weitere Inkompatibilitäten gefunden werden!
pkinc/class/sql.php
Suche:
| PHP-Code Anfang: (1 Zeile) | Code markieren | | | if($tablelist = mysql_list_tables($this->database, $this->servercon)) | | | PHP-Code ENDE: (1 Zeile) | Code markieren | |
Ersetze es mit:
| PHP-Code Anfang: (1 Zeile) | Code markieren | | | if($tablelist=$this->query("SHOW TABLES FROM ".$this->database)) | | | PHP-Code ENDE: (1 Zeile) | Code markieren | |
pkinc/public/article.php
Leerzeichen bei =>
< break> sind zu entfernen!
Suche:
| PHP-Code Anfang: (1 Zeile) | Code markieren | | | if(eregi('< break>',$contentinfo['content_text'])) | | | PHP-Code ENDE: (1 Zeile) | Code markieren | |
Ersetze es mit:
| PHP-Code Anfang: (1 Zeile) | Code markieren | | | if(preg_match('/< break>/i',$contentinfo['content_text'])) | | | PHP-Code ENDE: (1 Zeile) | Code markieren | |