[PHP-DEV] printf argument swapping patch

2001-04-06 Thread Morten Poulsen
Hi PHP Team, I have made a patch, so PHP can support swapping of arguments to printf (and friends), the way libc do it. This is especialy usefull when doing internationalization (see http://www.gnu.org/manual/gettext/html_mono/gettext.html#SEC17 for example), but it is also usefull when you need

Re: [PHP-DEV] printf argument swapping patch

2001-04-06 Thread Morten Poulsen
Morten Poulsen [EMAIL PROTECTED] said: I hope it's usefull :-) is's not! i just found a bug.. i'll fix it and send a new patch, sorry.. -- mortenp Thus spake the master programmer: "Let the programmers be many and the managers few -- then all will be productive." -- PHP Developme

Re: [PHP-DEV] printf argument swapping patch

2001-04-06 Thread Morten Poulsen
Morten Poulsen [EMAIL PROTECTED] said: i'll fix it and send a new patch, sorry.. Allright, here is the new patch. Sorry about all the fuzz. Greetings, Morten -- mortenp Thus spake the master programmer: "Let the programmers be many and the managers few -- then all will be produ

Re: [PHP-DEV] printf argument swapping patch

2001-04-09 Thread Morten Poulsen
Hi, Rasmus Lerdorf [EMAIL PROTECTED] said: Would you mind writing a test case or two to go along with this patch? See the tests/README file for help on how to write these. no, of cause. The attached patch also contains four more tests for printf (tests/strings/002.phpt), which tests the added

[PHP-DEV] patch for sprintf() argnum

2002-03-15 Thread Morten Poulsen
Hi, I discovered a bug in sprintf()'s argument swapping code. It accepts an argument number of zero, which is invalid. It is handled in different ways in different libcs, but i figured the best way to handle it in PHP was to make the functioncall fail. Patch is attached. Best regards, Morten

[PHP-DEV] [PATCH] sprintf() argnum

2002-03-21 Thread Morten Poulsen
PS. Thanks to mbn for whining :-) -- Morten Poulsen [EMAIL PROTECTED] http://www.afdelingp.dk/ Index: ext/standard/formatted_print.c === RCS file: /repository/php4/ext/standard/formatted_print.c,v retrieving revision 1.46 diff -u

Re: [PHP-DEV] standard platform names

2002-04-10 Thread Morten Poulsen
not often I have code that runs on _all_ powerpc's, no matter which OS. Just my .02 Euro, Morten -- Morten Poulsen [EMAIL PROTECTED] http://www.afdelingp.dk/ -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php