sas             Wed Mar  7 12:24:28 2001 EDT

  Modified files:              
    /php4/ext/ircg      ircg.c 
  Log:
  Safety check for now, this can later be used to add real binary
  compatibility by increasing the size of php_irconn_t appropiately.
  
  
Index: php4/ext/ircg/ircg.c
diff -u php4/ext/ircg/ircg.c:1.44 php4/ext/ircg/ircg.c:1.45
--- php4/ext/ircg/ircg.c:1.44   Wed Mar  7 12:15:33 2001
+++ php4/ext/ircg/ircg.c        Wed Mar  7 12:24:28 2001
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: ircg.c,v 1.44 2001/03/07 20:15:33 sas Exp $ */
+/* $Id: ircg.c,v 1.45 2001/03/07 20:24:28 sas Exp $ */
 
 #include "php.h"
 #include "php_ini.h"
@@ -742,6 +742,15 @@
 {
        php_irconn_t *irconn = dummy;
 
+#if IRCG_API_VERSION >= 20010307
+       if (irc_sizeof_irconn() != sizeof(irconn_t)) {
+               printf("FATAL: The size of the irconn_t structure has grown "
+                               "since you compiled PHP.  Please rebuild PHP against "
+                               "the correct IRCG header files.\n");
+               exit(1);
+       }
+#endif
+       
        if (irconn->ident) {
                smart_str m;
 



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to