#41172 [Fbk->Csd]: SimpleXML empty attributes

2007-04-24 Thread fedelman at gmail dot com
 ID:   41172
 User updated by:  fedelman at gmail dot com
 Reported By:  fedelman at gmail dot com
-Status:   Feedback
+Status:   Closed
 Bug Type: DOM XML related
 Operating System: *
 PHP Version:  5.2.1
 New Comment:

There is no bug. It's my mistake. Cannot dump full internal object
SimpleXMLElement.


Previous Comments:


[2007-04-23 17:42:26] [EMAIL PROTECTED]

Try: var_dump($oXML[0]);



[2007-04-23 15:41:14] fedelman at gmail dot com

Description:

When I've got a node with one attribute and text, the SimpleXML does
not return the attribute, it only return the text.

Please, see the example.

I think may be it's this is a bug.

Reproduce code:
---
$strXml = "

This is the text
";

$oXML=simplexml_load_string($strXml);
echo "";
var_dump($oXML);
echo "";


Expected result:

object(SimpleXMLElement)#1 (2) {
["@attributes"]=>
array(1) {
  ["myattr1"]=>
  string(17) "This is the value"
}
string(16) "This is the text"
}



Actual result:
--
object(SimpleXMLElement)#1 (1) {
  ["data"]=>
  string(16) "This is the text"
}





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


#41172 [NEW]: SimpleXML empty attributes

2007-04-23 Thread fedelman at gmail dot com
From: fedelman at gmail dot com
Operating system: Gentoo Linux
PHP version:  5.2.1
PHP Bug Type: DOM XML related
Bug description:  SimpleXML empty attributes

Description:

When I've got a node with one attribute and text, the SimpleXML does not
return the attribute, it only return the text.

Please, see the example.

I think may be it's this is a bug.

Reproduce code:
---
$strXml = "

This is the text
";

$oXML=simplexml_load_string($strXml);
echo "";
var_dump($oXML);
echo "";


Expected result:

object(SimpleXMLElement)#1 (2) {
["@attributes"]=>
array(1) {
  ["myattr1"]=>
  string(17) "This is the value"
}
string(16) "This is the text"
}



Actual result:
--
object(SimpleXMLElement)#1 (1) {
  ["data"]=>
  string(16) "This is the text"
}

-- 
Edit bug report at http://bugs.php.net/?id=41172&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=41172&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=41172&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=41172&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41172&r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=41172&r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=41172&r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=41172&r=needscript
Try newer version:http://bugs.php.net/fix.php?id=41172&r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=41172&r=support
Expected behavior:http://bugs.php.net/fix.php?id=41172&r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=41172&r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=41172&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41172&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=41172&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41172&r=dst
IIS Stability:http://bugs.php.net/fix.php?id=41172&r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=41172&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=41172&r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=41172&r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=41172&r=mysqlcfg


Bug #15607: Apache Crash

2002-02-18 Thread fedelman

From: [EMAIL PROTECTED]
Operating system: Solaris 5.7
PHP version:  4.1.1
PHP Bug Type: *Spelling functions
Bug description:  Apache Crash

I'm Sys Admin of El Sitio (www.elsitio.com). I developed de Web Mail of the
Site (freemail.elsitio.com).

The Web Mail frontend run on Sun Netra t1 with Solaris 7 (patched 7
recommended). I use gnu gcc and ld (/usr/ccs/bin/ld).

I compile pspell and aspell with CC=gcc and CXX=g++.

My php include oci8 (Oracle 8.1.6), imap (imap-2001a), pspell
(pspell-.12.2) and aspell (aspell-.33.7).

PHP 4.0.5 works, but imap_mime_header_decode isnĀ“t work, httpd crash.
PHP 4.0.6 works fine.

PHP is 4.1.0 and 4.1.1 segmentation fault when httpd start.
I was testing on Apache 1.3.19 and Apache 1.3.23.

When I compile, I don't get any error.

PHP is buggy buggy buggy :)

thanks and good luck!
-- 
Edit bug report at http://bugs.php.net/?id=15607&edit=1
-- 
Fixed in CVS:http://bugs.php.net/fix.php?id=15607&r=fixedcvs
Fixed in release:http://bugs.php.net/fix.php?id=15607&r=alreadyfixed
Need backtrace:  http://bugs.php.net/fix.php?id=15607&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=15607&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=15607&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=15607&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=15607&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=15607&r=submittedtwice