[wp-trac] Re: [WordPress Trac] #3155: Several "notice" messages in WP 2.1-alpha3

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 21 18:59:09 GMT 2006


#3155: Several "notice" messages in WP 2.1-alpha3
-------------------------+--------------------------------------------------
 Reporter:  quix0r       |        Owner:  anonymous
     Type:  enhancement  |       Status:  new      
 Priority:  normal       |    Milestone:  2.1      
Component:  General      |      Version:  2.1      
 Severity:  major        |   Resolution:           
 Keywords:               |  
-------------------------+--------------------------------------------------
Comment (by quix0r):

 Please try this text script out to prove it yourself:

 <?php
 //error_reporting(E_ALL);

 // Init
 $result = array(); $index = 1;

 $start = explode(" ", microtime());
 $start = $start[0] + $start[1];

 for ($idx = 0; $idx < 1000000; $idx++) {
      $result[$index+$idx] = $idx;
 }

 $end = explode(" ", microtime());
 $end = $end[0] + $end[1];

 echo "Time: ".($end - $start);

 ?>

 First don't comment the line behind // Init out. Execute the script and
 wait... Write down the time and comment it out. Run the script again. Now
 compare both times... :-)

 Attention: If you comment in error_reporting this will produce a very big
 "page" in your browser.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3155>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list