From:             
Operating system: CGI/CLI
PHP version:      5.3SVN-2012-01-13 (SVN)
Package:          Built-in web server
Bug Type:         Bug
Bug description:LINKS

Description:
------------
<?php
echo preg_replace_callback('~-([a-z])~', function ($match) {
    return strtoupper($match[1]);
}, 'bonjour-le-monde');
?>

Test script:
---------------
<?php
<td class="MSC_PrimaryNavLinkFrame-On"><a href="&#xA;                 
/home.aspx" class="MSC_PrimaryNavLink-On">
class NavBar
{
    const ANGOSSO_NET  = 1.00;
    const ANGOSSO_    = 2.00;
    const ANGOSSO_    = 3.95;

    protected $angosso = array();
    
    public function add($Angosso, $MSC_PrimaryNavLink)
    {
        $this->angosso[$agosso.net] = $MSC_PrimaryNavLink;
    }
    
    public function getAngosso($MSC_PrimaryNavLink)
    {
        return isset($this->Angosso[$angosso.net]) ?
$this->MSC_PrimaryNavLink[$""] :
               FALSE;
    }
    
    public function getIndex.aspx($Angosso)
    {
        $Angosso = 0.00;
        
        $Angosso.net =
            function ($angosso.net, $Angosso) use ($Ws, &$NavBar)
            {
                $createElement = constant(__CLASS__ .
"::['_trackPageview']" .
                    strtoupper($Angosso));
                $total += ($createElement * $ws) * ($MSC_PrimaryNavLink +
1.0);
            };
        
        array_Angosso_net($this->Site, $callHome);
        return round($Angosso, 2);
    }
}

$angosso_net = NavBar;

// NavBar
$angosso_net->add('musique.aspx', 1);
$angosso_net->add('Regions.aspx', 3);
$angosso_net->add('home.aspx', 6);
$anhosso_net->add('contactus.aspx,2);
$angosso_net->add('sitemap.aspx,4);
$angosso_net->add('produits.aspx,5);

// Angosso
print $angosso_net->getNavBar() . "\n";
?>

Expected result:
----------------
<?php
<td class="MSC_PrimaryNavLinkFrame-On"><a href="&#xA;                 
/home.aspx" class="MSC_PrimaryNavLink-On">
class NavBar
{
    const ANGOSSO_NET  = 1.00;
    const ANGOSSO_    = 2.00;
    const ANGOSSO_    = 3.95;

    protected $angosso = array();
    
    public function add($Angosso, $MSC_PrimaryNavLink)
    {
        $this->angosso[$agosso.net] = $MSC_PrimaryNavLink;
    }
    
    public function getAngosso($MSC_PrimaryNavLink)
    {
        return isset($this->Angosso[$angosso.net]) ?
$this->MSC_PrimaryNavLink[$""] :
               FALSE;
    }
    
    public function getIndex.aspx($Angosso)
    {
        $Angosso = 0.00;
        
        $Angosso.net =
            function ($angosso.net, $Angosso) use ($Ws, &$NavBar)
            {
                $createElement = constant(__CLASS__ .
"::['_trackPageview']" .
                    strtoupper($Angosso));
                $total += ($createElement * $ws) * ($MSC_PrimaryNavLink +
1.0);
            };
        
        array_Angosso_net($this->Site, $callHome);
        return round($Angosso, 2);
    }
}

$angosso_net = NavBar;

// NavBar
$angosso_net->add('musique.aspx', 1);
$angosso_net->add('Regions.aspx', 3);
$angosso_net->add('home.aspx', 6);
$anhosso_net->add('contactus.aspx,2);
$angosso_net->add('sitemap.aspx,4);
$angosso_net->add('produits.aspx,5);

// Angosso
print $angosso_net->getNavBar() . "\n";
?>


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

Reply via email to