convert_to_writable_*

From: Date: Mon, 12 Jan 2004 22:16:02 +0000
Subject: convert_to_writable_*
Groups: php.internals 
Request: Send a blank email to internals+get-7013@lists.php.net to get a copy of this message
Any idea who added the following macros? zend_operators.h:#define convert_to_writable_ex_master(ppzv, lower_type,
upper_type)    \
zend_operators.h:#define convert_to_writable_boolean_ex(ppzv)   convert_to_writable_ex_master(ppzv, boolean, BOOL)
zend_operators.h:#define convert_to_writable_long_ex(ppzv) convert_to_writable_ex_master(ppzv, long, LONG)
zend_operators.h:#define convert_to_writable_double_ex(ppzv) convert_to_writable_ex_master(ppzv, double, DOUBLE)
zend_operators.h:#define convert_to_writable_string_ex(ppzv) convert_to_writable_ex_master(ppzv, string, STRING)
zend_operators.h:#define convert_to_writable_array_ex(ppzv) convert_to_writable_ex_master(ppzv, array, ARRAY)
zend_operators.h:#define convert_to_writable_object_ex(ppzv) convert_to_writable_ex_master(ppzv, object, OBJECT)
zend_operators.h:#define convert_to_writable_null_ex(ppzv) convert_to_writable_ex_master(ppzv, null, NULL)
They only seem to be used in imap/php_imap.c and they don't make very much sense to me. I'm not sure whoever wrote them and used it in php/imap.c knew what he was doing. Unless I hear something I will nuke them tomorrow and will fix the relevant line in php_imap.c to the best of my knowledge. /home/andi/php5/ext> grep convert_to_writable */*.c
imap/php_imap.c:        convert_to_writable_string_ex(arg);             /* Is this string really modified? */
Andi

« previous php.internals (#7013) next »