Bug #54418 [Opn->Csd]: http_build_query not accepting enc_type

From: Date: Tue, 31 Jan 2012 15:43:16 +0000
Subject: Bug #54418 [Opn->Csd]: http_build_query not accepting enc_type
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-7891@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=54418&edit=1 ID: 54418 Updated by: jpauli@php.net Reported by: chris at sedlmayr dot co dot uk Summary: http_build_query not accepting enc_type -Status: Open +Status: Closed Type: Bug Package: Documentation problem Operating System: CentOS 5 PHP Version: 5.3.6 -Assigned To: +Assigned To: jpauli Block user comment: N Private report: N New Comment: Please try using this snapshot: http://snaps.php.net/php5.4-latest.tar.gz For Windows: http://windows.php.net/snapshots/ Implemented in PHP5.4 Previous Comments: ------------------------------------------------------------------------ [2011-03-29 19:44:03] chris at sedlmayr dot co dot uk 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 ------------------------------------------------------------------------ [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 https://bugs.php.net/bug.php?id=54418&edit=1

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