|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-06-04 14:02 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 19:00:01 2025 UTC |
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.