cvs: php4 /ext/ircg ircg.c

From: Date: Wed, 07 Mar 2001 20:24:28 +0000
Subject: cvs: php4 /ext/ircg ircg.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-4430@lists.php.net to get a copy of this message
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;

« previous php.cvs (#4430) next »