<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Changed Functions</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="migration54.deprecated.html">Deprecated features in PHP 5.4.x</a></div> <div class="next" style="text-align: right; float: right;"><a href="migration54.functions.html">New Functions</a></div> <div class="up"><a href="migration54.html">Migrating from PHP 5.3.x to PHP 5.4.x</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="migration54.parameters" class="section"> <h2 class="title">Changed Functions</h2> <p class="simpara"> Several functions were given new, optional parameters in PHP 5.4: </p> <p class="simpara">PHP Core:</p> <ul class="itemizedlist"> <li class="listitem"> <span class="simpara"> Added the optional <em><code class="parameter">limit</code></em> parameter to <span class="function"><a href="function.debug-backtrace.html" class="function">debug_backtrace()</a></span> and <span class="function"><a href="function.debug-print-backtrace.html" class="function">debug_print_backtrace()</a></span>, to limit the amount of stack frames returned. </span> </li> <li class="listitem"> <span class="simpara"> <span class="function"><a href="function.is-link.html" class="function">is_link()</a></span> now works properly for symbolic links on Windows Vista or later. Earlier systems do not support symbolic links. </span> </li> <li class="listitem"> <span class="simpara"> <span class="function"><a href="function.parse-url.html" class="function">parse_url()</a></span> now recognizes the host when a scheme is omitted, and a leading component separator is present. As of PHP 5.4.7. </span> </li> </ul> <p class="simpara">OpenSSL:</p> <ul class="itemizedlist"> <li class="listitem"> <span class="simpara"> Added a no padding option to the <span class="function"><a href="function.openssl-encrypt.html" class="function">openssl_encrypt()</a></span> and <span class="function"><a href="function.openssl-decrypt.html" class="function">openssl_decrypt()</a></span> functions. </span> </li> </ul> <p class="simpara">Intl:</p> <ul class="itemizedlist"> <li class="listitem"> <span class="simpara"> <span class="function"><a href="function.idn-to-ascii.html" class="function">idn_to_ascii()</a></span> and <span class="function"><a href="function.idn-to-utf8.html" class="function">idn_to_utf8()</a></span> now take two extra parameters, one indicating the variant (IDNA 2003 or UTS #46) and another, passed by reference, to return details about the operation in case UTS #46 is chosen. </span> </li> </ul> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="migration54.deprecated.html">Deprecated features in PHP 5.4.x</a></div> <div class="next" style="text-align: right; float: right;"><a href="migration54.functions.html">New Functions</a></div> <div class="up"><a href="migration54.html">Migrating from PHP 5.3.x to PHP 5.4.x</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>