php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #60831 Optimization
Submitted: 2012-01-21 14:09 UTC Modified: 2012-01-21 14:43 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: iivanov2 at yahoo dot com Assigned:
Status: Not a bug Package: *Programming Data Structures
PHP Version: 5.4.0RC6 OS: no matter
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: iivanov2 at yahoo dot com
New email:
PHP Version: OS:

 

 [2012-01-21 14:09 UTC] iivanov2 at yahoo dot com
Description:
------------
First sorry for my English, it's not perfect.

In this case
if($a==1 and $b==2)
{
echo 'hello there';
}

I think $b==2 checking is unnecessary if $a==1 it's not true.
PHP will be faster.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-01-21 14:43 UTC] dtajchreber@php.net
-Status: Open +Status: Bogus
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 22:01:28 2024 UTC