Ticket #14 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

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@…
Blocked By: PHP Version:
Application: Need User Feedback:
Other Exts: SAPI:
Probability: 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

Changed 2 years ago by moo

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

Changed 2 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 ;-)

Changed 2 years ago by moo

  • type changed from task to defect

Changed 2 years ago by moo

relative bugs: #17, #18

Changed 2 years ago by anonymous

  • status changed from new to closed
  • resolution set to fixed

in [86]

Changed 2 years ago by anonymous

  • version changed from 2.0 to 1.0

Changed 2 years ago by anonymous

  • status changed from closed to reopened
  • resolution fixed deleted

this is still reproducible with current SVN.

Changed 2 years ago by moo

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

Changed 2 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>";
    }
}

Changed 2 years ago by moo

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

Changed 2 years ago by moo

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

Changed 2 years ago by anonymous

  • cc soporte@… added

Changed 2 years ago by moo

  • status changed from new to closed
  • resolution set to fixed

in trunk [88]

Changed 2 years ago by judas_iscariote

thank you moo, that worked ;)

Changed 2 years ago by moo

  • milestone set to 1.0.1

Changed 2 years ago by moo

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