#35706 [NEW]: Constants defined even when they are no randomly
From: andy at mandlnet dot co dot uk
Operating system: Linux
PHP version: 4.4.1
PHP Bug Type: Unknown/Other Function
Bug description: Constants defined even when they are no randomly
Description:
------------
Defined constants appear to carry over occasionally between sites on the
same server. We have downgraded to PHP 4.3.10 now and this has fixed the
problem.
Reproduce code:
---------------
<?php
foreach(get_defined_constants() as $key => $value) {
printf("%s = ", $key);
var_dump($value);
}
?>
Expected result:
----------------
Sometimes you will get just a normal result, if you have a site on the
same server that uses defined constants sometimes they appear at the
bottom.
It should display all defined constants from
E_ERROR = int(1) to GD_BUNDLED = int(0) as no others have been defined in
our script.
Actual result:
--------------
Occasionally we got :
CMS_VERSION_MAJ = int(4) CMS_VERSION_MIN = int(0) CMS_VERSION_INC = int(3)
CMS_VERSION = string(5) "4.0.3" CMS_CONFIG_SITENAME = string(11)
"<deleted>" CMS_CONFIG_CHIEF_EMAIL = string(21) "<deleted>"
CMS_CONFIG_ADMIN_CLIENTHELPCONTACT = string(58) "<deleted>"
as well as constants defined for database conectivity. (username and
password) from other virtual hosts on the same server.
--
Edit bug report at http://bugs.php.net/?id=35706&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35706&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35706&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35706&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=35706&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=35706&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=35706&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=35706&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=35706&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=35706&r=support
Expected behavior: http://bugs.php.net/fix.php?id=35706&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=35706&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=35706&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=35706&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35706&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=35706&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=35706&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=35706&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=35706&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=35706&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=35706&r=mysqlcfg
Thread (4 messages)
- andy at mandlnet dot co dot uk