|  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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: sambukkaa at hotmail dot com
New email:
PHP Version: OS:


 [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-2021 The PHP Group
All rights reserved.
Last updated: Sat Sep 18 08:03:35 2021 UTC