From: Paul L. <pa...@sq...> - 2008-12-12 12:22:04
|
On Fri, Dec 12, 2008 at 1:44 AM, Olivier MOULIN <ol...@om...> wrote: > >> On Thu, Dec 11, 2008 at 7:41 AM, Olivier MOULIN <ol...@om...> wrote: >>> >>>> On Wed, Dec 10, 2008 at 2:36 AM, Olivier MOULIN <ol...@om...> >>>> wrote: >>>>> >>>>>>>>>>>> I still my trouble with attachment. >>>>>>>>>>> >>>>>>>>>>> Still? You may want to reference any previous threads about the >>>>>>>>>>> issue. >>>>>>>>>>> >>>>>>>>>>>> When I attach a file that's working but when I remove the file >>>>>>>>>>>> I >>>>>>>>>>>> have >>>>>>>>>>>> the >>>>>>>>>>>> folling error : >>>>>>>>>>>> >>>>>>>>>>>> Warning: filesize(): Stat failed for >>>>>>>>>>>> /var/spool/squirrelmail/attach/GAWMNA7NwMTIbEq1y06EW63SS4SuojjN >>>>>>>>>>>> (errno=2 >>>>>>>>>>>> - >>>>>>>>>>>> No such file or directory) in >>>>>>>>>>>> /var/www/squirrelmail/src/compose.php >>>>>>>>>>>> on >>>>>>>>>>>> line 1240 >>>>>>>>>>>> >>>>>>>>>>>> The file is deleted in the directory but it's still appear in >>>>>>>>>>>> the >>>>>>>>>>>> list >>>>>>>>>>>> on >>>>>>>>>>>> the compose windows. >>>>>>>>>>>> >>>>>>>>>>>> I though this trouble will be solve with the squirrelmail last >>>>>>>>>>>> version >>>>>>>>>>>> but >>>>>>>>>>>> not... >>>>>>>>>>> >>>>>>>>>>> No one else has reported this issue, it works for the rest of us >>>>>>>>>>> apparently, so there is no reason to think that the code would >>>>>>>>>>> magically change just for you without you telling us what the >>>>>>>>>>> problem >>>>>>>>>>> is. >>>>>>>>>>> >>>>>>>>>>>>From the sound of it, it's not a problem removing the file from >>>>>>>>>>>> disk, >>>>>>>>>>> but that SM seems to think it's still there - as if the unset() >>>>>>>>>>> of >>>>>>>>>>> the >>>>>>>>>>> attachment didn't work. For starters, apply this patch to >>>>>>>>>>> src/compose.php and show the output it generates when you delete >>>>>>>>>>> an >>>>>>>>>>> attachment. You can apply the patch manually by finding the >>>>>>>>>>> code >>>>>>>>>>> lines referenced here and adding the lines prefixed with the + >>>>>>>>>>> sign >>>>>>>>>>> (two of them). >>>>>>>>>> >>>>>>>>>> Below the result : >>>>>> >>>>>> <snip> >>>>>> >>>>>>>>> Thanks. So, as you can see, the unset() call seems to do nothing. >>>>>>>>> Why don't you try copying the 2nd debug line and putting a copy of >>>>>>>>> it >>>>>>>>> immediately after the unset call, a couple lines up and see what >>>>>>>>> you >>>>>>>>> get (three debug lines should be in the code now). >>>>>>>> >>>>>>>> I don't undestand where I have to paste this 3nd debug line >>>>>> >>>>>> The output you last sent wasn't clear to me. Please try this: >>>>>> >>>>>> @@ -585,12 +585,15 @@ >>>>>> } >>>>>> >>>>>> if (isset($delete) && is_array($delete)) { >>>>>> +sm_print_r($delete, $composeMessage); >>>>>> foreach($delete as $index) { >>>>>> if (!empty($composeMessage->entities) && >>>>>> isset($composeMessage->entities[$index])) { >>>>>> $composeMessage->entities[$index]->purgeAttachments(); >>>>>> unset ($composeMessage->entities[$index]); >>>>>> +sm_print_r('##################################################################', >>>>>> 'UNSET entities[' . $index . ']', $composeMessage); >>>>>> } >>>>>> } >>>>>> +sm_print_r('==================================================================', >>>>>> $composeMessage); >>>>>> $new_entities = array(); >>>>>> foreach ($composeMessage->entities as $entity) { >>>>>> $new_entities[] = $entity; >>>>>> >>>>> >>>>> The result below. I think it missing the last part with '==' as >>>>> separator. >>>>> I don't know why. >>>> >>>> Cut and paste error? Make sure that the added line does not start >>>> with a + sign and that it's all one line from "sm_print_r" to >>>> "composeMessage);" >>>> >>>> It looks like your system is completely borking the unset. It >>>> executes the unset, but, as you can see, the value it unset is still >>>> there. For kicks, try this (careful cutting and pasting... one line >>>> should be added for each + sign): >>>> >>>> @@ -585,12 +585,21 @@ >>>> } >>>> >>>> if (isset($delete) && is_array($delete)) { >>>> +sm_print_r($delete, $composeMessage); >>>> foreach($delete as $index) { >>>> if (!empty($composeMessage->entities) && >>>> isset($composeMessage->entities[$index])) { >>>> $composeMessage->entities[$index]->purgeAttachments(); >>>> unset ($composeMessage->entities[$index]); >>>> +sm_print_r('##################################################################', >>>> 'AFTER FIRST UNSET entities[' . $index . ']', $composeMessage); >>>> + unset ($composeMessage->entities[$index]); >>>> +sm_print_r('$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$', >>>> 'AFTER SECOND UNSET entities[' . $index . ']', $composeMessage); >>>> + $composeMessage->entities[$index] = ''; >>>> +sm_print_r('%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%', >>>> 'AFTER SET TO EMPTY STRING entities[' . $index . ']', >>>> $composeMessage); >>>> + unset ($composeMessage->entities[$index]); >>>> +sm_print_r('------------------------------------------------------------------', >>>> 'AFTER THIRD UNSET entities[' . $index . ']', $composeMessage); >>>> } >>>> } >>>> +sm_print_r('==================================================================', >>>> $composeMessage); >>>> $new_entities = array(); >>>> foreach ($composeMessage->entities as $entity) { >>>> $new_entities[] = $entity; >>>> >>>> >>> >>> it's working too with this line (with remove the sm_print) >> >> What do you mean "remove the sm_print"? Looks like you have all the >> lines there that I told you to add. Anyway, I see what the problem is >> - your system ignores unset() in this case. I might consider >> committing a fix to SquirrelMail if I knew that this was a legitimate >> problem... I don't doubt that it seems legitimate to you, but if >> unset() is broken here, just fixing this one place shouldn't be >> enough. SquirrelMail uses it in lots of other places, as does >> probably all other PHP software you'll ever install. The real >> solution, then, is to find out why unset() is broken for you. Is it >> your particular PHP or Apache version? Is it the way you compiled PHP >> or Apache? Is it a configuration blunder? First and easiest thing >> might be to try to upgrade your PHP. You should also ask in a forum >> for your distro (especially about why PHP is at such an old version). > > Yes, I don't understand why this unset especially don't work... > > I have a professionnal version of Mandriva : Corporate Server. It's > maintened by Mandriva only for security update. If I want a new php > version a need to upgrade all the distribution. I planned to do this next > year because I have lot of machine with this version. > > Thanks for the help. By now, it' working and that's great... You're welcome, but if you look in your web server logs, you'll see it's not - there will be PHP notices caused by this hack fix. I don't know what part of the code I gave you that you are keeping, but make sure the index number being removed is NOT hard-coded as some of my test code was. Can't hurt to ask around Mandriva about this, espeically if you are paying them money. >>> Below the new paste : >>> >>> Array >>> ( >>> [0] => 0 >>> ) >>> >>> message Object >>> ( >>> [rfc822_header] => rfc822header Object >>> ( >>> [date] => -1 >>> [date_unparsed] => >>> [subject] => >>> [from] => Array >>> ( >>> ) >>> >>> [sender] => >>> [reply_to] => Array >>> ( >>> ) >>> >>> [mail_followup_to] => Array >>> ( >>> ) >>> >>> [to] => Array >>> ( >>> ) >>> >>> [cc] => Array >>> ( >>> ) >>> >>> [bcc] => Array >>> ( >>> ) >>> >>> [in_reply_to] => >>> [message_id] => >>> [references] => >>> [mime] => >>> [content_type] => >>> [disposition] => >>> [xmailer] => >>> [priority] => 3 >>> [dnt] => >>> [encoding] => >>> [mlist] => Array >>> ( >>> ) >>> >>> [x_spam_status] => Array >>> ( >>> ) >>> >>> [more_headers] => Array >>> ( >>> ) >>> >>> ) >>> >>> [reply_rfc822_header] => >>> [mime_header] => >>> [flags] => >>> [type0] => >>> [type1] => >>> [entities] => Array >>> ( >>> [0] => message Object >>> ( >>> [rfc822_header] => >>> [reply_rfc822_header] => >>> [mime_header] => messageheader Object >>> ( >>> [type0] => text >>> [type1] => plain >>> [parameters] => Array >>> ( >>> [name] => Nouveau Document texte.txt >>> ) >>> >>> [id] => 0 >>> [description] => >>> [encoding] => >>> [size] => 0 >>> [md5] => >>> [disposition] => disposition Object >>> ( >>> [name] => attachment >>> [properties] => Array >>> ( >>> [filename] => Nouveau >>> Document >>> texte.txt >>> ) >>> >>> ) >>> >>> [language] => >>> ) >>> >>> [flags] => >>> [type0] => >>> [type1] => >>> [entities] => Array >>> ( >>> ) >>> >>> [entity_id] => >>> [parent_ent] => >>> [entity] => >>> [parent] => >>> [decoded_body] => >>> [is_seen] => 0 >>> [is_answered] => 0 >>> [is_deleted] => 0 >>> [is_flagged] => 0 >>> [is_mdnsent] => 0 >>> [body_part] => >>> [offset] => 0 >>> [length] => 0 >>> [att_local_name] => QEchXSq4etOFyGEymj3HslsUvMGT13nT >>> ) >>> >>> ) >>> >>> [entity_id] => >>> [parent_ent] => >>> [entity] => >>> [parent] => >>> [decoded_body] => >>> [is_seen] => 0 >>> [is_answered] => 0 >>> [is_deleted] => 0 >>> [is_flagged] => 0 >>> [is_mdnsent] => 0 >>> [body_part] => >>> [offset] => 0 >>> [length] => 0 >>> [att_local_name] => >>> ) >>> >>> >>> ################################################################## >>> AFTER FIRST UNSET entities[0] >>> message Object >>> ( >>> [rfc822_header] => rfc822header Object >>> ( >>> [date] => -1 >>> [date_unparsed] => >>> [subject] => >>> [from] => Array >>> ( >>> ) >>> >>> [sender] => >>> [reply_to] => Array >>> ( >>> ) >>> >>> [mail_followup_to] => Array >>> ( >>> ) >>> >>> [to] => Array >>> ( >>> ) >>> >>> [cc] => Array >>> ( >>> ) >>> >>> [bcc] => Array >>> ( >>> ) >>> >>> [in_reply_to] => >>> [message_id] => >>> [references] => >>> [mime] => >>> [content_type] => >>> [disposition] => >>> [xmailer] => >>> [priority] => 3 >>> [dnt] => >>> [encoding] => >>> [mlist] => Array >>> ( >>> ) >>> >>> [x_spam_status] => Array >>> ( >>> ) >>> >>> [more_headers] => Array >>> ( >>> ) >>> >>> ) >>> >>> [reply_rfc822_header] => >>> [mime_header] => >>> [flags] => >>> [type0] => >>> [type1] => >>> [entities] => Array >>> ( >>> [0] => message Object >>> ( >>> [rfc822_header] => >>> [reply_rfc822_header] => >>> [mime_header] => messageheader Object >>> ( >>> [type0] => text >>> [type1] => plain >>> [parameters] => Array >>> ( >>> [name] => Nouveau Document texte.txt >>> ) >>> >>> [id] => 0 >>> [description] => >>> [encoding] => >>> [size] => 0 >>> [md5] => >>> [disposition] => disposition Object >>> ( >>> [name] => attachment >>> [properties] => Array >>> ( >>> [filename] => Nouveau >>> Document >>> texte.txt >>> ) >>> >>> ) >>> >>> [language] => >>> ) >>> >>> [flags] => >>> [type0] => >>> [type1] => >>> [entities] => Array >>> ( >>> ) >>> >>> [entity_id] => >>> [parent_ent] => >>> [entity] => >>> [parent] => >>> [decoded_body] => >>> [is_seen] => 0 >>> [is_answered] => 0 >>> [is_deleted] => 0 >>> [is_flagged] => 0 >>> [is_mdnsent] => 0 >>> [body_part] => >>> [offset] => 0 >>> [length] => 0 >>> [att_local_name] => QEchXSq4etOFyGEymj3HslsUvMGT13nT >>> ) >>> >>> ) >>> >>> [entity_id] => >>> [parent_ent] => >>> [entity] => >>> [parent] => >>> [decoded_body] => >>> [is_seen] => 0 >>> [is_answered] => 0 >>> [is_deleted] => 0 >>> [is_flagged] => 0 >>> [is_mdnsent] => 0 >>> [body_part] => >>> [offset] => 0 >>> [length] => 0 >>> [att_local_name] => >>> ) >>> >>> >>> $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ >>> AFTER SECOND UNSET entities[0] >>> message Object >>> ( >>> [rfc822_header] => rfc822header Object >>> ( >>> [date] => -1 >>> [date_unparsed] => >>> [subject] => >>> [from] => Array >>> ( >>> ) >>> >>> [sender] => >>> [reply_to] => Array >>> ( >>> ) >>> >>> [mail_followup_to] => Array >>> ( >>> ) >>> >>> [to] => Array >>> ( >>> ) >>> >>> [cc] => Array >>> ( >>> ) >>> >>> [bcc] => Array >>> ( >>> ) >>> >>> [in_reply_to] => >>> [message_id] => >>> [references] => >>> [mime] => >>> [content_type] => >>> [disposition] => >>> [xmailer] => >>> [priority] => 3 >>> [dnt] => >>> [encoding] => >>> [mlist] => Array >>> ( >>> ) >>> >>> [x_spam_status] => Array >>> ( >>> ) >>> >>> [more_headers] => Array >>> ( >>> ) >>> >>> ) >>> >>> [reply_rfc822_header] => >>> [mime_header] => >>> [flags] => >>> [type0] => >>> [type1] => >>> [entities] => Array >>> ( >>> [0] => message Object >>> ( >>> [rfc822_header] => >>> [reply_rfc822_header] => >>> [mime_header] => messageheader Object >>> ( >>> [type0] => text >>> [type1] => plain >>> [parameters] => Array >>> ( >>> [name] => Nouveau Document texte.txt >>> ) >>> >>> [id] => 0 >>> [description] => >>> [encoding] => >>> [size] => 0 >>> [md5] => >>> [disposition] => disposition Object >>> ( >>> [name] => attachment >>> [properties] => Array >>> ( >>> [filename] => Nouveau >>> Document >>> texte.txt >>> ) >>> >>> ) >>> >>> [language] => >>> ) >>> >>> [flags] => >>> [type0] => >>> [type1] => >>> [entities] => Array >>> ( >>> ) >>> >>> [entity_id] => >>> [parent_ent] => >>> [entity] => >>> [parent] => >>> [decoded_body] => >>> [is_seen] => 0 >>> [is_answered] => 0 >>> [is_deleted] => 0 >>> [is_flagged] => 0 >>> [is_mdnsent] => 0 >>> [body_part] => >>> [offset] => 0 >>> [length] => 0 >>> [att_local_name] => QEchXSq4etOFyGEymj3HslsUvMGT13nT >>> ) >>> >>> ) >>> >>> [entity_id] => >>> [parent_ent] => >>> [entity] => >>> [parent] => >>> [decoded_body] => >>> [is_seen] => 0 >>> [is_answered] => 0 >>> [is_deleted] => 0 >>> [is_flagged] => 0 >>> [is_mdnsent] => 0 >>> [body_part] => >>> [offset] => 0 >>> [length] => 0 >>> [att_local_name] => >>> ) >>> >>> >>> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% >>> AFTER SET TO EMPTY STRING entities[0] >>> message Object >>> ( >>> [rfc822_header] => rfc822header Object >>> ( >>> [date] => -1 >>> [date_unparsed] => >>> [subject] => >>> [from] => Array >>> ( >>> ) >>> >>> [sender] => >>> [reply_to] => Array >>> ( >>> ) >>> >>> [mail_followup_to] => Array >>> ( >>> ) >>> >>> [to] => Array >>> ( >>> ) >>> >>> [cc] => Array >>> ( >>> ) >>> >>> [bcc] => Array >>> ( >>> ) >>> >>> [in_reply_to] => >>> [message_id] => >>> [references] => >>> [mime] => >>> [content_type] => >>> [disposition] => >>> [xmailer] => >>> [priority] => 3 >>> [dnt] => >>> [encoding] => >>> [mlist] => Array >>> ( >>> ) >>> >>> [x_spam_status] => Array >>> ( >>> ) >>> >>> [more_headers] => Array >>> ( >>> ) >>> >>> ) >>> >>> [reply_rfc822_header] => >>> [mime_header] => >>> [flags] => >>> [type0] => >>> [type1] => >>> [entities] => Array >>> ( >>> [0] => >>> ) >>> >>> [entity_id] => >>> [parent_ent] => >>> [entity] => >>> [parent] => >>> [decoded_body] => >>> [is_seen] => 0 >>> [is_answered] => 0 >>> [is_deleted] => 0 >>> [is_flagged] => 0 >>> [is_mdnsent] => 0 >>> [body_part] => >>> [offset] => 0 >>> [length] => 0 >>> [att_local_name] => >>> ) >>> >>> >>> ------------------------------------------------------------------ >>> AFTER THIRD UNSET entities[0] >>> message Object >>> ( >>> [rfc822_header] => rfc822header Object >>> ( >>> [date] => -1 >>> [date_unparsed] => >>> [subject] => >>> [from] => Array >>> ( >>> ) >>> >>> [sender] => >>> [reply_to] => Array >>> ( >>> ) >>> >>> [mail_followup_to] => Array >>> ( >>> ) >>> >>> [to] => Array >>> ( >>> ) >>> >>> [cc] => Array >>> ( >>> ) >>> >>> [bcc] => Array >>> ( >>> ) >>> >>> [in_reply_to] => >>> [message_id] => >>> [references] => >>> [mime] => >>> [content_type] => >>> [disposition] => >>> [xmailer] => >>> [priority] => 3 >>> [dnt] => >>> [encoding] => >>> [mlist] => Array >>> ( >>> ) >>> >>> [x_spam_status] => Array >>> ( >>> ) >>> >>> [more_headers] => Array >>> ( >>> ) >>> >>> ) >>> >>> [reply_rfc822_header] => >>> [mime_header] => >>> [flags] => >>> [type0] => >>> [type1] => >>> [entities] => Array >>> ( >>> [0] => >>> ) >>> >>> [entity_id] => >>> [parent_ent] => >>> [entity] => >>> [parent] => >>> [decoded_body] => >>> [is_seen] => 0 >>> [is_answered] => 0 >>> [is_deleted] => 0 >>> [is_flagged] => 0 >>> [is_mdnsent] => 0 >>> [body_part] => >>> [offset] => 0 >>> [length] => 0 >>> [att_local_name] => >>> ) >>> >>> >>> ================================================================== >>> message Object >>> ( >>> [rfc822_header] => rfc822header Object >>> ( >>> [date] => -1 >>> [date_unparsed] => >>> [subject] => >>> [from] => Array >>> ( >>> ) >>> >>> [sender] => >>> [reply_to] => Array >>> ( >>> ) >>> >>> [mail_followup_to] => Array >>> ( >>> ) >>> >>> [to] => Array >>> ( >>> ) >>> >>> [cc] => Array >>> ( >>> ) >>> >>> [bcc] => Array >>> ( >>> ) >>> >>> [in_reply_to] => >>> [message_id] => >>> [references] => >>> [mime] => >>> [content_type] => >>> [disposition] => >>> [xmailer] => >>> [priority] => 3 >>> [dnt] => >>> [encoding] => >>> [mlist] => Array >>> ( >>> ) >>> >>> [x_spam_status] => Array >>> ( >>> ) >>> >>> [more_headers] => Array >>> ( >>> ) >>> >>> ) >>> >>> [reply_rfc822_header] => >>> [mime_header] => >>> [flags] => >>> [type0] => >>> [type1] => >>> [entities] => Array >>> ( >>> [0] => >>> ) >>> >>> [entity_id] => >>> [parent_ent] => >>> [entity] => >>> [parent] => >>> [decoded_body] => >>> [is_seen] => 0 >>> [is_answered] => 0 >>> [is_deleted] => 0 >>> [is_flagged] => 0 >>> [is_mdnsent] => 0 >>> [body_part] => >>> [offset] => 0 >>> [length] => 0 >>> [att_local_name] => >>> ) >>> >>> >>> >>> >>>>>I try with and without the patch provides in the last >>>>> message. >>>>> >>>>> Array >>>>> ( >>>>> [0] => 0 >>>>> ) >>>>> >>>>> message Object >>>>> ( >>>>> [rfc822_header] => rfc822header Object >>>>> ( >>>>> [date] => -1 >>>>> [date_unparsed] => >>>>> [subject] => >>>>> [from] => Array >>>>> ( >>>>> ) >>>>> >>>>> [sender] => >>>>> [reply_to] => Array >>>>> ( >>>>> ) >>>>> >>>>> [mail_followup_to] => Array >>>>> ( >>>>> ) >>>>> >>>>> [to] => Array >>>>> ( >>>>> ) >>>>> >>>>> [cc] => Array >>>>> ( >>>>> ) >>>>> >>>>> [bcc] => Array >>>>> ( >>>>> ) >>>>> >>>>> [in_reply_to] => >>>>> [message_id] => >>>>> [references] => >>>>> [mime] => >>>>> [content_type] => >>>>> [disposition] => >>>>> [xmailer] => >>>>> [priority] => 3 >>>>> [dnt] => >>>>> [encoding] => >>>>> [mlist] => Array >>>>> ( >>>>> ) >>>>> >>>>> [x_spam_status] => Array >>>>> ( >>>>> ) >>>>> >>>>> [more_headers] => Array >>>>> ( >>>>> ) >>>>> >>>>> ) >>>>> >>>>> [reply_rfc822_header] => >>>>> [mime_header] => >>>>> [flags] => >>>>> [type0] => >>>>> [type1] => >>>>> [entities] => Array >>>>> ( >>>>> [0] => message Object >>>>> ( >>>>> [rfc822_header] => >>>>> [reply_rfc822_header] => >>>>> [mime_header] => messageheader Object >>>>> ( >>>>> [type0] => text >>>>> [type1] => plain >>>>> [parameters] => Array >>>>> ( >>>>> [name] => Nouveau Document >>>>> texte.txt >>>>> ) >>>>> >>>>> [id] => 0 >>>>> [description] => >>>>> [encoding] => >>>>> [size] => 0 >>>>> [md5] => >>>>> [disposition] => disposition Object >>>>> ( >>>>> [name] => attachment >>>>> [properties] => Array >>>>> ( >>>>> [filename] => Nouveau >>>>> Document >>>>> texte.txt >>>>> ) >>>>> >>>>> ) >>>>> >>>>> [language] => >>>>> ) >>>>> >>>>> [flags] => >>>>> [type0] => >>>>> [type1] => >>>>> [entities] => Array >>>>> ( >>>>> ) >>>>> >>>>> [entity_id] => >>>>> [parent_ent] => >>>>> [entity] => >>>>> [parent] => >>>>> [decoded_body] => >>>>> [is_seen] => 0 >>>>> [is_answered] => 0 >>>>> [is_deleted] => 0 >>>>> [is_flagged] => 0 >>>>> [is_mdnsent] => 0 >>>>> [body_part] => >>>>> [offset] => 0 >>>>> [length] => 0 >>>>> [att_local_name] => >>>>> o5wHXYAwZlhGYbUKEbci3PPFSkqbqx3x >>>>> ) >>>>> >>>>> ) >>>>> >>>>> [entity_id] => >>>>> [parent_ent] => >>>>> [entity] => >>>>> [parent] => >>>>> [decoded_body] => >>>>> [is_seen] => 0 >>>>> [is_answered] => 0 >>>>> [is_deleted] => 0 >>>>> [is_flagged] => 0 >>>>> [is_mdnsent] => 0 >>>>> [body_part] => >>>>> [offset] => 0 >>>>> [length] => 0 >>>>> [att_local_name] => >>>>> ) >>>>> >>>>> >>>>> ################################################################## >>>>> UNSET entities[0] >>>>> message Object >>>>> ( >>>>> [rfc822_header] => rfc822header Object >>>>> ( >>>>> [date] => -1 >>>>> [date_unparsed] => >>>>> [subject] => >>>>> [from] => Array >>>>> ( >>>>> ) >>>>> >>>>> [sender] => >>>>> [reply_to] => Array >>>>> ( >>>>> ) >>>>> >>>>> [mail_followup_to] => Array >>>>> ( >>>>> ) >>>>> >>>>> [to] => Array >>>>> ( >>>>> ) >>>>> >>>>> [cc] => Array >>>>> ( >>>>> ) >>>>> >>>>> [bcc] => Array >>>>> ( >>>>> ) >>>>> >>>>> [in_reply_to] => >>>>> [message_id] => >>>>> [references] => >>>>> [mime] => >>>>> [content_type] => >>>>> [disposition] => >>>>> [xmailer] => >>>>> [priority] => 3 >>>>> [dnt] => >>>>> [encoding] => >>>>> [mlist] => Array >>>>> ( >>>>> ) >>>>> >>>>> [x_spam_status] => Array >>>>> ( >>>>> ) >>>>> >>>>> [more_headers] => Array >>>>> ( >>>>> ) >>>>> >>>>> ) >>>>> >>>>> [reply_rfc822_header] => >>>>> [mime_header] => >>>>> [flags] => >>>>> [type0] => >>>>> [type1] => >>>>> [entities] => Array >>>>> ( >>>>> [0] => message Object >>>>> ( >>>>> [rfc822_header] => >>>>> [reply_rfc822_header] => >>>>> [mime_header] => messageheader Object >>>>> ( >>>>> [type0] => text >>>>> [type1] => plain >>>>> [parameters] => Array >>>>> ( >>>>> [name] => Nouveau Document >>>>> texte.txt >>>>> ) >>>>> >>>>> [id] => 0 >>>>> [description] => >>>>> [encoding] => >>>>> [size] => 0 >>>>> [md5] => >>>>> [disposition] => disposition Object >>>>> ( >>>>> [name] => attachment >>>>> [properties] => Array >>>>> ( >>>>> [filename] => Nouveau >>>>> Document >>>>> texte.txt >>>>> ) >>>>> >>>>> ) >>>>> >>>>> [language] => >>>>> ) >>>>> >>>>> [flags] => >>>>> [type0] => >>>>> [type1] => >>>>> [entities] => Array >>>>> ( >>>>> ) >>>>> >>>>> [entity_id] => >>>>> [parent_ent] => >>>>> [entity] => >>>>> [parent] => >>>>> [decoded_body] => >>>>> [is_seen] => 0 >>>>> [is_answered] => 0 >>>>> [is_deleted] => 0 >>>>> [is_flagged] => 0 >>>>> [is_mdnsent] => 0 >>>>> [body_part] => >>>>> [offset] => 0 >>>>> [length] => 0 >>>>> [att_local_name] => >>>>> o5wHXYAwZlhGYbUKEbci3PPFSkqbqx3x >>>>> ) >>>>> >>>>> ) >>>>> >>>>> [entity_id] => >>>>> [parent_ent] => >>>>> [entity] => >>>>> [parent] => >>>>> [decoded_body] => >>>>> [is_seen] => 0 >>>>> [is_answered] => 0 >>>>> [is_deleted] => 0 >>>>> [is_flagged] => 0 >>>>> [is_mdnsent] => 0 >>>>> [body_part] => >>>>> [offset] => 0 >>>>> [length] => 0 >>>>> [att_local_name] => >>>>> ) >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>>>>> AFTER you post back the results from that, put this line >>>>>>>>> immediately >>>>>>>>> following the third debug line: >>>>>>>>> >>>>>>>>> unset($composeMessage->entities[0]); >>>>>>> >>>>>>> OK, it's works with this line... >>>>>>> >>>>>>> >>>>>>>>> >>>>>>>>> And see if that helps. >>>>>>>>> >>>>>>>>> What I'm trying to play with is if there is some strange scope >>>>>>>>> issue, >>>>>>>>> but really, there shouldn't be any scope problems, as this code is >>>>>>>>> straight forward. The unset() just plain does not work on your >>>>>>>>> system >>>>>>>>> is what it looks like to me, and that's not a SquirrelMail issue >>>>>>>>> as >>>>>>>>> far as I can tell. What PHP version are you running? Did you >>>>>>>>> compile >>>>>>>>> it yourself? Does it have anything unusual about it? >>>>>>>> >>>>>>>> PHP : >>>>>>>> >>>>>>>> php-gd-4.3.4-1.7.C30mdk >>>>>>>> libphp_common432-4.3.4-4.28.C30mdk >>>>>>>> php-pear-4.3.4-3.3.C30mdk >>>>>>>> php-ini-4.3.4-1mdk >>>>>>>> apache2-mod_php-2.0.48_4.3.4-1mdk >>>>>>>> php-ldap-4.3.4-1mdk >>>>>>>> php-xml-4.3.4-1mdk >>>>>>>> php-imap-4.3.4-1.5.C30mdk >>>>>>>> php-cli-4.3.4-4.28.C30mdk >>>>>>>> php-xmlrpc-4.3.4-1.1.C30mdk >>>>>>>> php-mysql-4.3.4-1mdk >>>>>>>> >>>>>>>> It's not recompiled, it's distro version. I don't think I have >>>>>>>> special >>>>>>>> configuration maybe something in my php.ini ? > |