From: Okyere, E. I. <com...@ho...> - 2004-07-27 15:04:37
|
I don't quite get this one; are you saying (amf)php should be treating the structure you are sending as an associative array and it is treating it as an _actual_ (integer-indexed) array? Can you post the relevant parts of your php and AS code? Thanks, eokyere | -----Original Message----- | From: amf...@li... [mailto:amfphp-general- | ad...@li...] On Behalf Of Bradley Miller | Sent: Tuesday, July 27, 2004 9:29 AM | To: amf...@li... | Subject: [amfphp] Serious bug in AMFPHP | | I wanted to bring up a serious bug in the AMFPHP logic that we hit head | on yesterday. The scenario is we have a datagrid and in that datagrid | people are selecting various actions (approve/deny). We were getting an | id from a column in the datagrid that represented a person's transaction | id. Yesterday our transaction id's went above something like 1.8 | million. (We go up by 10's, IE: 1, 11, 21, etc...) The problem is when | we are passing this into PHP we are passing an array with the | transaction id and a "approve or deny" flag. When we reached about the | 1.8 million mark or so the PHP end would completely stop working. As it | turns out, we were doing this: | | transaction_array["big_array_number"] = APPROVE; | transaction_array["some_other_big_array_number"] = DENY; | | The problem with the AMFPHP piece is it makes an array from 0 to | big_array_number. Once we hit about the 1.8 million mark that was | creating quite a sizable array and I think causing a timeout problem. | The way we got around it was to basically create a new array structure: | | transaction_array["APPROVE"] = big_array_number, big_array_number_2, | etc... | transaction_array["DENY"] = some_big_array_number, | some_big_array_number_2, etc... | | I think we're going to take a look at the AMFPHP code and see what it's | doing to create that little problem. | | | -- | Bradley Miller | The Selling Source - Kansas City | 913-648-5858 ext. 109 | | | | ------------------------------------------------------- | This SF.Net email is sponsored by BEA Weblogic Workshop | FREE Java Enterprise J2EE developer tools! | Get your free copy of BEA WebLogic Workshop 8.1 today. | http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click | _______________________________________________ | amfphp-general mailing list | amf...@li... | https://lists.sourceforge.net/lists/listinfo/amfphp-general |