php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #1892 unpack and pack do not support all perl packing types e.g. "u"
Submitted: 1999-07-27 07:47 UTC Modified: 2000-04-06 12:36 UTC
From: neilwi at demon dot net Assigned:
Status: Closed Package: Documentation problem
PHP Version: 3.0.11 OS: FreeBSD
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: neilwi at demon dot net
New email:
PHP Version: OS:

 

 [1999-07-27 07:47 UTC] neilwi at demon dot net
using pack:

packed_string = pack("u","The result should be uuencoded");

The above does not work as "u" is not an option in pack.  It is however an option in perl.

The documentation for pack and unpack claim that PHP supports all perl options for these functions.  It doesn't appear to work for me.

(compiled with apache, imap and mysql)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-11-11 19:24 UTC] joey at cvs dot php dot net
While "u" is not a valid arg to "pack", this would seem to be more
of a documentation issue (ie, should not say it supports all Perl types).

Unless this is actually a "misbehaving function" (in which case I think
one of the core guys will prob. jump in and correct me), it should
be marked as "documentation problem".
 [2000-04-06 12:36 UTC] sterling at cvs dot php dot net
Fixed in the docs.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 29 09:01:30 2024 UTC