Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ using namespace trie;
#include "config.h"
#endif

#ifdef HAVE_SPL
#include "ext/spl/spl_exceptions.h"
#endif

/* For compatibility with older PHP versions */
#ifndef ZEND_PARSE_PARAMETERS_NONE
Expand Down
5 changes: 0 additions & 5 deletions php_trie.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -530,13 +530,8 @@ PHP_MINIT_FUNCTION(php_trie)
sizeof("DEFAULT_BURST_THRESHOLD") - 1,
DEFAULT_BURST_THRESHOLD);

#ifdef HAVE_SPL
phptrie_exception_ce = zend_register_internal_class_ex(
&exception_ce, spl_ce_RuntimeException);
#else
phptrie_exception_ce = zend_register_internal_class_ex(
&exception_ce, zend_exception_get_default());
#endif

zend_class_implements(phphattrie_ce, 2, zend_ce_arrayaccess, php_json_serializable_ce);
zend_class_implements(phptrie_ce, 2, zend_ce_arrayaccess, php_json_serializable_ce);
Expand Down
Loading