#29236 [NEW]: memory error when wsdl-cache is enabled
| From: | vaughan at ucla dot edu | Date: | Sun, 18 Jul 2004 02:02:01 +0000 |
| Subject: | #29236 [NEW]: memory error when wsdl-cache is enabled | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-62556@lists.php.net to get a copy of this message | ||
From: vaughan at ucla dot edu
Operating system: debian linux 2.4.26
PHP version: 5CVS-2004-07-18 (dev)
PHP Bug Type: SOAP related
Bug description: memory error when wsdl-cache is enabled
Description:
------------
perhaps related to bug # 27994 and 29109?
all wsdl urls seem to work on first access. For some,
the second access causes a memory error: browser returns
nothing, but the error log contains:
FATAL: emalloc(): Unable to allocate -2080374783 bytes
but other wsdl urls work fine all the time.
for example, http://services.xmethods.net/soap/urn:
xmethods-delayed-quotes.wsdl works fine, but this one
(which is the one I'm interested in!) causes the error:
http://isisdev1.tig.ucla.edu/iws/v4.asmx?WSDL
The only difference I can see is the size of the wsdl
cache file:
ls -la /tmp/wsdl*
-rw-r--r-- 1 www-data www-data 655 Jul 17 18:45
/tmp/wsdl-1d3ed057f34bf52d1ef18dd2d2cf17b0
-rw-r--r-- 1 www-data www-data 11616 Jul 17 18:45
/tmp/wsdl-7a407628dfa2fa2c7282f12e23774f98
If I remove the big one, then the code below works
again, but only once.
Reproduce code:
---------------
<?
$endpoint="http://isisdev1.tig.ucla.edu/iws/v4.asmx?WSDL";
$client = new SoapClient($endpoint);
echo "<pre>";
var_dump($client->__getFunctions());
echo "</pre>";
?>
Expected result:
----------------
On first run, when there's no wsdl cache file, I get the
expected list of functions.
Actual result:
--------------
no browser output
emalloc error recorded in log file.
--
Edit bug report at http://bugs.php.net/?id=29236&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29236&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29236&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29236&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29236&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29236&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29236&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29236&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29236&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29236&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29236&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29236&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29236&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29236&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29236&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29236&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29236&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29236&r=float