Doc #52306 [NEW]: finfo_file irritating method syntax

From: Date: Sun, 11 Jul 2010 13:41:49 +0000
Subject: Doc #52306 [NEW]: finfo_file irritating method syntax
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-4672@lists.php.net to get a copy of this message
From: ch Operating system: PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:finfo_file irritating method syntax Description: ------------ http://de3.php.net/manual/en/function.finfo-file.php currently reads: ---------------------------------------- Description string finfo_file ( resource $finfo , string $file_name = NULL [, int $options = FILEINFO_NONE [, resource $context = NULL ]] ) finfo string file ( string $file_name = NULL [, int $options = FILEINFO_NONE [, resource $context = NULL ]] ) ---------------------------------------- Where file is a hyperlink to the PHP file() function. It was not quite clear to me what this syntax description of a file() function was trying to tell me until I came across http://de3.php.net/manual/en/function.finfo-open.php which clearly describes the first as "procedural style" and the second as "object oriented style:". Maybe that can be done for the other functions, too. Test script: --------------- - Expected result: ---------------- - Actual result: -------------- - -- Edit bug report at http://bugs.php.net/bug.php?id=52306&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52306&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52306&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52306&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=52306&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52306&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=52306&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=52306&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=52306&r=needscript Try newer version: http://bugs.php.net/fix.php?id=52306&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=52306&r=support Expected behavior: http://bugs.php.net/fix.php?id=52306&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=52306&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=52306&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=52306&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52306&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=52306&r=dst IIS Stability: http://bugs.php.net/fix.php?id=52306&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=52306&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=52306&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=52306&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=52306&r=mysqlcfg

« previous php.doc.bugs (#4672) next »