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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
46 - 29 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 13:01:28 2024 UTC