Re: [PHP] Array_merge, safety and race condition?

2005-11-11 Thread Richard Lynch
On Thu, November 10, 2005 6:44 pm, Ezra Nugroho wrote: $array1 = array_merge ($array1, $array2); So far the code gives me what I want. However, suppose if $array1 is extremely huge, am I introducing a bug here because of possible race condition? It's possible that array_merge has two write

[PHP] Array_merge, safety and race condition?

2005-11-10 Thread Ezra Nugroho
Php experts everywhere, I want to merge two arrays, and I want to store the result as the first array. Something like the following: $array1 = array_merge ($array1, $array2); So far the code gives me what I want. However, suppose if $array1 is extremely huge, am I introducing a bug here

[PHP] array_merge changed behaviour in Php5??

2004-09-05 Thread I2eptileX
Hi, I came across a strange behaviour in array_merge since I installed php5. I merge three arrays, one of them can be empty. So not an array at all. In php 4.3.6 that I had before, there was no warning and the two first arrays were merged. In php5 on the other hand, there is a warning and my

[PHP] array_merge();

2001-11-21 Thread Edgardo Rossetto
Hi: I have a problem width array_merge(); in PHP 4 beta 2 (my ISP sucks, sorry) and i need to know if there's a similar function o way to do this. Please help me! Bye Edgardo Rossetto -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] array_merge();

2001-11-21 Thread Brian Clark
Hi Edgardo, @ 8:09:26 AM on 11/21/01, Edgardo Rossetto wrote: I have a problem width array_merge(); in PHP 4 beta 2 (my ISP sucks, sorry) and i need to know if there's a similar function o way to do this. There's probably a faster/elegant way to do this, but this should work: ?php function

Re: [PHP] array_merge();

2001-11-21 Thread Edgardo Rossetto
It works, thanks. Edgardo Brian Clark [EMAIL PROTECTED] escribió en el mensaje [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi Edgardo, @ 8:09:26 AM on 11/21/01, Edgardo Rossetto wrote: I have a problem width array_merge(); in PHP 4 beta 2 (my ISP sucks, sorry) and i need to know if