Date: 12/19/99
- Next message: Bug Database: "[PHP-DEV] PHP 4.0 Bug #2997 Updated: libzend compile failure : "functions/number.h" not found"
- Previous message: Rasmus Lerdorf: "[PHP-DEV] cvs: /CVSROOT cvsusers"
- In reply to: norman <email protected>: "[PHP-DEV] Bug #3003: split() limit not working correctly"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, 19 Dec 1999, norman <email protected> wrote:
> From: norman <email protected>
> Operating system: BSD/OS 3.1 i386
> PHP version: 3.0.12
> PHP Bug Type: Misbehaving function
> Bug description: split() limit not working correctly
>
> split() seems to be truncating data when using a limit
> argument, eg.
>
> <?php
> $x = split("-", "a-b-c-d", 2);
> print $x[1];
> ?>
>
> this should produce "b", but it produces "b-c-d" instead.
>
> this is the installation of PHP 3.0.12 used on www.iserver.com's accounts.
>
> i believe bug #1570 is the same problem.
'limit' parameter specifies how many _total_ pieces should be returned.
So, in this case it returns "a" and "b-c-d".
-Andrei
* It's an emergent property of human minds to create. *
-- 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] PHP 4.0 Bug #2997 Updated: libzend compile failure : "functions/number.h" not found"
- Previous message: Rasmus Lerdorf: "[PHP-DEV] cvs: /CVSROOT cvsusers"
- In reply to: norman <email protected>: "[PHP-DEV] Bug #3003: split() limit not working correctly"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

