From:             danielc at analysisandsolutions dot com
Operating system: Win 2000
PHP version:      5CVS-2004-09-21 (dev)
PHP Bug Type:     Unknown/Other Function
Bug description:  run-tests error_reporting / ~E_STRICT ignored in phpt files

Description:
------------
Using:
    * PHP 5.0.2RC1 (cli) (built: Sep 21 2004 10:29:26)
    * run-tests.php version 1.195.2.1 or HEAD

When error_reporting is set to E_ALL in a .phpt file, E_STRICT warnings
still come up for code in the .phpt file.  The notice isn't generated for
code in included files.

Reproduce code:
---------------
NOTE: two files...

=============== s.phpt =================
--TEST--
error_reporting ignored for code in phpt
--SKIPIF--
--FILE--
<?php

/*
 * error_reporting(E_ALL) is ignored for the code
 * in this file but not the included file.
 */
error_reporting(E_ALL);

include './s.inc';

class phpt {
    var $phpt_var;
}

?>
--EXPECT--


=============== s.inc =================
<?php

class inc {
    var $inc_var;
}


Expected result:
----------------
Test to pass.

Actual result:
--------------
If error_reporting(E_ALL)
-------------------------
Strict Standards: var: Deprecated. Please use the public/private/protected
modifiers in s.php on line 12


If error_reporting(E_ALL) commented out
---------------------------------------
Strict Standards: var: Deprecated. Please use the public/private/protected
modifiers in s.php on line 12

Strict Standards: var: Deprecated. Please use the public/private/protected
modifiers in s.inc on line 4


-- 
Edit bug report at http://bugs.php.net/?id=30184&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30184&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30184&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30184&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30184&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30184&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30184&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30184&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30184&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30184&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30184&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=30184&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=30184&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30184&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30184&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30184&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30184&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30184&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30184&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30184&r=mysqlcfg

Reply via email to