note 93702 added to function.dio-open

From: Date: Wed, 23 Sep 2009 15:08:05 +0000
Subject: note 93702 added to function.dio-open
Groups: php.notes 
Request: Send a blank email to php-notes+get-160982@lists.php.net to get a copy of this message
The arguments for this function are incorrect. You will not notice this until you try to use dio_open and then dio_write. You will get this error on the console: 'Bad file descriptor'. the 'flags' parameter MUST include one of {O_RDONLY, O_WRONLY, O_RDWR}. It may also include any combination of the flags listed. the 'mode' parameter is NOT the read/write mode. It is the permissions of the file. For example 0644 or 0755. Notice that there are not quotes around these permissions. This works correctly on Fedora 10 x86_64 php 5.2.9. ---- Server IP: 64.71.164.2 Probable Submitter: 64.55.45.194 ---- Manual Page -- http://www.php.net/manual/en/function.dio-open.php Edit -- https://master.php.net/note/edit/93702 Del: integrated -- https://master.php.net/note/delete/93702/integrated Del: useless -- https://master.php.net/note/delete/93702/useless Del: bad code -- https://master.php.net/note/delete/93702/bad+code Del: spam -- https://master.php.net/note/delete/93702/spam Del: non-english -- https://master.php.net/note/delete/93702/non-english Del: in docs -- https://master.php.net/note/delete/93702/in+docs Del: other reasons-- https://master.php.net/note/delete/93702 Reject -- https://master.php.net/note/reject/93702 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#160982) next »