note 34125 added to function.pclose
| From: | kcross at nssolutions dot com | Date: | Wed, 16 Jul 2003 19:08:39 +0000 |
| Subject: | note 34125 added to function.pclose | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-52221@lists.php.net to get a copy of this message | ||
Somewhere between 4.1.1 and 4.2.3, the return value from pclose changed.
The exit status used to be in the second byte, so that the status would be (pclose($fp)/256).
It is now in the low-order byte, so the status is just pclose($fp).
Be careful.
----
Manual Page -- http://www.php.net/manual/en/function.pclose.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+34125
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+34125&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+34125&report=yes