</lead>
<date>2014-01-10</date>
<version>
- <release>0.3.0</release>
+ <release>0.3.1</release>
<api>0.3.0</api>
</version>
<stability>
</stability>
<license>BSD, revised</license>
<notes><![CDATA[
-* PECL release
+* Fixed some compile warnings (remi)
+* Fixed build portability problem (remi)
]]></notes>
<contents>
<dir name="/">
{
unsigned int high, low;
char *version[2];
+ char lt16 = "<=1.6";
irc_get_version(&high, &low);
spprintf(&version[1], 0, "%u.%u", high, low);
#if PHP_IPHP_IRCCLIENT_LIBIRCCLIENT_VERSION_HIGH
spprintf(&version[0], 0, "%u.%u", PHP_IRCCLIENT_LIBIRCCLIENT_VERSION_HIGH, PHP_IRCCLIENT_LIBIRCCLIENT_VERSION_LOW);
#else
- /* version <= 1.6 doesn't exposed its version */
- spprintf(&version[0], 0, "-");
+ /* version <= 1.6 doesn't expose its version */
+ version[0] = lt16;
#endif
php_info_print_table_start();
php_info_print_table_header(2, "IRC client support", "enabled");
);
php_info_print_table_end();
- efree(version[0]);
+ if (version[0] != lt16) {
+ efree(version[0]);
+ }
efree(version[1]);
}
| modification, are permitted provided that the conditions mentioned |
| in the accompanying LICENSE file are met. |
+--------------------------------------------------------------------+
- | Copyright (c) 2011, Michael Wallner <mike@php.net> |
+ | Copyright (c) 2014, Michael Wallner <mike@php.net> |
+--------------------------------------------------------------------+
*/
#ifndef PHP_IRCCLIENT_H
#define PHP_IRCCLIENT_H
-#define PHP_IRCCLIENT_VERSION "0.3.0"
+#define PHP_IRCCLIENT_VERSION "0.3.1"
extern zend_module_entry ircclient_module_entry;
#define phpext_ircclient_ptr &ircclient_module_entry