Alert For All Developers Regarding PHP 5.4

Kita sedia maklum PHP 5.4 dah keluar dan boleh di update di mana-mana server. Namun hati-hati bagi semua developer. Ini kerana kebanyakan sistem dalam versi PHP 5.3 kemungkinan tidak compatible dengan PHP 5.4 ni.
Berikut beberapa perkara penting kena ambil perhatia. Maaf ayat omputih sebab amik dari sumber internet :
Source : http://alex.frenkel-online.com/2012/03/02/php-5-4-is-out-and-here-is-the-list-you-should-be-watching/
    • The break and continue keywords don’t accept variable argument anymore. Consider using a static constant argument.
    • Safe mode is no longer supported. Any application that rely on safe mode may need adjustements in term of security.
    • Salsa10 and Salsa20 hash algorithms have been removed.
    • In Date extension, setting the timezone with the TZ environment variable is no longer supported. The extension will no longer guess the default timezone if none is set, instead it will always fall back to “UTC”.
    • get_magic_quotes_gpc() and get_magic_quotes_runtime() now always return false. set_magic_quotes_runtime() raises an E_CORE_ERROR
    • Non-numeric string offsets – e.g. $a['foo'] where $a is a string – now return false on isset() and true on empty(), and produce warning if trying to use them. Offsets of types double, bool and null produce notice. Numeric strings ($a['2']) still work as before. Note that offsets like ’12.3′ and ’5 and a half’ are considered non-numeric and produce warning, but are converted to 12 and 5 respectively for BC reasons.
    • Turning null, false or empty string into an object by adding a property will now emit a warning instead of an E_STRICT error.
    • Converting array to string now will cause E_NOTICE warning.
    • Shadowing names of superglobals for parameter names now causes a fatal error.
    • array_combine() now returns array() instead of FALSE when two empty arrays are provided as parameters.
    • call_user_func_array() no longer allows call-time pass by reference.
    • htmlentities() now emits an E_STRICT warning when used with asian characters, as in that case htmlentities() has (and already had before this version) the same functionality as htmlspecialchars().
The following keyword(s) are now reserved and may not be used in function, class, etc. names.
  • trait
  • callable
  • insteadof
The following functions have been removed from PHP :
  • define_syslog_variables()
  • import_request_variables()
  • session_is_registered(), session_register() and session_unregister()
  • mysqli_bind_param(), mysqli_bind_result(), mysqli_client_encoding(), mysqli_fetch(), mysqli_param_count(), mysqli_get_metadata(), mysqli_send_long_data(), mysqli::client_encoding() and mysqli_stmt::stmt()

Jadi pengamal coding PHP tegar kepada sesetengah function sebelum ni  ada pada versi PHP 5.3 tapi kini PHP 5.4 dah tiada kenalah berubah. Mereka buat semua tu semestinya ada sebab tertentu..tanya aku...maaf aku pun tak tau lagik...

Aku dah try upgrade dan banyak Sistem yang masih belum MESRA dengan PHP 5.4 ni..Sistem Gallery 3 aku tk mesra..sistem develop guna PHPRunner versi 5.3 juga tak MESRA..sistem Project Management Project Pier juga tk MESRA..

Test dulu sistem anda..jgn tengok kat luar je tapi tgk kt log file anda..byk info kat situ..

~ Be a Creator Not a User ~

Ulasan