Date: 08/24/01
- Next message: <email protected>: "[PHP-DEV] Bug #1 Updated: test"
- Previous message: Sascha Schumann: "Re: [PHP-DEV] Re: Re: sysvsem extention question"
- Next in thread: Andrei Zmievski: "Re: [PHP-DEV] Re: Bug #12929 Updated: crash in array_map with associative arrays"
- Reply: Andrei Zmievski: "Re: [PHP-DEV] Re: Bug #12929 Updated: crash in array_map with associative arrays"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 02:00 24-8-01 +0000, you wrote:
>ID: 12929
>Updated by: andrei
>Reported By: wico <email protected>
>Old Status: Assigned
>Status: Closed
>Bug Type: Reproducible crash
>Operating System: linux
>PHP Version: 4.0.6
>Assigned To: andrei
>New Comment:
>
>Fixed in CVS.
>
>Previous Comments:
>------------------------------------------------------------------------
>
>[2001-08-23 21:06:14] andrei <email protected>
>
>I can fix the crash, but what should be done with the keys? Should they be
>just ignored? I think it only makes sense to preserve them if you are
>mapping a single arrays, in case there are 2 or more, the keys are
>useless.. agree?
Yup i agree... :)
I was only interested in the keys
Greetz and tnx,
Wico
>------------------------------------------------------------------------
>
>[2001-08-23 12:38:35] wico <email protected>
>
>Have fun:
><?
> $data = Array('a','b','c'); // works
># $data = Array(1 => 'a', 2 => 'b', 3 => 'c'); // crash
># $data = Array('1' => 'a', '2' => '3'); // crash
>
> $plop = array_map('addslashes', $data);
> die("I didn't crash :)");
>?>
>
>------------------------------------------------------------------------
>
>
>
>ATTENTION! Do NOT reply to this email!
>To reply, use the web interface found at http://bugs.php.net/?id=12929&edit=2
-- 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: <email protected>: "[PHP-DEV] Bug #1 Updated: test"
- Previous message: Sascha Schumann: "Re: [PHP-DEV] Re: Re: sysvsem extention question"
- Next in thread: Andrei Zmievski: "Re: [PHP-DEV] Re: Bug #12929 Updated: crash in array_map with associative arrays"
- Reply: Andrei Zmievski: "Re: [PHP-DEV] Re: Bug #12929 Updated: crash in array_map with associative arrays"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

