Re: tests tweaks
| From: | (Marcus Börger) | Date: | Wed, 21 Aug 2002 21:54:22 +0000 |
| Subject: | Re: tests tweaks | ||
| References: | 1 2 3 4 5 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-87250@lists.php.net to get a copy of this message | ||
At 17:58 21.08.2002, Melvyn Sopacua wrote:
At 03:36 21-8-2002, Marcus Börger wrote:That it is there does not mean it is C99 complient. We only use our own snprintf it is missing.I made the functions a bit more C99 complient (maybe we should use some C99 complience suit...) but unfortuanetley that was not all. 1) someone must have changed ini setting precision from 14 to 12 Adding special INI section to array tests fixed test 1 & 2. 2) test 003 Test usort, uksort and uasort All this functions fail on the subarray....That test is now fixed. There's indeed a printf bug, for AIX: float(-.3333333333) on 003.phpt.
Funny thing is, that AIX has snprintf, and it's used. The manpage is here - if you want to see whether that complies to your requirements: http://publib.boulder.ibm.com/doc_link/en_US/a_doc_lib/libs/basetrf2/snprintf.htmThere is nothing said about to what it conforms and that there is at least one digit infront of the decimal point is not mentioned either so i guess the function was created before C99. Again it might be a good thing to check for C99 complience of snprintf and use our own function if not.
But it may be related to a bigger problem, as there are also pure negative array indexes: [-2147483648]=> string(6) "monkey" Must be a type problem. Relating to that, there is a overall mixup for AIX, with headers, resulting in various implicit declaration of standard functions like strcasecmp. This is because AIX has <string.h> as well as <strings.h> and has divided the function definitions amongst those two. Additionally time_t != long. I'll see tomorrow, what I can gather and report and/or provide patches. Some examples: /home/mdev/_src/php-HEAD/ext/mysql/php_mysql.c: In function `php_mysql_do_connect': /home/mdev/_src/php-HEAD/ext/mysql/php_mysql.c:675: warning: implicit declaration of function `strcasecmp' /home/mdev/_src/php-HEAD/ext/mysql/php_mysql.c: In function `zif_mysql_info': /home/mdev/_src/php-HEAD/ext/mysql/php_mysql.c:987: warning: `id' might be used uninitialized in this function /home/mdev/_src/php-HEAD/ext/session/session.c: In function `php_session_create_id': /home/mdev/_src/php-HEAD/ext/session/session.c:486: warning: long int format, time_t arg (arg 3) /home/mdev/_src/php-HEAD/ext/session/session.c:486: warning: long int format, suseconds_t arg (arg 4) /home/mdev/_src/php-HEAD/ext/session/session.c: In function `php_session_cache_limiter': Met vriendelijke groeten / With kind regards, Webmaster IDG.nl Melvyn Sopacua -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php