php.net |  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
Votes:3
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.
Password:
Status:
Package:
Bug Type:
Summary:
From: seb-php at baunz dot net
New email:
PHP Version: OS:

 

 [2012-04-23 11:17 UTC] seb-php at baunz dot net
Description:
------------
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:
---------------
<?php

ini_set('display_errors', 1);
$d = new DOMDocument;
$d = new DOMXPath($d);
var_export($d->document);

Expected result:
----------------
DOMDocument::__set_state(array(
))

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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-06-01 07:53 UTC] cschneid at cschneid dot com
Try the patch at https://bugs.php.net/bug.php?id=62190 and see if it helps
 [2012-06-11 04:13 UTC] rasmus@php.net
This is fixed in SVN
 [2012-06-11 04:13 UTC] rasmus@php.net
-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):

FAILED TEST SUMMARY
---------------------------------------------------------------------
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: Thu Apr 18 14:01:31 2024 UTC