Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 2000051

Re: [PHP3] configure options From: Richard Lynch (richard <email protected>)
Date: 05/15/00

In article <00051317511400.22479 <email protected>>, martin <email protected>
("Martin A. Marques") wrote:

> --enable-dmalloc I would guess that this is Dynamic Memory Allocation,
> no? Which would be the benefits?

The PHP FAQ links to http://www.dmalloc.com/ which states:

"The debug memory allocation or dmalloc library has been designed as a
drop in replacement for the system's malloc, realloc, calloc, free and
other memory management routines while providing powerful debugging
facilities configurable at runtime. These facilities include such things
as memory-leak tracking, fence-post write detection, file/line number
reporting, and general logging of statistics."
 
> Which are the benefits of using --enable-sysvsem and --enable-sysvshm?

These two allow the usage of "shared memory": One can then put some data
into a chunk of RAM associated with a key, and then other processes
(including other PHP/httpd processes) can access this memory using the
same key.

It's not widely used, since the average PHP scripter will have a hard time
keeping correct track of what's where and cleaning up after themselves
with this technology. It also is really only useful for smallish chunks
of data.

It is up to you to guarantee uniqueness of "keys" for lookups across *ALL*
processes using shared memory on your computer, as well as cleaning up
data you no longer need.

While it's really cool technology, it's not for the beginner.

-- 
Richard Lynch                | If this was worth $$$ to you, buy a CD
US Customer Support Director | from one of the artists listed here:
Zend Technologies USA        | http://www.L-I-E.com/artists.htm
http://www.zend.com          | (this has nothing to do with Zend, duh!)

-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>