> Keeping the current behavior doesn't really cost anything.
> Why change it?

I think I answered this question several times, including in the email
you are quoting! If you disagree, please state the matter of your
disagreement, repeating the same question over and over does not help.

> It's very easy to imagine a script like this:
> <?php
> $text_width = $parent_width - $other_width - $margin;
> echo wordwrap($text, $text_width);
> ?>
> Here someone tries to calculate $max_width dynamically.
> The calculation might produce a negative result sometimes.
> The text would be visible, even if it's not word wrapped.
> It might not look as expected, but it would be readable.

If it was expected to be wrapped but is not, then it would be shown on
top of other elements, or break the design layout. Not exactly the best
idea. Since calling it with negative argument makes no sense, there's no
behavior that makes sense. Producing an error means this nonsense
situation is discovered.

Stas Malyshev

PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to