Bug #77212 [NEW]: Memory allocation failed : growing buffer on aws server
| From: | sujaljhaonly4u at gmail dot com | Date: | Wed, 28 Nov 2018 13:09:21 +0000 |
| Subject: | Bug #77212 [NEW]: Memory allocation failed : growing buffer on aws server | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-218176@lists.php.net to get a copy of this message | ||
From: sujaljhaonly4u at gmail dot com
Operating system: linux
PHP version: 5.6.38
Package: SimpleXML related
Bug Type: Bug
Bug description:Memory allocation failed : growing buffer on aws server
Description:
------------
Hi, i am receiving this message when i am trying to parse the 1.7gb xml
file for inserting on aws server.
Memory allocation failed : growing buffer..
please help me out!
Thank You,
Sujal Jha
Test script:
---------------
<?php
include('../product/upload_function_backup.php');
include('../../config/database.php');
include('../../objects/hooks/function.php');
$dir = '../product_feeds/tata cliq';
$file= "tata_cliq_fashion.xml";
$data = file_get_contents($dir.'/'.$file);
$xml=stripslashes($data);
libxml_use_internal_errors(true);
$arr = simplexml_load_string((string)$xml);
foreach( libxml_get_errors() as $error ) {
print_r($error);
}
print_r($arr);
?>
Expected result:
----------------
SimpleXMLElement Object
(
[Product] => Array
(
[0] => SimpleXMLElement Object
(
[ProductID] => 1065005367
[ProductSKU] => A08160
[ProductName] => WOMEN'S TRAINING STELLASPORT WOVEN
SHORTS
[ProductDescription] => Stella McCartney inspired
adidas SC Woven shorts for women. It comes with an Elasticated waist
with two side pockets, one back zipped pocket and all-over 'Stellasport'
branding.
[ProductPrice] => 1000.00
[ProductPriceCurrency] => INR
[WasPrice] => 2499.00
[DiscountedPrice] => 0.00
[ProductURL] =>
http://clk.omgt5.com/?AID=1327881&PID=17736&Type=12&r=https://shop.adidas.co.in/%23!product/A08160_scwovenshort
[PID] => 17736
[MID] => 929898
[ProductImageMediumURL] =>
https://content.adidas.co.in/static/Product-A08160/Women_Training_Shorts_A08160_1.jpg
[StockAvailability] => In stock
[Brand] => SPORT PERFORMANCE
[custom1] => Gender - Female
[custom2] => AgeGroup - Adult
[CategoryName] => SHORTS (1/4)
[CategoryPathAsString] => Root|TEXTILES|SHORTS
(1/4)|
)
)
--
Edit bug report at https://bugs.php.net/bug.php?id=77212&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77212&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77212&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77212&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=77212&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=77212&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=77212&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=77212&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=77212&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=77212&r=support
Expected behavior: https://bugs.php.net/fix.php?id=77212&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=77212&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=77212&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=77212&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77212&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=77212&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=77212&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=77212&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=77212&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=77212&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=77212&r=mysqlcfg