Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.
  • Root
  • » PHP
  • » [PHP-DEV] SPL memory allocation problem [RSS Feed]

#1 Dec. 4, 2005 09:53:20

Stanislav M.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

[PHP-DEV] SPL memory allocation problem


In spl_iterators.c around line 320 (function spl_recursive_it_rewind_ex),there's the following code:erealloc(object->iterators, sizeof(spl_sub_iterator));As we see, object->iterators is not assigned the result of realloc. As Ican see, this may lead to a problem when erealloc returns differentlocation then it was before. For me it happens when iterator is repeatedlyapplied to same object (i.e., multiple passes for same object, rewindingbetween them). So I think it needs to be fixed - I just wated to askwhoever is responsible for the code before I commit the fix if there wasany idea behind not assigning erealloc result or it's just an omission.--
Stanislav Malyshev, Zend Products Engineer
http://www.zend.com/+972-3-6139665 ext.115

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit:http://www.php.net/unsub.php

Offline

  • Root
  • » PHP
  • » [PHP-DEV] SPL memory allocation problem [RSS Feed]

Board footer

Moderator control

Enjoy the 23rd of April
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support