|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37692 include() and reqire() return only 1
Submitted: 2006-06-04 13:57 UTC Modified: 2006-06-04 14:02 UTC
From: sambukkaa at hotmail dot com Assigned:
Status: Not a bug Package: HTTP related
PHP Version: 5.1.4 OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
49 - 4 = ?
Subscribe to this entry?

 [2006-06-04 13:57 UTC] sambukkaa at hotmail dot com
The functions include() an require() do not return no values what so ever beside "1"

This test was done with Apache2 (last version) installed on Win2k advanced server (IIS not installed)

2 domains A and B were installed

Reproduce code:
On domain A: page index.php containing 2 lines as followed:

return $var;

On domain B: page index.php containing 2 lines as followed:

$foo = include ('http://server_a/index.php');
echo $foo; 

Expected result:
The functions include() and require() return only the value 1.
Any variations to call the file index.php on domain A with 
include() or require() would only return "1" and not the value "1234" as described in PHP documentations.

Actual result:
Functions include() and reqire() do not return remote values.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-06-04 14:02 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Aug 08 19:05:50 2022 UTC