php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #38169 Documentation states --with-zip, should be --enable-zip
Submitted: 2006-07-20 21:52 UTC Modified: 2006-08-11 23:27 UTC
From: php at adaniels dot nl Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Any
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: php at adaniels dot nl
New email:
PHP Version: OS:

 

 [2006-07-20 21:52 UTC] php at adaniels dot nl
Description:
------------
Documentation:
In order to use these functions you must compile PHP with zip support by using the --with-zip[=DIR] configure option.

But actualy:
sek:/usr/src/php/php-5.1.4# ./configure --help | grep zip
  --enable-zip        Include Zip read/write support.
  --with-zlib-dir[=DIR]   zip: Set the path to libz install prefix.

The --with-zip does not work.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-11 18:16 UTC] nlopess@php.net
you are mixing the bundled version with the pecl one.
 [2006-08-11 21:13 UTC] php at adaniels dot nl
If I understand you correctly, there is a difference between installing the zip extension for PHP4 and for PHP5. To my opinion this isn't made clear when reading the manual.

Other PECL extensions which also have documentation in the PHP manual, do have the correct --enable syntax. For example: http://www.php.net/manual/en/ref.runkit.php

I've noticed that the installation instructions start with 'In PHP 4 ...'. But there are no instructions for other versions. This made me think these instructions did not change for PHP5.
I believe that an 'In PHP 5 ...' paragraph would be feasible.

I've compiled PHP many times, so this it didn't really cause me too much trouble. But I think that if you want to statically compile an extension into PHP for the first time, this could cause you a real headache.

Thanks for reconcidering.
 [2006-08-11 22:14 UTC] pajoye@php.net
The documentation has been updated. It contains the explanation for the bundled version in php4.x (--with-zip[=DIR]), pecl and php 5.2 (--enable-zip). The changes will show up with the next update.
 [2006-08-11 23:27 UTC] php at adaniels dot nl
Thank you
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jul 14 21:01:33 2025 UTC