#36466 [Opn->Bgs]: if (@$class->func()) when $class is undefined

From: Date: Mon, 20 Feb 2006 17:20:29 +0000
Subject: #36466 [Opn->Bgs]: if (@$class->func()) when $class is undefined
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-93447@lists.php.net to get a copy of this message
ID: 36466 Updated by: derick@php.net Reported By: nullevent at gmail dot com -Status: Open +Status: Bogus Bug Type: Reproducible crash Operating System: Windows XP PHP Version: 5.1.2 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php @ shuts up *all* errors... Previous Comments: ------------------------------------------------------------------------ [2006-02-20 17:48:08] nullevent at gmail dot com Description: ------------ if(@$class->func()) crashes PHP when $class variable is undefined. Reproduce code: --------------- <?php if (@$class->func()) echo 'yes'; echo 'Independent output'; ?> Expected result: ---------------- Some error message about $class variable is undefined Actual result: -------------- Nothing. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36466&edit=1

« previous php.bugs (#93447) next »