Bug #64649 [Opn->Nab]: Undefined constant on Raspbian, defined on Windows

From: Date: Mon, 15 Apr 2013 14:49:41 +0000
Subject: Bug #64649 [Opn->Nab]: Undefined constant on Raspbian, defined on Windows
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-178486@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=64649&edit=1

 ID:                 64649
 Updated by:         ab@php.net
 Reported by:        andreas at backx dot org
 Summary:            Undefined constant on Raspbian, defined on Windows
-Status:             Open
+Status:             Not a bug
 Type:               Bug
 Package:            Scripting Engine problem
 Operating System:   Raspbian Wheezy
 PHP Version:        5.4.14
 Block user comment: N
 Private report:     N

 New Comment:

<?php

include 'views/config.php';

....... your other stuff .......

?>

 in views/header.php should work


Previous Comments:
------------------------------------------------------------------------
[2013-04-14 21:59:43] andreas at backx dot org

Description:
------------
I made a simple website on my Windows PC and everything working fine, but when I 
transferred it to my Raspberry Pi running Raspbian Wheezy (~Debian) the constant 
is undefined in another php file and also outputs notices saying it is undefined.

Test script:
---------------
config/paths.php: http://pastie.org/7552146
views/header.php: http://pastie.org/7552191

Expected result:
----------------
In both files the constant URL should be "http://127.0.0.1/"

Actual result:
--------------
The value in the "config/paths.php" file is "http://127.0.0.1" , but it is 
undefined in "views/header.php".


------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=64649&edit=1


Thread (2 messages)

« previous php.bugs (#178486) next »