Date: 08/31/99
- Next message: Bug Database: "[PHP-DEV] Bug #2033 Updated: serialize() produces: FATAL: emalloc(): Unable to allocate 4160742841l bytes"
- Previous message: Bug Database: "[PHP-DEV] Bug #2033 Updated: serialize() produces: FATAL: emalloc(): Unable to allocate 4160742841l bytes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
thies Tue Aug 31 09:24:48 1999 EDT
Modified files:
/php3 ChangeLog
/php3/functions var.c
Log:
unfix #2033 - configure needs to detect that!
Index: php3/ChangeLog
diff -u php3/ChangeLog:1.748 php3/ChangeLog:1.749
--- php3/ChangeLog:1.748 Tue Aug 31 09:20:04 1999
+++ php3/ChangeLog Tue Aug 31 09:24:46 1999
@@ -2,7 +2,6 @@
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
???? ??, 1999, Version 3.0.13
-- Fixed serialize on SunOS 4.1.3 (Thies from elfchief <email protected>)
- Fixed a crash that would occur if wddx_deserialize did not receive
a valid packet (Andrey)
- Fixed sem_get() on AIX (Sascha)
Index: php3/functions/var.c
diff -u php3/functions/var.c:1.15 php3/functions/var.c:1.16
--- php3/functions/var.c:1.15 Tue Aug 31 09:20:04 1999
+++ php3/functions/var.c Tue Aug 31 09:24:48 1999
@@ -27,7 +27,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: var.c,v 1.15 1999/08/31 13:20:04 thies Exp $ */
+/* $Id: var.c,v 1.16 1999/08/31 13:24:48 thies Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
@@ -42,7 +42,6 @@
#include "reg.h"
#include "post.h"
#include "php3_string.h"
-#include "snprintf.h"
#ifdef HAVE_LOCALE_H
# include <locale.h>
#endif
@@ -61,17 +60,17 @@
switch (struc->type) {
case IS_LONG:
- i = _php3_sprintf(buf, "%*cint(%ld)\n", level, ' ', struc->value.lval);
+ i = sprintf(buf, "%*cint(%ld)\n", level, ' ', struc->value.lval);
PHPWRITE(&buf[1], i - 1);
break;
case IS_DOUBLE:
- i = _php3_sprintf(buf, "%*cfloat(%g)\n", level, ' ', struc->value.dval);
+ i = sprintf(buf, "%*cfloat(%g)\n", level, ' ', struc->value.dval);
PHPWRITE(&buf[1], i - 1);
break;
case IS_STRING:
- i = _php3_sprintf(buf, "%*cstring(%d) \"", level, ' ', struc->value.str.len);
+ i = sprintf(buf, "%*cstring(%d) \"", level, ' ', struc->value.str.len);
PHPWRITE(&buf[1], i - 1);
PHPWRITE(struc->value.str.val, struc->value.str.len);
strcpy(buf, "\"\n");
@@ -79,12 +78,12 @@
break;
case IS_ARRAY:
- i = _php3_sprintf(buf, "%*carray(%d) {\n", level, ' ', _php3_hash_num_elements(struc->value.ht));
+ i = sprintf(buf, "%*carray(%d) {\n", level, ' ', _php3_hash_num_elements(struc->value.ht));
PHPWRITE(&buf[1], i - 1);
goto head_done;
case IS_OBJECT:
- i = _php3_sprintf(buf, "%*cobject(%d) {\n", level, ' ', _php3_hash_num_elements(struc->value.ht));
+ i = sprintf(buf, "%*cobject(%d) {\n", level, ' ', _php3_hash_num_elements(struc->value.ht));
PHPWRITE(&buf[1], i - 1);
head_done:
@@ -125,12 +124,12 @@
}
php3api_var_dump(data, level + 2);
}
- i = _php3_sprintf(buf, "%*c}\n", level, ' ');
+ i = sprintf(buf, "%*c}\n", level, ' ');
PHPWRITE(&buf[1], i - 1);
break;
default:
- i = _php3_sprintf(buf, "%*ci:0\n", level, ' ');
+ i = sprintf(buf, "%*ci:0\n", level, ' ');
PHPWRITE(&buf[1], i - 1);
}
}
@@ -171,12 +170,12 @@
switch (struc->type) {
case IS_LONG:
- slen = _php3_sprintf(s, "i:%ld;", struc->value.lval);
+ slen = sprintf(s, "i:%ld;", struc->value.lval);
STR_CAT(buf, s, slen);
return;
case IS_DOUBLE:
- slen = _php3_sprintf(s, "d:%g;", struc->value.dval);
+ slen = sprintf(s, "d:%g;", struc->value.dval);
STR_CAT(buf, s, slen);
return;
@@ -184,7 +183,7 @@
char *p;
i = buf->value.str.len;
- slen = _php3_sprintf(s, "s:%d:\"", struc->value.str.len);
+ slen = sprintf(s, "s:%d:\"", struc->value.str.len);
STR_CAT(buf, s, slen + struc->value.str.len + 2);
p = buf->value.str.val + i + slen;
if (struc->value.str.len > 0) {
@@ -206,7 +205,7 @@
got_array:
i = _php3_hash_num_elements(struc->value.ht);
- slen = _php3_sprintf(s, "%c:%d:{", ch, i);
+ slen = sprintf(s, "%c:%d:{", ch, i);
STR_CAT(buf, s, slen);
if (i > 0) {
char *key;
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Bug Database: "[PHP-DEV] Bug #2033 Updated: serialize() produces: FATAL: emalloc(): Unable to allocate 4160742841l bytes"
- Previous message: Bug Database: "[PHP-DEV] Bug #2033 Updated: serialize() produces: FATAL: emalloc(): Unable to allocate 4160742841l bytes"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

