Open
Bug 986212
Opened 11 years ago
Updated 3 years ago
json file_get_contents firefox says no source when debugging
Categories
(Core :: General, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: torbjornljung, Unassigned)
Details
Attachments
(1 file)
306 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0 (Beta/Release)
Build ID: 20140212131424
Steps to reproduce:
This example is taken from http://99webtools.com/get-movie-info-imdb.php
The example works OK when the clicking Sample Request
I copied the code-example from their site and run it, here's the code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title></title>
<meta name="" content="">
</head>
<body>
<?php
$json_url="http://www.omdbapi.com/?t=titanic&y=1997";
$json = file_get_contents($json_url);
$info=json_decode($json);
print_r($info);
?>
</body>
</html>
Actual results:
Nothing just a blank screen
Expected results:
If you click on the sample request http://99webtools.com/get-movie-info-imdb.php
You'll get:
{"Title":"Titanic","Year":"1997","Rated":"PG-13","Released":"19 Dec 1997","Runtime":"194 min","Genre":"Drama, Romance","Director":"James Cameron","Writer":"James Cameron","Actors":"Leonardo DiCaprio, Kate Winslet, Billy Zane, Kathy Bates","Plot":"A seventeen-year-old aristocrat, expecting to be married to a rich claimant by her mother, falls in love with a kind but poor artist aboard the luxurious, ill-fated R.M.S. Titanic.","Language":"English, French, German, Swedish, Italian, Russian","Country":"USA","Awards":"Won 11 Oscars. Another 86 wins & 50 nominations.","Poster":"http://ia.media-imdb.com/images/M/MV5BMjExNzM0NDM0N15BMl5BanBnXkFtZTcwMzkxOTUwNw@@._V1_SX300.jpg","Metascore":"74","imdbRating":"7.7","imdbVotes":"556,987","imdbID":"tt0120338","Type":"movie","Response"
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•