php.net |  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
 [2006-06-04 13:57 UTC] sambukkaa at hotmail dot com
Description:
------------
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:

$var='1234';
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.

Patches

Pull Requests

History

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

.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Nov 15 01:01:36 2024 UTC