Changed functions

PHP Core

  • debug_zval_dump() now prints "int" instead of "long", and "float" instead of "double"
  • dirname() now optionally takes a second parameter, depth, to get the name of the directory depth levels up from the current directory.
  • getrusage() is now supported on Windows.
  • mktime() and gmmktime() functions no longer accept is_dst parameter.
  • preg_replace() function no longer supports "\e" (PREG_REPLACE_EVAL). preg_replace_callback() should be used instead.
  • setlocale() function no longer accepts category passed as string. LC_* constants must be used instead.
  • exec(), system() and passthru() functions have NULL byte protection now.
  • substr() now returns an empty string, if string is equal to start characters long.
  • xml_set_object() now requires to manually unset the $parser when finished, to avoid memory leaks.

Коментарии

substr() behavior is also changed in php 7:

If string is equal to start characters long, an empty string will be returned. Prior to this version (7), FALSE was returned in this case.

function.substr
2015-12-21 19:27:51
http://php5.kiev.ua/manual/ru/migration70.changed-functions.html

    Поддержать сайт на родительском проекте КГБ