| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2007-11-21 09:13 UTC] simonslaws at googlemail dot com
  [2007-12-04 09:50 UTC] cem@php.net
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 08:00:01 2025 UTC | 
Description: ------------ I have an XSD file with properties containing hyphens (portfolio-id). I can't get it to accept any changes to the properties. In part this is because php doesn't accept hypens in variable names, but other methods like $messagebody['portfolio-id'] should work. Reproduce code: --------------- $xmldas = SDO_DAS_XML::create('xsd/pre_qual_wso.xsd'); $messagebody = $xmldas->createDataObject('','MessagebodyType'); // This gives a syntax error $messagebody->portfolio-id = 'BST'; // These alternatives do not work $messagebody['portfolio-id'] = 'BST'; $messagebody[0] = 'BST'; $messagebody->{'portfolio-id'} = 'BST'; Expected result: ---------------- I expected that the alternative methods would work. Actual result: -------------- Trying the "alternative" methods returned this error: Problem creating an XML document: DataObjectImpl::setSDOValue -