Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94474 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 91397 invoked from network); 11 Jul 2016 19:45:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jul 2016 19:45:02 -0000 Received: from [127.0.0.1] ([127.0.0.1:20166]) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ECSTREAM id EC/11-17655-E37F3875 for ; Mon, 11 Jul 2016 15:45:02 -0400 Authentication-Results: pb1.pair.com header.from=khaweronline@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=khaweronline@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.52 as permitted sender) X-PHP-List-Original-Sender: khaweronline@gmail.com X-Host-Fingerprint: 74.125.82.52 mail-wm0-f52.google.com Received: from [74.125.82.52] ([74.125.82.52:33571] helo=mail-wm0-f52.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4B/11-17655-216F3875 for ; Mon, 11 Jul 2016 15:40:03 -0400 Received: by mail-wm0-f52.google.com with SMTP id r190so21353460wmr.0 for ; Mon, 11 Jul 2016 12:40:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=234lK0hPFTp0FRpYkqq2aRiJDuLvrn8wLb5Se7D3TwM=; b=wLFE4q3At1F1Xhf670EviCHmtZVRMAfdVGyMhyIiM/AH7lLIr/flCiJCbcmBmILADX OX4fZOX8u33LOt8JzdtQ/4HAbVKW9UNOEEuRFtwgqcdeKgr0MyLz3ynmjzITwmHL+04/ 2yI0cd0VxVPlXTJo8TzG9BgizAxOEvn3RAIkCgUJgWeOEYuxooKqHGhBOgHObsyAi7WD kuO18b1nSC1lEXmEHCZy2NZU7296dVY2Shlwmm5RhfPdst0VwAoar3N4m4TyveHWCHXb 4pZV5AtasveUTzA4fT693MV5uGPwqLostZZHgxUXJD9Prp8gWrJVtReF7eIHLVWiRWOi Xb2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=234lK0hPFTp0FRpYkqq2aRiJDuLvrn8wLb5Se7D3TwM=; b=JNSL1jyckJRq1YxkDbMWAMGdkOXCHCmJxrE/O+EftWOx5TFUN8O8jNELK0+5Q088RN HNt5lE2Ph5LJK3DHoiLWwnsZcThkY0X4GjFZ2Dy2cVQtumG2H7snn7otWt4HG0mdEeQI olvqYd3GPKIA0VSFfL8ecD3yag4Ip/h994ifORAOqIyijGbSCasNnnrGZOpk75n9BCFd f62UBzQFztJBG+Disg3iiuiOtxPzIaV4cyValT/vcNr2PIMm0pnRZERqRhlIqW9GSEFQ yANB/9gNIqptexHxb3KXf/fHIpt9EWanl3WX9uSNwW3f73hS3uZ/To4QsYDm1vK1XhYr 3DDg== X-Gm-Message-State: ALyK8tK6ohNFg+xb72dBumZQwwXyJVpLxUu5XKfiOoBtu0AhHqDefLxrMaDCJm1OvXc6Z6dE5HjN+IrFcPf0uw== X-Received: by 10.28.22.144 with SMTP id 138mr16970623wmw.77.1468265999957; Mon, 11 Jul 2016 12:39:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.57.69 with HTTP; Mon, 11 Jul 2016 12:39:59 -0700 (PDT) Date: Tue, 12 Jul 2016 00:39:59 +0500 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=001a1146e5de5d3f0a05376151ec Subject: Assign return value of function to property or replace parse error with nice fatal error From: khaweronline@gmail.com ("Khawer .") --001a1146e5de5d3f0a05376151ec Content-Type: text/plain; charset=UTF-8 It would be better if we can assign return value of function to property. If not at least we should generate a nice error message. Currently when we try to assign return value of function to property we get the following error: Parse error: syntax error, unexpected '(', expecting ',' or ';' in index.php on line 4 We should replace this error with the following error: Fatal error: You must assign a static value to property in index.php on line 4. OR Fatal error: Dynamic values cannot be assigned to property in index.php on line 4. --001a1146e5de5d3f0a05376151ec--