Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 9240

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!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>Integer values in function parameters</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="migration51.reading.html">Reading []</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="migration51.oop.html">Class and object changes</a></div>
 <div class="up"><a href="migration51.html">Migrating from PHP 5.0.x to PHP 5.1.x</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="migration51.integer-parameters" class="section">
  <h2 class="title">Integer values in function parameters</h2>
  <p class="para">
   With the advent of PHP 5.0.x, a new parameter parsing API was introduced
   which is used by a large number of PHP functions. In all versions of PHP
   between 5.0.x and 5.1.x, the handling of integer values was very strict and
   would reject non-well formed numeric values when a PHP function expected an
   integer. These checks have now been relaxed to support non-well formed
   numeric strings such as &quot; 123&quot; and &quot;123 &quot;, and will no longer fail as they
   did under PHP 5.0.x. However, to promote code safety and input validation,
   PHP functions will now emit an <strong><code>E_NOTICE</code></strong> when such
   strings are passed as integers.
  </p>
 </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="migration51.reading.html">Reading []</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="migration51.oop.html">Class and object changes</a></div>
 <div class="up"><a href="migration51.html">Migrating from PHP 5.0.x to PHP 5.1.x</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>