Re: com web/php: Fixed BC issue with PHP 5.2 and __DIR__.: index-beta.php
| From: | Hannes Magnusson | Date: | Wed, 11 Jul 2012 17:58:05 +0000 |
| Subject: | Re: com web/php: Fixed BC issue with PHP 5.2 and __DIR__.: index-beta.php | ||
| References: | 1 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-13909@lists.php.net to get a copy of this message | ||
On Wed, Jul 11, 2012 at 6:48 PM, Levi Morrison <levim@php.net> wrote:
> Commit: 175aefb9d60b770bd518105f2e5de700ab8853bf
> Author: Levi Morrison <levim@php.net> Wed, 11 Jul 2012 11:48:24 -0600
> Parents: 4bcba4be121d693af0eb258f8130a78107c74cc1
> Branches: master
>
> Link:
> http://git.php.net/?p=web/php.git;a=commitdiff;h=175aefb9d60b770bd518105f2e5de700ab8853bf
>
> Log:
> Fixed BC issue with PHP 5.2 and __DIR__.
>
> Changed paths:
> M index-beta.php
>
>
> Diff:
> diff --git a/index-beta.php b/index-beta.php
> index 1a8218c..64ad438 100644
> --- a/index-beta.php
> +++ b/index-beta.php
> @@ -43,11 +43,11 @@ else {
> }
>
> $_SERVER['BASE_PAGE'] = 'index.php';
> -include_once __DIR__ . '/include/prepend.inc';
> -include_once __DIR__ . '/include/pregen-events.inc';
> -include_once __DIR__ . '/include/pregen-confs.inc';
> -include_once __DIR__ . '/include/pregen-news.inc';
> -include_once __DIR__ . '/include/version.inc';
> +include_once '/include/prepend.inc';
What?
I don't have that file in my root directory.
And why not use dirname(__FILE__) ?
-Hannes