ID:               23326
 Updated by:       [EMAIL PROTECTED]
 Reported By:      markus dot pfefferle at web dot de
-Status:           Open
+Status:           Closed
-Bug Type:         Documentation problem
+Bug Type:         DOM XML related
 Operating System: Windows 2000
 PHP Version:      4CVS-2003-04-24 (stable)
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2003-08-22 13:18:09] p0wer at bojko dot krakow dot pl

Does not work for 4.3.3RC3 on Linux (Debian Sid) either.

------------------------------------------------------------------------

[2003-04-25 04:17:25] markus dot pfefferle at web dot de

Forgot the entry that I'm refering to:

http://www.php.net/manual/en/function.domdocument-create-attribute.php

------------------------------------------------------------------------

[2003-04-25 04:16:26] markus dot pfefferle at web dot de

How my daddy used to day:

"if it ain't implemented, don't document it!"

------------------------------------------------------------------------

[2003-04-25 03:59:02] [EMAIL PROTECTED]

isn't implemented

you have to use $element->set_attribute_node()

which only is available in CVS HEAD. You could try the php_domxml.dll
from the latest cvs-snapshot

------------------------------------------------------------------------

[2003-04-24 08:18:16] markus dot pfefferle at web dot de

This works:

  $document = domxml_new_doc('1.0');
  $test = $document->append_child($document->create_element('test'));
  $test->set_attribute('key', 'value');
  echo htmlspecialchars($document->dump_mem(1));

This does not:

  $document = domxml_new_doc('1.0');
  $test = $document->append_child($document->create_element('test'));
  $test->append_child($document->create_attribute('key', 'value'));
  echo htmlspecialchars($document->dump_mem(1));

Also doesn't work on 4.3.1


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=23326&edit=1

Reply via email to