cvs: php4 /ext/posix posix.c
| From: | Alexander Feldman | Date: | Thu, 05 Oct 2000 18:06:56 +0000 |
| Subject: | cvs: php4 /ext/posix posix.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-1939@lists.php.net to get a copy of this message | ||
sasha Thu Oct 5 11:06:56 2000 EDT
Modified files:
/php4/ext/posix posix.c
Log:
Fixed posix_addlimit() when adding the string "unlimited" to the result.
Now the posix_getrlimit() function does not cause core dump.
Index: php4/ext/posix/posix.c
diff -u php4/ext/posix/posix.c:1.22 php4/ext/posix/posix.c:1.23
--- php4/ext/posix/posix.c:1.22 Fri Aug 4 11:14:38 2000
+++ php4/ext/posix/posix.c Thu Oct 5 11:06:55 2000
@@ -27,7 +27,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: posix.c,v 1.22 2000/08/04 18:14:38 thies Exp $ */
+/* $Id: posix.c,v 1.23 2000/10/05 18:06:55 sasha Exp $ */
#include "php.h"
@@ -138,7 +138,7 @@
static PHP_MINFO_FUNCTION(posix)
{
php_info_print_table_start();
- php_info_print_table_row(2, "Revision", "$Revision: 1.22 $");
+ php_info_print_table_row(2, "Revision", "$Revision: 1.23 $");
php_info_print_table_end();
}
@@ -849,12 +849,12 @@
}
if (rl.rlim_cur == RLIM_INFINITY)
- add_assoc_stringl(return_value,soft,"unlimited", 9, 0);
+ add_assoc_string(return_value,soft,"unlimited", 1);
else
add_assoc_long(return_value,soft,rl.rlim_cur);
if (rl.rlim_max == RLIM_INFINITY)
- add_assoc_stringl(return_value,hard,"unlimited", 9, 0);
+ add_assoc_string(return_value,hard,"unlimited", 1);
else
add_assoc_long(return_value,hard,rl.rlim_max);