Update framework/web/services/CWsdlGenerator.php

Fixes the following error:

Warning: DOMDocument::loadXML() [domdocument.loadxml]: xmlns:tns: 'some\namespaced\ClassName' is not a valid URI in Entity, line: 4 in \yii\framework\web\services\CWsdlGenerator.php on line 221

No unit test today, just a DumbErrorTest class:

<?php
class DumbErrorTest
{

    public $serviceName;
    public $namespace;
    
    public function __construct()
    {

        $this->namespace = 'some\namespaced\ClassName';
        $this->serviceName = $this->namespace;
    
        $encoding = 'UTF-8';
        $serviceUrl = 'dummy';
        $this->buildDOM($serviceUrl,$encoding);
    }

    private function buildDOM($serviceUrl,$encoding)
    {
        $xml="<?xml version=\"1.0\" encoding=\"$encoding\"?>
<definitions name=\"{$this->serviceName}\" targetNamespace=\"{$this->namespace}\"
     xmlns=\"http://schemas.xmlsoap.org/wsdl/\"
     xmlns:tns=\"{$this->namespace}\"
     xmlns:soap=\"http://schemas.xmlsoap.org/wsdl/soap/\"
     xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\"
     xmlns:wsdl=\"http://schemas.xmlsoap.org/wsdl/\"
     xmlns:soap-enc=\"http://schemas.xmlsoap.org/soap/encoding/\"></definitions>";

        $dom=new DOMDocument();
        $dom->loadXml($xml);
        
        //more code...
    }
}

new DumbErrorTest();
Small fix for CHttpRequest to send valid content-length and output, from issue #1279 and #1249
Some bug fixes
Correct tab indent fix
Correct fix with #1249
Updated CHANGELOG
Merge branch 'master' of git://github.com/yiisoft/yii into 1279-CHttpRequest-another-fix
Updated CHANGELOG
Fix #1574: MessageCommand::extractMessages fails to ignore invalid category definitions
Fix #109: change round() to number_format() and fix with optional digit in decimal digit part.
Fix #109: change round() to number_format() and fix with optional digit in decimal digit part.
Fix #109: change round() to number_format() and fix with optional digit in decimal digit part.
Store parsing of Accept-Language header for public access and correct preferred language order

By convention, when multiple languages are given with the same preference value in the Accept-Language header then the order of preference should correspond to the order in which they are given.
Currently CHttpRequest does not define any preference according to order when sorting languages after having parsed them.
This update creates a new variable to allow access to the sorted list of preferred languages (useful for content negotiation), and adds a very small decremental value to each language when parsing, so that earlier languages are given priority over later ones in the sort rather than relying on PHP's arsort to arbitrarily sort equal values.
Test with an Accept-Language header of "ru, en, en-GB, zh-Hans, ja, zh-Hant, fr, de, nl, it, es" (ru should be the preferred language rather than de).
Fixes #140: validation CJuiButton with type buttonset (adminnu)
Merge remote-tracking branch 'upstream/master' into fix109
Update framework/web/CHttpRequest.php

Modified sorting logic to use more expensive, but accurate taking into account of each language's position in the header.
For a language that is present more than once, the highest q value will be used (or the highest position if q values are equal).
getPreferredLanguages() will now always return an array (empty if no / incorrect header is set).
Update framework/web/CHttpRequest.php

Updated the name of the private property used to store the list of accepted languages (no further need for a store for the preferred language since we just take the first value from this list).
Bug #1673: CHttpRequest: modified the sort criteria applied to the Accept-Language header to give preference to order of appearance (Rupert-RR)
Replaced the closure used for the usort with a create_function call

Yii should work under PHP5.1, and closures were only added by PHP5.3, so a create_function call is used instead to preserve compatibility.
refactoring CJuiButton