php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57183 require_once breakages
Submitted: 2006-08-18 04:18 UTC Modified: 2006-08-18 06:32 UTC
From: marcus at synchromedia dot co dot uk Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 5.1.4 OS: All
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: marcus at synchromedia dot co dot uk
New email:
PHP Version: OS:

 

 [2006-08-18 04:18 UTC] marcus at synchromedia dot co dot uk
Description:
------------
I'm getting some strange breakage of PHP scripts, but only 
when run inside APC. A good source of examples seems to be 
jpgraph from http://www.aditus.nu/jpgraph/ as ALL of their 
examples break for me.
I'm seeing this on OS X (PPC and Intel) and RHEL4. The error 
messages (Warnings) it produces don't look 'normal' to me 
and are not very informative (to me anyway). Here's a 
typical error:

PHP Warning:  filename: jpgraph_plotmark.inc.php, 
exec_fname: /Users/marcus/Sites/jpgraph/src/
jpgraph_line.php, filepath: /Users/marcus/Sites/jpgraph/src/
jpgraph_plotmark.inc.php in /Users/marcus/Sites/jpgraph/src/
jpgraph_line.php on line 13

line 13 of that file is the first code line and it contains 
a require_once.

I'm using APC with default settings and optimization off.

As I said, the problem goes away with APC 
disabled.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-18 05:15 UTC] gopalv82 at yahoo dot com
There was a debug line in the release by mistake. You can ignore that warning or apply this patch.

http://cvs.php.net/viewvc.cgi/pecl/apc/apc.c?r1=3.14&r2=3.15
 [2006-08-18 06:31 UTC] marcus at synchromedia dot co dot uk
It turns out that jpgraph's error handler was being tripped up 
by this stray warning, so your patch did fix it. Thanks for 
that. I don't see why you classed this as bogus as it was a 
straightforward bug which you have now fixed, so surely 
'closed' would be better description.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 06:01:31 2024 UTC