From: sambukkaa at hotmail dot com
Operating system: Windows
PHP version: 5.1.4
PHP Bug Type: HTTP related
Bug description: include() and reqire() return only 1
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.
--
Edit bug report at http://bugs.php.net/?id=37692&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=37692&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=37692&r=trysnapshot52
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=37692&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=37692&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=37692&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=37692&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=37692&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=37692&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=37692&r=support
Expected behavior: http://bugs.php.net/fix.php?id=37692&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=37692&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=37692&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=37692&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37692&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=37692&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=37692&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=37692&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=37692&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=37692&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=37692&r=mysqlcfg