note 57491 added to function.get-resource-type

From: Date: Wed, 05 Oct 2005 20:18:10 +0000
Subject: note 57491 added to function.get-resource-type
Groups: php.notes 
Request: Send a blank email to php-notes+get-96453@lists.php.net to get a copy of this message
In PHP5 (on Linux), the above example identifies the "file" handler as a 'stream', not 'file'. This can be particularly worrisome if you're trying to determine the type of stream using this function. The alternative is to use <?php stream_get_meta_data() ?>, which returns an array containing "stream_type (string) - a label describing the underlying implementation of the stream." ---- Manual Page -- http://www.php.net/manual/en/function.get-resource-type.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+57491 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+57491&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+57491&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+57491&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+57491&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+57491&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+57491&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+57491&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+57491&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#96453) next »