php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #66035 convert_uudecode - return value on error
Submitted: 2013-11-05 10:41 UTC Modified: 2013-11-26 07:32 UTC
From: vseticka dot martin at gmail dot com Assigned: frozenfire (profile)
Status: Closed Package: Strings related
PHP Version: 5.4.21 OS: Windows 7
Private report: No CVE-ID: None
 [2013-11-05 10:41 UTC] vseticka dot martin at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.convert-uudecode#refsect1-function.convert-uudecode-returnvalues
---

There is no information about the return value of convert_uudecode when an error occurs. Experimentally, I find out that the function returns FALSE on error.


Test script:
---------------
$result = @convert_uudecode("llllllllllll"); // invalid string
var_dump($result);



Expected result:
----------------
bool(false)

Actual result:
--------------
bool(false)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-11-26 07:32 UTC] frozenfire@php.net
Automatic comment from SVN on behalf of frozenfire
Revision: http://svn.php.net/viewvc/?view=revision&revision=332199
Log: Documented false return value on failure.
Fixes bug #66035.
 [2013-11-26 07:32 UTC] frozenfire@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: frozenfire
 [2013-11-26 07:32 UTC] frozenfire@php.net
The fix for this bug has been committed.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Jan 26 08:01:24 2020 UTC