ID:               38654
 Updated by:       [EMAIL PROTECTED]
 Reported By:      tjerk dot meesters at gmail dot com
-Status:           Open
+Status:           Closed
 Bug Type:         Streams related
 Operating System: Linux
 PHP Version:      5.1.5
 New Comment:

5.2.0 is the next release.
Fixed -> closed.


Previous Comments:
------------------------------------------------------------------------

[2006-08-31 11:50:03] tjerk dot meesters at gmail dot com

Bug still present in 5.1.6, but it seems to be resolved in 5.2.0RC3-dev

------------------------------------------------------------------------

[2006-08-30 15:17:57] [EMAIL PROTECTED]

Still not reproducible.

------------------------------------------------------------------------

[2006-08-30 15:05:27] tjerk dot meesters at gmail dot com

updated summary ...

------------------------------------------------------------------------

[2006-08-30 11:00:29] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.2-win32-latest.zip

Can't reproduce with both 5.1.5 and 5.2-CVS.

------------------------------------------------------------------------

[2006-08-30 10:48:55] tjerk dot meesters at gmail dot com

Description:
------------
When file_get_contents() is used in combination with
stream_context_create() not all wrapper options are taken into
consideration.

Tested PHP versions on Linux:
5.1.5 - not working
5.1.1 - working
5.0.4 - working

This bug doesn't seems to appear on Windows platforms:
5.1.5 - working


Reproduce code:
---------------
<?php

// this code will perform a POST request to a URL with this code:
// print_r($_POST)

echo
file_get_contents("http://www.example.com/info.php",null,stream_context_create(array(
        'http' => array(
                'method' => 'POST',
                'content' => 'cmd=_notify-validate',
                'header' => 'Content-Type:
application/x-www-form-urlencoded',
        )
)));

?>

Expected result:
----------------
Array
(
    [cmd] => _notify-validate
)


The meta information:
CONTENT_LENGTH: 20
REQUEST_METHOD: POST
CONTENT_TYPE: application/x-www-form-urlencoded


Actual result:
--------------
Array
(
)


The meta information:
HTTP_USER_AGENT: PHP/5.1.5 <-- this didnt't appear anywhere else
REQUEST_METHOD: GET
CONTENT_TYPE: application/x-www-form-urlencoded



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=38654&edit=1

Reply via email to