Re: svn: /php/php-src/ branches/PHP_5_4/ext/curl/interface.c trunk/ext/curl/interface.c

From: Date: Fri, 23 Sep 2011 14:11:14 +0000
Subject: Re: svn: /php/php-src/ branches/PHP_5_4/ext/curl/interface.c trunk/ext/curl/interface.c
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-66627@lists.php.net to get a copy of this message
Hello, any regression tests to be added? 2011/9/23 Rasmus Lerdorf <rasmus@php.net>: > rasmus                                   Fri, 23 Sep 2011 13:16:37 +0000 > > Revision: > http://svn.php.net/viewvc?view=revision&revision=317201 > > Log: > Fix for bug #55767 > > Bug: https://bugs.php.net/55767 (Open) CURLOPT_POSTFIELDS > Ignores Numeric Field Names > > Changed paths: >    U   php/php-src/branches/PHP_5_4/ext/curl/interface.c >    U   php/php-src/trunk/ext/curl/interface.c > > Modified: php/php-src/branches/PHP_5_4/ext/curl/interface.c > =================================================================== > --- php/php-src/branches/PHP_5_4/ext/curl/interface.c   2011-09-23 13:12:28 UTC (rev 317200) > +++ php/php-src/branches/PHP_5_4/ext/curl/interface.c   2011-09-23 13:16:37 UTC (rev 317201) > @@ -2028,6 +2028,11 @@ >                                        convert_to_string_ex(current); > >                                       >  zend_hash_get_current_key_ex(postfields, &string_key, &string_key_len, &num_key, 0, > NULL); > +                                       /* Pretend we have a string_key here > */ > +                                       if(!string_key) { > +                                               > spprintf(&string_key, 0, "%ld", num_key); > +                                               string_key_len = > strlen(string_key)+1; > +                                       } > >                                        postval = Z_STRVAL_PP(current); > > > Modified: php/php-src/trunk/ext/curl/interface.c > =================================================================== > --- php/php-src/trunk/ext/curl/interface.c      2011-09-23 13:12:28 UTC (rev 317200) > +++ php/php-src/trunk/ext/curl/interface.c      2011-09-23 13:16:37 UTC (rev 317201) > @@ -2029,6 +2029,12 @@ > >                                       >  zend_hash_get_current_key_ex(postfields, &string_key, &string_key_len, &num_key, 0, > NULL); > > +                                       /* Pretend we have a string_key here > */ > +                                       if(!string_key) { > +                                               > spprintf(&string_key, 0, "%ld", num_key); > +                                               string_key_len = > strlen(string_key)+1; > +                                       } > + >                                        postval = Z_STRVAL_PP(current); > >                                        /* The arguments after _NAMELENGTH > and _CONTENTSLENGTH > > > -- > PHP CVS Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- Regards, Shein Alexey

« previous php.cvs (#66627) next »