php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48312 Posting Notes SPAM filtering
Submitted: 2009-05-17 17:28 UTC Modified: 2009-05-22 07:49 UTC
From: scott at thebrain dot ca Assigned:
Status: Wont fix Package: Website problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
48 - 34 = ?
Subscribe to this entry?

 
 [2009-05-17 17:28 UTC] scott at thebrain dot ca
Description:
------------
Also see bug #45055 posted and dismissed as bogus.

Attempting to post an example of creating xml namespaces fails, identified as spam.

That earlier post complains no specific reason is given.
That earlier post suggests it may be caused by too many links.

Perhaps this is why there are no examples posted.

The note I tried to post follows:

Reproduce code:
---------------
---
From manual page: domdocument.createelementns
---

A namespace prefix example.

$doc = new DOMDocument('1.0', 'utf-8');
$root = $doc->createElementNS('http://www.w3.org/2005/Atom','element');
$doc->appendChild($root);
$root->setAttributeNS(
 'http://www.w3.org/2000/xmlns/'
 ,'xmlns:g'
 ,'http://base.google.com/ns/1.0');
$item = $doc->createElementNS(
 'http://base.google.com/ns/1.0'
 ,'g:item_type'
 ,'house);
$root->appendChild($item);
echo $doc->saveXML();
echo "\n",$item->namespaceURI;
echo "\n",$item->prefix;
echo "\n",$item->localName;

produces:

(I cannot paste the output or the automated spam detection thinks this note is spam - too many links?).


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-05-22 07:49 UTC] bjori@php.net
We simply cannot remove that restriction due to spammers.
As your example was however good I have incorporated it into the docs (http://news.php.net/php.doc.cvs/4052).
It should show up in the docs later today.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 01:01:28 2024 UTC