php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #16666 Ask for re-naming DOM XML extension functions according to W3C DOM
Submitted: 2002-04-17 14:01 UTC Modified: 2002-04-18 05:28 UTC
From: stepan dot rybar at ceu dot cz Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.2.0 OS: MS Win2000 (not important)
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: stepan dot rybar at ceu dot cz
New email:
PHP Version: OS:

 

 [2002-04-17 14:01 UTC] stepan dot rybar at ceu dot cz
Hello! 
I like to see DOM XML extension in PHP. I often use it in browser's (client-side) programming using JavaScript, so I am surprised, why the functions of this extension is named as today. It is a confusing for me and think not only form me. According to W3C DOM standards functions looks like "getAttribute" and not "get_attribute" etc. I hope, that You know what I mean. 

Thank You. 

Steve

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-17 16:07 UTC] mfischer@php.net
Unlikely to happen.

This would break 1000? of scripts.

I hope you know what I mean.

OTOH, IMHO that's just syntentic sugar. Many people do not like to read in StUYcApS and find this_style_easier_to_read.

And, it's the PHP naming convention to use_this_style.

I bet you're out of luck.
 [2002-04-17 16:17 UTC] robert at webmotion dot com
justToBeArgumentativeSinceThisIsMyPreferredStyle rather than the fy_i_v_lwwds_t style ;)

addSlashes()
htmlEntities()
quoteMeta()
stripSlashes()
ucWords()
wordWrap()
imageCreate()
imageFill()
rawUrlEncode()

And while I know these are all probably encoded as lowercase and the fact they can be uppercased is merely that functions are insensitive, I do believe that it makes the point :)

Cheers,
Rob.
 [2002-04-18 01:16 UTC] steinm@php.net
All other functions in php use the '_' notation.
I had to decide between php und w3c and decided for
php.
 [2002-04-18 05:28 UTC] hholzgra@php.net
CanYouReallyReadThis as_fast_as_you_read_this?

anyway, this_is_the_way_to_go_with_PHP,
and the old ones like imagecreate will be 
converted to image_create so that they 
comply when we switch to version 5.0 or so
(while maintaining BC-aliases for a while)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Oct 06 21:00:01 2025 UTC