ID: 9467
Updated by: cynic
Old-Status: Open
Status: Closed
Bug Type: Scripting Engine problem
Assigned To: 

This has changed some time ago. Every file (the "main" one, and any included/required) 
must be valid PHP scripts in themselves.

Previous Comments:

[2001-02-26 14:35:48] [EMAIL PROTECTED]

A parse error arises if a function was opened in the main file and closed in a 
require()'d or include()'d file.

I'm actually using PHP 4.0.5-dev for windows, 2001-02-20.  This problem also existed 
in 4.0.4-dev.  Note, the problem does not happen in PHP 3.0.16.

Here are the test scripts:

========== req-test.php ================

function Tester() {


   # Note, the function has its closing 
   # "}" inside the required file.

echo '<p>hi there from the main file</p>';


========== ================
   # This is still inside the function.

   echo '<p>Hi there from inside the function';
   echo ' that is continued inside the required file</p>';

}# End function Tester





ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to