|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2005-09-23 23:20 UTC] andrea at 3site dot it
Description:
------------
While I interact with another class and I call a method sending a run-time created array its values (integer value) is wrong.
This happen when I work with a lot of $_POST variables (I don't know if this is a problem but without this bug is absent ...)
Reproduce code:
---------------
// code ....
// NOTE: I develop with error_reporting E_ALL
// and at this point is all OK
// die(print_r($artist_id, true));
// produce Array ( [0] => 1 [1] => image )
$GLOBALS['SES']->register('__artist_modify__', array($artist_id[0], $artist_id[1]));
// external class, that work without problems ...
// on $GLOBALS['SES'] register method
function register($name, $value) {
die(print_r($value, true));
// produce Array ( [0] => 86724468 [1] => image )
}
Expected result:
----------------
Expected ? ... I send an array with two keys ... so what's up ?
Actual result:
--------------
// this code works perfectly ...
function accept($name, $value) {
die(print_r($value, true));
}
$artist_id = array(1, 'image');
accept('__artist_modify__', array($artist_id[0], $artist_id[1]));
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Dec 19 10:00:01 2025 UTC |
P.S. ... with this code $GLOBALS['SES']->register('__artist_modify__', array(''.$artist_id[0].'', $artist_id[1])); it works as expected ... then maybe a trouble with an integer value ?