#41096 [NEW]: Warning: SimpleXMLElement::children() expects at most 1 parameter, 2 given

From: Date: Mon, 16 Apr 2007 03:54:56 +0000
Subject: #41096 [NEW]: Warning: SimpleXMLElement::children() expects at most 1 parameter, 2 given
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-111521@lists.php.net to get a copy of this message
From: mistknight at gmail dot com Operating system: kubuntu 6.10 edgy PHP version: 5.2.1 PHP Bug Type: SimpleXML related Bug description: Warning: SimpleXMLElement::children() expects at most 1 parameter, 2 given Description: ------------ I'm using PHP 5.2.0 and I'm getting this warning: Warning: SimpleXMLElement::children() expects at most 1 parameter, 2 given on this line of code: $content = (array)$news->children('content',TRUE); The problem seems like it's transient sometimes appearing and sometimes not :-( I downloaded PHP 5.2.1 and it's not happening but I can't really be sure weather it's solved or not. Especially since i can't find any mention of it in the bug tracking system! I can always suppress the warning and everything would work fine. But it just doesn't seem right to me. Hope someone can shed some light on this. -- Edit bug report at http://bugs.php.net/?id=41096&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41096&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41096&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41096&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41096&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41096&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41096&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41096&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41096&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41096&r=support Expected behavior: http://bugs.php.net/fix.php?id=41096&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41096&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41096&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41096&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41096&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41096&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41096&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41096&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41096&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41096&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41096&r=mysqlcfg

« previous php.bugs (#111521) next »