PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Bug #774

use require_once instead of include

Details

Submitted2004-02-17 00:07 UTC
Frompear-dev at mocsnik dot hu
Assignedalexmerz
StatusClosed
PackageMP3_ID
PHP VersionIrrelevant
OSirrelevant
Roadmaps(Not assigned)

Comments

[2004-02-17 00:07 UTC] pear-dev at mocsnik dot hu

Description:
------------
use
require_once "PEAR.php";
instead of
include "PEAR.php";

using include may break users' scripts if PEAR.php has been included before including MP3 this package

http://pear.php.net/manual/en/standards.including.php

Reproduce code:
---------------
n/a

Expected result:
----------------
n/a

Actual result:
--------------
n/a

[2004-02-17 09:48 UTC] alexmerz at php dot net

This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.

In case this was a pear.php.net website problem, the change will show
up on the website in short time.

Thank you for the report, and for helping us make PEAR better.