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
 [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

Pull Requests

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.
 [2026-04-23 14:35 UTC] git@php.net
Automatic comment on behalf of derickr
Revision: https://github.com/php/web-php/commit/4c04a0435bc880fcda11500c2564f9ca2d115a70
Log: Fixed #1892: Rename 'confusing' option to something more descriptive
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Wed Jun 17 23:00:01 2026 UTC