[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pecl-cvs
Subject:    [PECL-CVS] cvs: pecl /mongo collection.c cursor.c db.c mongo_types.c
From:       "Pierre-Alain Joye" <pajoye () php ! net>
Date:       2009-05-28 21:28:04
Message-ID: cvspajoye1243546084 () cvsserver
[Download RAW message or body]

pajoye		Thu May 28 21:28:04 2009 UTC

  Modified files:              
    /pecl/mongo	collection.c cursor.c db.c mongo_types.c 
  Log:
  - include spl exception header instead of using incompatible extern declaration
  
http://cvs.php.net/viewvc.cgi/pecl/mongo/collection.c?r1=1.4&r2=1.5&diff_format=u
Index: pecl/mongo/collection.c
diff -u pecl/mongo/collection.c:1.4 pecl/mongo/collection.c:1.5
--- pecl/mongo/collection.c:1.4	Thu May 28 21:01:50 2009
+++ pecl/mongo/collection.c	Thu May 28 21:28:04 2009
@@ -17,6 +17,7 @@
 
 #include <php.h>
 #include <zend_exceptions.h>
+#include "ext/spl/spl_exceptions.h"
 
 #include "mongo.h"
 #include "collection.h"
@@ -28,8 +29,7 @@
 extern zend_class_entry *mongo_ce_Mongo,
   *mongo_ce_DB,
   *mongo_ce_Cursor,
-  *mongo_ce_Exception,
-  *spl_ce_InvalidArgumentException;
+  *mongo_ce_Exception;
 
 extern int le_pconnection,
   le_connection,
http://cvs.php.net/viewvc.cgi/pecl/mongo/cursor.c?r1=1.3&r2=1.4&diff_format=u
Index: pecl/mongo/cursor.c
diff -u pecl/mongo/cursor.c:1.3 pecl/mongo/cursor.c:1.4
--- pecl/mongo/cursor.c:1.3	Thu May 28 21:01:50 2009
+++ pecl/mongo/cursor.c	Thu May 28 21:28:04 2009
@@ -26,8 +26,7 @@
 
 // externs
 extern zend_class_entry *mongo_ce_Id,
-  *mongo_ce_CursorException,
-  *zend_ce_iterator;
+  *mongo_ce_CursorException;
 
 extern int le_db_cursor,
   le_connection,
http://cvs.php.net/viewvc.cgi/pecl/mongo/db.c?r1=1.4&r2=1.5&diff_format=u
Index: pecl/mongo/db.c
diff -u pecl/mongo/db.c:1.4 pecl/mongo/db.c:1.5
--- pecl/mongo/db.c:1.4	Thu May 28 21:01:50 2009
+++ pecl/mongo/db.c	Thu May 28 21:28:04 2009
@@ -18,6 +18,7 @@
 
 #include <php.h>
 #include <zend_exceptions.h>
+#include "ext/spl/spl_exceptions.h"
 
 #include "db.h"
 #include "mongo.h"
@@ -31,8 +32,7 @@
   *mongo_ce_Cursor,
   *mongo_ce_GridFS,
   *mongo_ce_Id,
-  *mongo_ce_Code,
-  *spl_ce_InvalidArgumentException;
+  *mongo_ce_Code;
 
 extern int le_pconnection,
   le_connection;
http://cvs.php.net/viewvc.cgi/pecl/mongo/mongo_types.c?r1=1.6&r2=1.7&diff_format=u
Index: pecl/mongo/mongo_types.c
diff -u pecl/mongo/mongo_types.c:1.6 pecl/mongo/mongo_types.c:1.7
--- pecl/mongo/mongo_types.c:1.6	Thu May 28 21:01:50 2009
+++ pecl/mongo/mongo_types.c	Thu May 28 21:28:04 2009
@@ -26,6 +26,7 @@
 
 #include <php.h>
 #include <zend_exceptions.h>
+#include "ext/spl/spl_exceptions.h"
 
 #include "mongo_types.h"
 #include "mongo.h"
@@ -34,7 +35,6 @@
 #include "bson.h"
 
 extern zend_class_entry *mongo_ce_DB,
-  *spl_ce_InvalidArgumentException,
   *mongo_ce_Exception;
 
 extern zend_object_handlers mongo_default_handlers;



-- 
PECL CVS Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic