--FILE--
<?php
-error_reporting(E_ALL | E_STRICT);
+error_reporting(E_ALL);
var_dump(error_reporting());
function make_exception_and_change_err_reporting()
{
- error_reporting(E_ALL & ~E_STRICT);
+ error_reporting(E_ALL & ~E_NOTICE);
throw new Exception();
}
--EXPECT--
int(32767)
int(32767)
-int(30719)
+int(32759)
Done
--TEST--
-Bug #52160 (Invalid E_STRICT redefined constructor error)
+Bug #52160 (Invalid E_DEPRECATED redefined constructor error)
--FILE--
<?php
--TEST--
-Bug #62956: "incompatible" signatures for private methods should not cause E_STRICT
+Bug #62956: "incompatible" signatures for private methods should not cause E_WARNING
--FILE--
<?php
class Base
--TEST--
-Bug #64988 (Class loading order affects E_STRICT warning)
+Bug #64988 (Class loading order affects E_WARNING warning)
--FILE--
<?php
abstract class Base1 {
--TEST--
-bug67436: E_STRICT instead of custom error handler
+bug67436: E_WARNING instead of custom error handler
--FILE--
<?php
--FILE--
<?php
-error_reporting(E_ALL);
+error_reporting(E_ALL & ~E_DEPRECATED);
function foo($arg) {
}
function bar() {
- error_reporting(E_ALL|E_STRICT);
+ error_reporting(E_ALL);
throw new Exception("test");
}
--FILE--
<?php
-error_reporting(E_ALL);
+error_reporting(E_ALL & ~E_DEPRECATED);
function foo($arg) {
echo @$nonex_foo;
function foo1() {
echo $undef1;
- error_reporting(E_ALL|E_STRICT);
+ error_reporting(E_ALL);
echo $undef2;
}
--FILE--
<?php
-error_reporting(E_ALL);
+error_reporting(E_ALL & ~E_DEPRECATED);
function foo() {
echo $undef;
- error_reporting(E_ALL|E_STRICT);
+ error_reporting(E_ALL);
}
--FILE--
<?php
-error_reporting(E_ALL);
+error_reporting(E_ALL & ~E_DEPRECATED);
function foo1($arg) {
}
}
function foo3() {
- error_reporting(E_ALL|E_STRICT);
+ error_reporting(E_ALL);
echo $undef3;
throw new Exception("test");
}
--FILE--
<?php
-error_reporting(E_ALL);
+error_reporting(E_ALL & ~E_DEPRECATED);
function bar() {
echo @$blah;
function foo() {
echo @$undef;
- error_reporting(E_ALL|E_STRICT);
+ error_reporting(E_ALL);
echo $blah;
return bar();
}
--FILE--
<?php
-error_reporting(E_ALL|E_STRICT);
-
class Foo { }
try {
return 0;
}
if (is_callable_error) {
- /* Possible E_STRICT error message */
+ /* Possible error message */
efree(is_callable_error);
}
<?php
require_once(__DIR__ . DIRECTORY_SEPARATOR . 'mysql_pdo_test.inc');
- // No silly strict mode warnings, please!
- error_reporting(E_ALL^E_STRICT);
- ini_set('display_errors', false);
-
try {
class MyPDO extends PDO {
return call_user_func_array(array($this, 'parent::__construct'), func_get_args());
}
- public function exec() {
+ public function exec($statement) {
$this->protocol();
- return call_user_func_array(array($this, 'parent::exec'), func_get_args());
+ return parent::exec($statement);
}
public function query() {
$oldErrorHandler = set_error_handler(
'handleError',
- E_ALL | E_STRICT
+ E_ALL
);
try {
return FAILURE;
}
- /* this archive has no open references, so emit an E_STRICT and remove it */
+ /* this archive has no open references, so emit a notice and remove it */
if (zend_hash_str_del(&(PHAR_G(phar_fname_map)), phar->fname, phar->fname_len) != SUCCESS) {
return FAILURE;
}
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
-error_reporting(E_ALL|E_STRICT);
function getSoapClient_1() {
$ctx = stream_context_create();
error_reporting = E_ALL
error_reporting1 = E_COMPILE_ERROR|E_RECOVERABLE_ERROR |E_ERROR|E_CORE_ERROR
error_reporting2 = E_ALL&~E_NOTICE
-error_reporting3 = E_ALL & ~E_NOTICE
-error_reporting4 = E_ALL & ~E_NOTICE | E_STRICT
+error_reporting3 = E_ALL & ~E_NOTICE
+error_reporting4 = E_ALL & ~E_NOTICE | E_PARSE
['true or false']
bool_true = true
* Alias to functions:
*/
-error_reporting(E_ALL & ~E_STRICT);
ini_set("SMTP", "localhost");
ini_set("smtp_port", 25);
ini_set("sendmail_from", "user@example.com");
* Alias to functions:
*/
-error_reporting(E_ALL & ~E_STRICT);
-
echo "*** Testing mail() : basic functionality ***\n";
require_once(__DIR__.'/mail_include.inc');
$subject_prefix = "!**PHPT**!";
* Alias to functions:
*/
-error_reporting(E_ALL & ~E_STRICT);
-
echo "*** Testing mail() : basic functionality ***\n";
require_once(__DIR__.'/mail_include.inc');
$subject_prefix = "!**PHPT**!";
* Alias to functions:
*/
-error_reporting(E_ALL & ~E_STRICT);
-
echo "*** Testing mail() : basic functionality ***\n";
require_once(__DIR__.'/mail_include.inc');
$subject_prefix = "!**PHPT**!";
* Alias to functions:
*/
-error_reporting(E_ALL & ~E_STRICT);
ini_set("SMTP", "localhost");
ini_set("smtp_port", 2525);
ini_set("sendmail_from", "user@example.com");
* Alias to functions:
*/
-error_reporting(E_ALL & ~E_STRICT);
ini_set("SMTP", "localplace");
ini_set("smtp_port", 25);
ini_set("sendmail_from", "user@example.com");
* Alias to functions:
*/
-error_reporting(E_ALL & ~E_STRICT);
ini_set("SMTP", "localhost");
ini_set("smtp_port", 25);
<?php
-error_reporting(E_ALL|E_STRICT);
copy('test_with_comment.zip', 't.zip');
$z = new ZipArchive;
'open_basedir=',
'disable_functions=',
'output_buffering=Off',
- 'error_reporting=' . (E_ALL | E_STRICT),
+ 'error_reporting=' . E_ALL,
'display_errors=1',
'display_startup_errors=1',
'log_errors=0',
'E_USER_ERROR',
'E_USER_WARNING',
'E_USER_NOTICE',
- 'E_STRICT',
+ 'E_STRICT', // TODO Cleanup when removed from Zend Engine.
'E_RECOVERABLE_ERROR',
'E_USER_DEPRECATED'
];
--TEST--
Test bitwise AND, OR, XOR, NOT and logical NOT in INI via error_reporting
--INI--
-error_reporting = E_ALL & E_NOTICE | E_STRICT ^ E_DEPRECATED & ~E_WARNING | !E_ERROR
+error_reporting = E_ALL & E_NOTICE | E_PARSE ^ E_DEPRECATED & ~E_WARNING | !E_ERROR
--FILE--
<?php
echo ini_get('error_reporting');
?>
--EXPECT--
-10248
+8204
--TEST--
Bug #64523: XOR not parsed in INI
--INI--
-error_reporting = E_ALL ^ E_NOTICE ^ E_STRICT ^ E_DEPRECATED
+error_reporting = E_ALL ^ E_NOTICE ^ E_WARNING ^ E_DEPRECATED
--FILE--
<?php
echo ini_get('error_reporting');
?>
--EXPECT--
-22519
+24565