|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61824 apc produces strange notice: "Undefined property: DOMXPath7X3iéé::$document"
Submitted: 2012-04-23 11:17 UTC Modified: 2012-06-11 04:13 UTC
Avg. Score:5.0 ± 0.0
Reproduced:3 of 3 (100.0%)
Same Version:3 (100.0%)
Same OS:3 (100.0%)
From: seb-php at baunz dot net Assigned: rasmus (profile)
Status: Closed Package: APC (PECL)
PHP Version: 5.4.0 OS: Linux
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.
Bug Type:
From: seb-php at baunz dot net
New email:
PHP Version: OS:


 [2012-04-23 11:17 UTC] seb-php at baunz dot net
running the test script with php 5.4.0 and APC-3.1.10 produces this strange php notice. when i disable the apc-extension, i get the expected result.

i also tried apc trunk (r325414) with a php snapshot from today (php5.4-201204230930), but i get the same strange error.

using libxml2 version 2.7.8.

Test script:

ini_set('display_errors', 1);
$d = new DOMDocument;
$d = new DOMXPath($d);

Expected result:

Actual result:
Notice: Undefined property: DOMXPath7X3iéé::$document in /home/seb/tmp/apcbug.php on line 6


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-06-01 07:53 UTC] cschneid at cschneid dot com
Try the patch at and see if it helps
 [2012-06-11 04:13 UTC]
This is fixed in SVN
 [2012-06-11 04:13 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: rasmus
 [2013-04-04 01:07 UTC] mi+php at aldan dot algebra dot com
This test still fails for me with APC-3.1.13 compiled against php-5.4.13 (on RHEL 5.7, 64bit):

APC: Bug #62190 Couldn't fetch DOMProcessingInstruction with APC and native obj (php 5.4 nts) [tests/apc54_003.phpt]
APC: Bug #62456 Incorrect description of notice variation 1 (php 5.4 nts) [tests/apc54_004.phpt]
APC: Bug #61912 Memory corruption in ext/dom (php 5.4) [tests/apc54_008.phpt]
APC: Bug #61824 apc produces strange notice (php 5.4) [tests/apc54_009.phpt]
APC: Bug #59938 APCIterator fails with large user cache [tests/apc54_018.phpt]
Trying to exclude trait method multiple times (origin Zend/tests/traits/error_010.phpt) [tests/apc54_error_010.phpt]
Exclude trait method [tests/apc54_error_010_2.phpt]

Using php-5.3.21 on the same system is clean.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 20 03:01:32 2024 UTC