Re: [PHP4BETA] Bug on PHP4b3?

From: Date: Thu, 13 Jan 2000 12:42:59 +0000
Subject: Re: [PHP4BETA] Bug on PHP4b3?
References: 1 2 3  Groups: php.version4 
Request: Send a blank email to php-version4+get-9097@lists.php.net to get a copy of this message
Jonh Wendell wrote: > This would have to be in the page > http://www.php.net/version4/incompatibilities.php , rigth? it is no incompatibility but just an additional _warning_ the code still works as it used to maybe you'd want to lower the warning level in php.ini or log errors to errorlog only instead of generated pages ? the code regarding imap-parts is identical in both php3 and php4 > > > Hartmut Holzgraefe gravada: > > > > Jonh Wendell wrote: > > > > > There is a bug on PHP4 b3: > > > > > > In function imap_fetchstructure() ??? > > > I'm using the "IMP webmail" and this function returns a object: > > > > > > $structure = imap_fetchstructure($mbox, imap_msgno($mbox, $index)); > > > > > > When i access count($structure->parts), it says: > > > "PHP Warning: Undefined property: parts in > > > /www/horde/imp//message.php3 on line 33" > > > > > > Is it true? > > > > > > > true but not a bug ( a feature ? ) > > > > parts is only set if $structure->type is 1 for multipart or 2 for message > > any other message-type does not have any sub-parts, and so there is > > no value assigned to the parts property > > ( this applies recursively to the contents of parts, if any ) > > -- > > "Software is like sex. It's better when it's free." > ***************************** > Jonh Wendell Sousa de Santana > Desenvolvedor de Sistemas > Técnico em Informática > ____________________________ > wendell@sunnet.com.br > jwss@dcc.ufal.br > ICQ : 8493638 > > -- > PHP 4.0 Beta Mailing List <http://www.php.net/version4/> > To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net > For additional commands, e-mail: php4beta-help@lists.php.net > To contact the list administrators, e-mail: php4beta-admin@lists.php.net

« previous php.version4 (#9097) next »