|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20637 get_element_by_id() regression problem
Submitted: 2002-11-26 01:47 UTC Modified: 2002-11-26 09:46 UTC
From: chris at improbable dot org Assigned:
Status: Not a bug Package: DOM XML related
PHP Version: 4CVS-2002-11-26 (stable) OS: Mac OS X 10.2.2
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: chris at improbable dot org
New email:
PHP Version: OS:


 [2002-11-26 01:47 UTC] chris at improbable dot org
DomDocument->get_element_by_id() doesn't work again. This appears to be the same problem as bugs #16647 and 17629. Test program is the sample in 16647.

This on Mac OS X 10.2.2 with PHP 4.3.0-dev built from php4-STABLE-200211252030 snapshot and libxml 2.4.28, all built from source this afternoon.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-26 09:46 UTC]
The code from 17629 works fine for me. You have to set the right DTD for ID to work, as there is no ID attribute by default in XML...

 [2004-10-13 07:25 UTC] jason-dusek at uiowa dot edu
I have a correctly defined schema with id attributes of type xsd:ID, but get_element_by_id() fails on my data.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 27 10:01:30 2024 UTC