Re: Router::queryString issue in 1.2 beta
> 1) http_build_query is a PHP5-only function It's implemented for PHP4 in basics.php, along with array_intersect_key, array_diff_key, file_put_contents and array_combine. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Router::queryString issue in 1.2 beta
I don't know if this has been addressed yet, but this is a problem... In "router.php" the method "queryString" uses http_build_query($q). There are 2 problems... 1) http_build_query is a PHP5-only function 2) the delimiter is not passed in the router function, so it defaults to arg_separator.output = "&" So when you are writing a datasource that uses http_socket, it will use & to separate the Http->post($url, $data_array); This causes problems for some websites. Possible Solutions: - Modify Router::queryString and have it pass a default delimiter - Modify http_socket->httpSerialize($data) function to call http_build_query() directly with a delimiter http://www.php.net/http_build_query http://www.php.net/manual/en/ini.core.php#ini.arg-separator.output --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Router::queryString issue in 1.2 beta
On Wed, Apr 23, 2008 at 2:04 PM, phpappdev256 <[EMAIL PROTECTED]> wrote: > > Possible Solutions: > > - Modify Router::queryString and have it pass a default delimiter > > - Modify http_socket->httpSerialize($data) function to call > http_build_query() directly with a delimiter File a ticket on trac.cakephp.org -- Chris Hartjes Internet Loudmouth Motto for 2008: "Moving from herding elephants to handling snakes..." @TheKeyBoard: http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---