php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #64649 Undefined constant on Raspbian, defined on Windows
Submitted: 2013-04-14 21:59 UTC Modified: 2013-04-15 14:49 UTC
From: andreas at backx dot org Assigned:
Status: Not a bug Package: Scripting Engine problem
PHP Version: 5.4.14 OS: Raspbian Wheezy
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: andreas at backx dot org
New email:
PHP Version: OS:

 

 [2013-04-14 21:59 UTC] 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".

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-04-15 14:49 UTC] ab@php.net
<?php

include 'views/config.php';

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

?>

 in views/header.php should work
 [2013-04-15 14:49 UTC] ab@php.net
-Status: Open +Status: Not a bug
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Aug 25 20:00:03 2025 UTC