php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57212 Globals missing when APC is in use
Submitted: 2006-09-01 03:53 UTC Modified: 2006-09-01 05:26 UTC
From: christian_boitel at yahoo dot fr Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 5.1.6 OS: Solaris 2.9
Private report: No CVE-ID: None
 [2006-09-01 03:53 UTC] christian_boitel at yahoo dot fr
Description:
------------
When auto_globals_jit is set to on:
- 1st time a script using a $_SERVER[ 'XXX' ] variable is called, output is as expected
- next invocations of the page will result in an error being displayed stating _SERVER variable does not exist

Bug has appeared when upgrading to latest APC CVS files and has therefore been introduced in one the following file/versions:
- php_apc.c versions 3.103 and 3.105
- apc_compile.c versions 3.51 and 3.53
- apc_compile.h versions 3.12 and 3.13
- apc_main.c versions 3.80 and 3.81

Testes have also showned that using PHP v5.1.5 or v5.1.6 leads to the same result if using the lastest APC versions listed above.

Reproduce code:
---------------
<?php
echo "Hostname called is: ".$_SERVER[ 'HTTP_HOST' ];
?>


Expected result:
----------------
Hostname called is: xxxxx

Actual result:
--------------
Hostname called is: 
Notice: Undefined variable: _SERVER in xxxxx.php on line n


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-09-01 05:26 UTC] gopalv82 at yahoo dot com
Sorry for the regression, it should be fixed now (apc_compile,3.54)

And thanks for the bug report.
 [2006-09-01 05:26 UTC] gopalv82 at yahoo dot com
Sorry for the regression, it should be fixed now (apc_compile,3.54)

And thanks for the bug report.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 00:01:34 2024 UTC