Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

#14 closed defect (fixed)

Weblog error with xcache: Cannot redeclare ()

Reported by: soporte@… Owned by: moo
Priority: minor Milestone: 1.0.1
Component: cacher Version: 1.0
Keywords: Cc: soporte@…
Application: PHP Version:
Other Exts: SAPI:
Probability: Blocked By:
Blocking:

Description

Hi Moo ;)

Well, I already know I might be better with a short reproducible to crash the extension, but this is not always possible...

the weblog serendipity http://www.s9y.org/ (branch 1.0 stable from the current svn), crashes miserably with xcache enabled.

the error is :

Fatal error: Cannot redeclare () in .../include/lang.inc.php on line 43

In using latest xcache from svn, PHP 5_2 .

ps: APC had the same bug, but they fixed it, I don't know how though ;-)

Change History (16)

comment:1 Changed 9 years ago by moo

can u paste something around .../include/lang.inc.php on line 43 ? and tell me which is line 43

comment:2 Changed 9 years ago by soporte@…

function serendipity_mb() { is in line 43 ... seems to get redeclared.. I know this is a pretty silly bug report :) but I do not have time now to provide a very short script to reproduce it, but when Im back home I will.. an xdebug trace may help us ;-)

comment:3 Changed 8 years ago by moo

  • Type changed from task to defect

comment:4 Changed 8 years ago by moo

relative bugs: #17, #18

comment:5 Changed 8 years ago by anonymous

  • Resolution set to fixed
  • Status changed from new to closed

in [86]

comment:6 Changed 8 years ago by anonymous

  • Version changed from 2.0 to 1.0

comment:7 Changed 8 years ago by anonymous

  • Resolution fixed deleted
  • Status changed from closed to reopened

this is still reproducible with current SVN.

comment:8 Changed 8 years ago by moo

i guess #17, #18 isn't relative to this bugs.

comment:9 Changed 8 years ago by moo

  • Owner changed from somebody to moo
  • Status changed from reopened to new

reproduced by
test.php

<?php
error_reporting(E_ALL);
include("abc.php");
include("abc.php");

abc.php:

<?php
if (0) {
    function a() {
        echo "a() called<br>";
    }
}

comment:10 Changed 8 years ago by moo

  • Summary changed from Weblog crashes with xcache to Weblog error with xcache: Cannot redeclare

comment:11 Changed 8 years ago by moo

  • Summary changed from Weblog error with xcache: Cannot redeclare to Weblog error with xcache: Cannot redeclare ()

comment:12 Changed 8 years ago by anonymous

  • Cc soporte@… added

comment:13 Changed 8 years ago by moo

  • Resolution set to fixed
  • Status changed from new to closed

in trunk [88]

comment:14 Changed 8 years ago by judas_iscariote

thank you moo, that worked ;)

comment:15 Changed 8 years ago by moo

  • Milestone set to 1.0.1

comment:16 Changed 8 years ago by moo

  • Component changed from component1 to cacher
Note: See TracTickets for help on using tickets.