php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #49774 defined delivers wrong value
Submitted: 2009-10-05 09:26 UTC Modified: 2009-10-13 01:00 UTC
From: czarnowski at powercms dot org Assigned:
Status: No Feedback Package: *General Issues
PHP Version: 5.3.0 OS: Opensuse 11.1
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2009-10-05 09:26 UTC] czarnowski at powercms dot org
Description:
------------
This is a part of an included php file:
<?php
echo '<p>'.INSIDE_POWER_SITE.'</p>';
if (!defined(INSIDE_POWER_SITE)) die('DIRECT ACCESS FORBIDDEN (DEFINE)');
?>

INSIDE_POWERSITE was defined in the script before.

The output is:

/opt/lampp/htdocs/ps1.3/
DIRECT ACCESS FORBIDDEN (DEFINE)

/opt/lampp/htdocs/ps1.3/  is ok

But this not because INSIDE_POWER_SITE was defined, as i can look it with the echo statement:

DIRECT ACCESS FORBIDDEN (DEFINE)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-10-05 09:28 UTC] pajoye@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.


 [2009-10-13 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 02:01:29 2024 UTC