From:             carlwenrich at yahoo dot com
Operating system: Windows or Linux
PHP version:      5.2.5
PHP Bug Type:     URL related
Bug description:  file_get_contents() returns wrong url

Description:
------------
PROBLEM:

The file_get_contents() function returns the wrong url.

OVERVIEW:

If you point your browser to "http://finance.yahoo.com/q/op?s=A"; you will
get the first set of options (in this case April 2008) for Agilent. If you
point it to "http://finance.yahoo.com/q/op?s=A&m=2008-05"; you will get the
second set (in this case May 2008).

HOWEVER:

If you use the file_get_contents() function you will get the first set
regardless of which url you use. It ignores the "&m=2008-05".



Reproduce code:
---------------
$url = "http://finance.yahoo.com/q/op?s=A&m=2008-05";;
$content = file_get_contents($url);


Expected result:
----------------
I expected the May 2008 options page.

Actual result:
--------------
I got the April 2008 options page.

-- 
Edit bug report at http://bugs.php.net/?id=44724&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=44724&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=44724&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=44724&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44724&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=44724&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44724&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44724&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44724&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44724&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44724&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=44724&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=44724&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44724&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=44724&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=44724&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44724&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44724&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44724&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44724&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44724&r=mysqlcfg

Reply via email to