note 61280 added to function.imap-fetchstructure

From: Date: Mon, 30 Jan 2006 07:58:57 +0000
Subject: note 61280 added to function.imap-fetchstructure
Groups: php.notes 
Request: Send a blank email to php-notes+get-102715@lists.php.net to get a copy of this message
Please keep in mind that the "parameters" array is a stdClass object when there are no parameters, and NOT a zero-size array. In PHP5 you'll get this error when iterating structure->parts[x]->parameters if there aren't any parameters for this part: PHP Fatal error: Cannot use object of type stdClass as array in file.php on line 100 ---- Server IP: 194.109.193.119 Probable Submitter: 80.100.81.105 ---- Manual Page -- http://www.php.net/manual/en/function.imap-fetchstructure.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+61280 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61280&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61280&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61280&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61280&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61280&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61280&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61280&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+61280&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#102715) next »