downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the SVN repository for this website on svn.php.net.

Source of: /manual/en/migration52.other.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/migration52.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'en',
  ),
 
'this' =>
  array (
   
0 => 'migration52.other.php',
   
1 => 'Other Enhancements',
  ),
 
'up' =>
  array (
   
0 => 'migration52.php',
   
1 => 'Migrating from PHP 5.1.x to PHP 5.2.x',
  ),
 
'prev' =>
  array (
   
0 => 'migration52.errorrep.php',
   
1 => 'Error Reporting',
  ),
 
'next' =>
  array (
   
0 => 'migration51.php',
   
1 => 'Migrating from PHP 5.0.x to PHP 5.1.x',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div id="migration52.other" class="section">
  <h2 class="title">Other Enhancements</h2>
  <ul class="itemizedlist">
   <li class="listitem">
    <span class="simpara">
     Improved memory manager and increased default memory limit.
    </span>
    <span class="simpara">
     The new memory manager allocates less memory and works faster than the
     previous incarnation. It allocates memory from the system in large blocks,
     and then manages the heap by itself. The <i>memory_limit</i> value in <var class="filename">php.ini</var> is
     checked, not for each <i>emalloc()</i> call (as before), but for actual blocks
     requested from the system. This means that <i>memory_limit</i> is far more
     accurate than it used to be, since the old memory manager didn&#039;t calculate
     all the memory overhead used by the <i>malloc</i> library.
    </span>
    <span class="simpara">
     Thanks to this new-found accuracy memory usage may appear to have increased,
     although actually it has not. To accommodate this apparent increase, the
     default <i>memory_limit</i> setting was also increased - from 8 to 16 megabytes.
    </span>
   </li>
   <li class="listitem">
    <span class="simpara">
     Added support for constructors in interfaces to force constructor signature
     checks in implementations.
    </span>
    <span class="simpara">
     Starting with PHP 5.2.0, interfaces can have constructors. However, if you choose
     to declare a constructor in an interface, each class implementing that interface
     MUST include a constructor with a signature matching that of the base interface
     constructor. By &#039;signature&#039; we mean the parameter and return type definitions,
     including any type hints and including whether the data is passed by reference
     or by value.
    </span>
   </li>
  </ul>
 </div><?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites