Re: [PHP4BETA] Bug on PHP4b3?

From: Date: Thu, 13 Jan 2000 11:34:22 +0000
Subject: Re: [PHP4BETA] Bug on PHP4b3?
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-9095@lists.php.net to get a copy of this message
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 )

« previous php.version4 (#9095) next »