Doc #55142 [NEW]: Incorrect return type stated for yaml_parse() when unable to parse input.

From: Date: Wed, 06 Jul 2011 03:44:04 +0000
Subject: Doc #55142 [NEW]: Incorrect return type stated for yaml_parse() when unable to parse input.
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6839@lists.php.net to get a copy of this message
From: Operating system: PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:Incorrect return type stated for yaml_parse() when unable to parse input. Description: ------------ --- From manual page: http://www.php.net/function.yaml-parse%23Return%20Values --- The documentation states that "NULL is returned if the input cannot be decoded." - this is incorrect. The function actually returns FALSE for invalid input. Test script: --------------- // outputs "bool(false)" var_dump(@yaml_parse("\t")); -- Edit bug report at https://bugs.php.net/bug.php?id=55142&edit=1 -- Try a snapshot (PHP 5.2): https://bugs.php.net/fix.php?id=55142&r=trysnapshot52 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55142&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55142&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=55142&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55142&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=55142&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=55142&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=55142&r=needscript Try newer version: https://bugs.php.net/fix.php?id=55142&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=55142&r=support Expected behavior: https://bugs.php.net/fix.php?id=55142&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=55142&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=55142&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=55142&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55142&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=55142&r=dst IIS Stability: https://bugs.php.net/fix.php?id=55142&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=55142&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=55142&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=55142&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=55142&r=mysqlcfg Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55142&r=trysnapshot54

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