-- php-4.0.6/Zend/zend_alloc.c (160) ------------------------------- if (!p) { fprintf(stderr,"FATAL: emalloc(): Unable to allocate %ld bytes\n", (long) size); #if ZEND_DEBUG && defined(HAVE_KILL) && defined(HAVE_GETPID) kill(getpid(), SIGSEGV); #else exit(1); #endif HANDLE_UNBLOCK_INTERRUPTIONS(); return (void *)p; } -------------------------------------------------------------------- If p==NULL _emalloc does not return, so checking the return value is pointless because you can do this iff it's ok. Maybe I'missing something :-) A minor problem exists with size: size_t should be unsigned and the type modifier assumes it's signed. Ciao. -- Walter Franzini, e-mail: [EMAIL PROTECTED] SysNet, Via Digione 8, 27100 Pavia - Italy -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]