Patches
| From: | Mika Tuupola | Date: | Fri, 06 Feb 2004 10:45:21 +0000 |
| Subject: | Patches | ||
| Groups: | php.pear.qa | ||
| Request: | Send a blank email to pear-qa+get-499@lists.php.net to get a copy of this message | ||
I have a two bugfixes for packages I have recently used,
so I have had interest in them. Do you (developer) or
anyone in pear-qa have something against committing them.
XML_DTD
http://pear.php.net/bugs/bug.php?id=168
-cut-
diff DTD.php DTD.php.new
194c194
< $children = preg_split('/([^#a-zA-Z0-9.-]+)/', $ch, -1,
PREG_SPLIT_NO_EMPTY);
---
> $children = preg_split('/([^#a-zA-Z0-9_.-]+)/', $ch, -1,
PREG_SPLIT_NO_EMPTY);
205c205
< $reg = preg_replace('/([#a-zA-Z0-9.-]+)/', '(,?\\0)',
$reg);
---
> $reg = preg_replace('/([#a-zA-Z0-9_.-]+)/', '(,?\\0)',
$reg);
-cut-
XML_Tree
http://pear.php.net/bugs/bug.php?id=89
-cut-
>diff Node.php Node.php.new
272,273c272,273
< if (isset($this->attributes[strtolower($name)])) {
< return $this->attributes[strtolower($name)];
---
> if (isset($this->attributes[$name])) {
> return $this->attributes[$name];
288c288
< $this->attributes[strtolower($name)] = $value;
---
> $this->attributes[$name] = $value;
300,301c300,301
< if (isset($this->attributes[strtolower($name)])) {
< unset($this->attributes[strtolower($name)]);
---
> if (isset($this->attributes[$name])) {
> unset($this->attributes[$name]);
-cut-
--
Mika Tuupola http://www.appelsiini.net/~tuupola/