Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove the default allocator function from Document
We expect that XML documents will be of type T_DATA as they are backed by a C extension. It was possible for people to call `allocate` on Document and end up with a T_OBJECT. This commit removes the default allocator so the only way to get a document object is via the constructors we've defined.
- Loading branch information
1 parent
7df5d3c
commit 16ecfc0
Showing
2 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters