The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 05-10-2007
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
Not too sure about that.

In fact I made a simple script:

Code:
<?php

$ary = range(0, 50000);
$newary = $ary;

?>
So I am assigning a 50001-element array to another variable. There doesn't seem to be any speed issue on my PHP 5.2.0. It's just a desktop system.

But are you sure of the changes between PHP4 and PHP5 regarding variable/object assignment (copying) behaviour? As you cannot provide with the simplest version of the script that give the behaviour, I guess everything mentioned can just be a wild guess.