Bug #54418 [Opn]: http_build_query not accepting enc_type

From: Date: Tue, 29 Mar 2011 17:39:19 +0000
Subject: Bug #54418 [Opn]: http_build_query not accepting enc_type
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-6163@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 Updated by: dtajchreber@php.net Reported by: chris at sedlmayr dot co dot uk Summary: http_build_query not accepting enc_type Status: Open Type: Bug -Package: *General Issues +Package: Documentation problem Operating System: CentOS 5 PHP Version: 5.3.6 Block user comment: N Private report: N New Comment: 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) Previous Comments: ------------------------------------------------------------------------ [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 (#6163) next »