ID:               43958
 User updated by:  sv4php at fmethod dot com
-Summary:          Reproduces on 5.3 nightly, 5.2.5 and 5.2.1 (live link)
 Reported By:      sv4php at fmethod dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         *General Issues
 Operating System: Windows XP
 PHP Version:      5.2.5
 New Comment:

'Exactly why it shouldn't print the class in which this happens?'

Four solid reasons:

1. Because running a method in the class is not the same as defining a
method for the class.

2. Replace 'include $p' with 'file_get_contents($p)' above, it does NOT
print the class (and it shouldn't).

3. If you have html_errors on, it prints a link that directs you to the
manual for method "include" in class "MyClass", which doesn't exist.

4. For us wild experimenters, makes re-routing errors in error handlers
less trivial, since the output is wrong...


Previous Comments:
------------------------------------------------------------------------

[2008-02-01 22:32:29] [EMAIL PROTECTED]

Exactly why it shouldn't print the class in which this happens?

------------------------------------------------------------------------

[2008-01-31 00:49:31] [EMAIL PROTECTED]

My suggestion:
http://ecl.zoone.com.br/etc/patches/bug43958.diff

------------------------------------------------------------------------

[2008-01-29 11:30:43] kissifrot at gmail dot com

Reproduces with PHP 5.2.5 on Windows Vista too

PHP Version 5.2.5; Windows NT 6.0 build 6000; Zend Engine v2.2.0,
Copyright (c) 1998-2007 Zend Technologies

This happens with require function too

------------------------------------------------------------------------

[2008-01-29 08:50:45] jck_true at hotmail dot com

PHP Version 5.2.3
Build date: May 31 2007 09:36:39
Windows XP Profesional SP2

Reproduced

------------------------------------------------------------------------

[2008-01-29 08:18:42] sv4php at fmethod dot com

Hi, I reproduced this on a 5.3 nightly just now (on XP), on 5.2.5 (on
XP), and here's a live link to a 5.2.1 (on Linux, CentOS):

http://www.fmethod.com/include_fail.php

This is the same exact example, but I added phpversion() call.

Note for the archives: I'll remove this link in few days.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/43958

-- 
Edit this bug report at http://bugs.php.net/?id=43958&edit=1

Reply via email to