Index: php/util.i
===================================================================
--- php/util.i	(revision 13368)
+++ php/util.i	(working copy)
@@ -1,7 +1,7 @@
 %{
 /* php/util.i: custom PHP typemaps for xapian-bindings
  *
- * Copyright (C) 2004,2005,2006,2007,2008 Olly Betts
+ * Copyright (C) 2004,2005,2006,2007,2008,2009 Olly Betts
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License as
@@ -28,6 +28,9 @@
 #include "../xapian-version.h"
 %}
 
+// Use SWIG directors for PHP wrappers.
+#define XAPIAN_SWIG_DIRECTORS
+
 /* Add a section to the output from phpinfo(). */
 %pragma(php) phpinfo="
     const char * linked_version = Xapian::version_string();
@@ -39,10 +42,6 @@
     php_info_print_table_end();
 "
 
-// No point wrapping this abstract base class until SWIG supports directors
-// for PHP.
-%ignore Xapian::Sorter;
-
 %rename("is_empty") empty() const;
 %rename("clone_object") clone() const;
 

