From:             messaged at messaged dot lv
Operating system: Ubuntu/MacOsX (x64)
PHP version:      5.3.23
Package:          Scripting Engine problem
Bug Type:         Bug
Bug description:Comment raises syntax error

Description:
------------
Tested following code on Ubuntu with php 5.3.22, 5.3.23 and Mac OS PHP
5.3.22. 
Same behaviour everywhere. 

MacOS php-config
https://gist.github.com/message/5346478

5.3.19 affected
http://codepad.viper-7.com/BJO4cL

5.4.9
http://codepad.viper-7.com/Hyju5z

P.S If you going to remove line between comments then everything will work
fine.

Test script:
---------------
<?php

class Dummy
{

    protected $key = null;

    public function test()
    {
        $this->key = 'value';

        //Lose by exactly 1 - Half the stake is refunded.The other half is
classed as a loser.
         
        //Lose by 2 or more - All bets are losers.
    }

}

Expected result:
----------------
Nothing should happen

Actual result:
--------------
Parse error: syntax error, unexpected '}' in 
/Users/message/Dropbox/Work/syntax_error.php on line 15


-- 
Edit bug report at https://bugs.php.net/bug.php?id=64615&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=64615&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=64615&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=64615&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=64615&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=64615&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=64615&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=64615&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=64615&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=64615&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=64615&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=64615&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=64615&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=64615&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64615&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=64615&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=64615&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=64615&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=64615&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=64615&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=64615&r=mysqlcfg

Reply via email to