Summary: | php-5.1.4-r4 fails test code found in gettext | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Yura Kudryashov <urkud> |
Component: | [OLD] Core system | Assignee: | PHP Bugs <php-bugs> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | urkud, vapier |
Priority: | High | ||
Version: | 2006.0 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Yura Kudryashov
2006-08-09 03:21:53 UTC
http://www.php.net/printf Produces output according to format, which is described in the documentation for sprintf(). Returns the length of the outputted string. (In reply to comment #1) > http://www.php.net/printf > > Produces output according to format, which is described in the documentation > for sprintf(). Returns the length of the outputted string. > So, printf () returns length of the outputted string, and echo () prints this length. Am I right? read the manual: http://www.php.net/printf int printf ( string format [, mixed args [, mixed ...]] ) http://www.php.net/echo void echo ( string arg1 [, string ...] ) Please, read the example in the description. If output should be a1 then there is a bug in gettext's lang-php test. If output should be a then there is a bug in dev-lang/php-5.1.4-r4. Both packages are compiled from portage. the correct output is "a1" Hmmm why did you reassing this to us? "a1" is the expected format according to the PHP manual, it is what gets output when using printf() and PHP passes all it's own tests (make test) in this regard... So what's this broken "lang-php" test thingie??? It's not any package owned by the PHP herd, and our dev-lang/php tests all pass, so I'm at loss here... ??? Best regards, CHTEKK. No response from anyone, nothing broken on our side, it's assigned to us... Closing this! Best regards, CHTEKK. |