[PHP] Strange error in PHP 4.3.4RC2

2003-10-26 Thread Fabio Rotondo
Hi, I am experiencing a strange error while using PHP 4.3.4RC2. In the apache2 log, I read: fatal: cannot realloc() 1937201923 bytes. I do NEVER try to allocate such memory. I think the problem is related to some serialize/unserialize() code I am using (in fact, removing serialize/unserialize

[PHP] Re: string concatenation from array

2003-08-14 Thread Fabio Rotondo
Micah Montoy wrote: I'm having a bit of difficulty getting a string to attach to itself from an array. Here is the bit of code I'm working on. $wresult = ; foreach ($search_string as $word_result){ $wresult = $wresult $word_result; } what about: $wresult = join ( , $search_string );

[PHP] Strange problem in class creation

2003-08-14 Thread Fabio Rotondo
Hi all, I have encountered a tricky problem with PHP 4.3.1 (installed with SuSE 8.2). I don't know if it is a bug or not. Maybe is just me missing something. What I'd like to do is to pass a reference of base_class instance to the constructor of second_class (so that the newly created

Re: [PHP] Strange problem in class creation

2003-08-14 Thread Fabio Rotondo
Mukul Sabharwal wrote: And the error is strange because you're doing something strange! I don't think I'm doing anything strange. What I have exposed here is a simplification of my own class loader. I have the main class that must load (include and then instance) other PHP classes. The problem

[PHP] Re: Cannot add header information - headers already sent

2003-08-14 Thread Fabio Rotondo
Frederik Feys wrote: Hi Frederik, Warning: Cannot add header information - headers already sent by (output started at /usr/local/www/vhosts/aurelis.org/htdocs/header_aurelis.php:95) in /usr/local/www/vhosts/aurelis.org/htdocs/store/includes/functions/get_ca rtID.php on line 14 Can anyone shed