Bug #54418 [Com]: http_build_query not accepting enc_type

From: Date: Tue, 29 Mar 2011 17:44:03 +0000
Subject: Bug #54418 [Com]: http_build_query not accepting enc_type
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6164@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=54418&edit=1 ID: 54418 Comment by: chris at sedlmayr dot co dot uk Reported by: chris at sedlmayr dot co dot uk Summary: http_build_query not accepting enc_type Status: Open Type: Bug Package: Documentation problem Operating System: CentOS 5 PHP Version: 5.3.6 Block user comment: N Private report: N New Comment: OK That's great. The docs state it's part of the 5.3.6 release. Can we get the docs amended or have this included in the 5.3.7 release? Thanks either way. Chris Previous Comments: ------------------------------------------------------------------------ [2011-03-29 19:39:18] dtajchreber@php.net Exists in trunk but not 5_3: http://svn.php.net/viewvc/php/php- src/trunk/ext/standard/http.c?view=markup#l209 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|ssl", &formdata, &prefix, &prefix_len, &arg_sep, &arg_sep_len, &enc_type) != SUCCESS) ------------------------------------------------------------------------ [2011-03-29 18:26:44] chris at sedlmayr dot co dot uk Description: ------------ According to the latest documentation, http_build_query should accept a fourth argument so you can specify the alternate RFC for encoding of spaces to %20 rather than + Checking the source however this does not appear to be the case, and this has not yet been implemented. Test script: --------------- Source: ZEND_BEGIN_ARG_INFO_EX(arginfo_http_build_query, 0, 0, 1) ZEND_ARG_INFO(0, formdata) ZEND_ARG_INFO(0, prefix) ZEND_ARG_INFO(0, arg_separator) ZEND_END_ARG_INFO() ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=54418&edit=1

« previous php.doc.bugs (#6164) next »