Bug #16293: string returned from functions mismatch with variable
| From: | nickv at shift2solutions dot com | Date: | Tue, 26 Mar 2002 20:59:10 +0000 |
| Subject: | Bug #16293: string returned from functions mismatch with variable | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-3422@lists.php.net to get a copy of this message | ||
From: nickv@shift2solutions.com
Operating system: Slackware Linux 2.4.17
PHP version: 4.1.1
PHP Bug Type: Strings related
Bug description: string returned from functions mismatch with variable
Writing a script that POSTed XML query to a java servlet, the servlet would
crash, saying that the XML document didn't follow the DTD... the call
went something like this:
echo htmlspecialchars(td_msg_query($blah->MsgXML()));
This would always give an error.
However, whenever we did this:
$test = $blah->MsgXML();
echo htmlspecialchars(td_msg_query($test));
It would work just fine.
$blah is an XML string builder class and td_msg_query does HTTP POSTs via
php sockets. a string is returned from MsgXML containing an entire XML
document. td_msg_query returns the response from the server after the
POST.
System Linux major 2.4.17 #60 SMP Thu Jan 24 17:41:40 CST 2002 i686
unknown
Build Date Mar 6 2002
Configure Command './configure' '--prefix=/usr/local/php'
'--with-dom=/usr/local/libxml' '--with-apache=../apache_1.3.20'
'--with-openssl=/usr/local/ssl' '--enable-dbase' '--enable-ftp'
'--with-zlib-dir' '--with-mysql=/usr/local/mysql'
Server API Apache
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/php/lib/php.ini
ZEND_DEBUG disabled
Thread Safety disabled
Zend Optimizer 1.2.0
--
Edit bug report at http://bugs.php.net/?id=16293&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16293&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16293&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16293&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16293&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16293&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16293&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16293&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16293&r=submittedtwice