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

 ID:                 64649
 Updated by:         a...@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

Reply via email to