|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2010-07-23 11:37 UTC] aharvey@php.net
-Status: Open
+Status: Bogus
[2010-07-23 11:37 UTC] aharvey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 07:00:02 2025 UTC |
Description: ------------ The following is a valid: (!array_key_exists($class, $this->_data)) AND new InvalidArgumentException("Class does not exist"); However the following is not: (!array_key_exists($class, $this->_data)) AND throw new InvalidArgumentException("Class does not exist"); Test script: --------------- (!array_key_exists($class, $this->_data)) AND throw new InvalidArgumentException("Class does not exist"); Expected result: ---------------- No syntax error Actual result: -------------- Parse error: syntax error, unexpected