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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: christian_boitel at yahoo dot fr
New email:
PHP Version: OS:

 

 [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: Tue May 21 02:01:35 2024 UTC