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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: vseticka dot martin at gmail dot com
New email:
PHP Version: OS:

 

 [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: Mon Jan 20 05:01:25 2020 UTC