|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-10-04 13:51 UTC] derick@php.net
[2004-10-04 13:58 UTC] aidan@php.net
[2004-10-04 14:07 UTC] aidan@php.net
[2004-10-04 14:09 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 11:00:01 2025 UTC |
Description: ------------ This patch adds a check to ensure the bzip2 compression stream is enabled before using it. Actual result: -------------- --- livedocs\mk_notes.1.4.php Thu Aug 19 06:56:57 2004 +++ livedocs\mk_notes.php Wed Sep 08 09:35:08 2004 @@ -21,6 +21,14 @@ // // $Id: mk_notes.php,v 1.4 2004/08/18 20:56:57 iliaa Exp $ +// Check the compress.bzip2 stream is enabled +if (!in_array('compress.bzip2', stream_get_wrappers())) { + echo "Warning: Unable to build user notes: The bzip2 stream is not enabled.\n"; + echo "You must build with --with-bz2.\n"; + echo "####################\n\n"; + return false; +} + $create = <<