Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_operators.c

From: Date: Sun, 29 Jun 2003 03:03:22 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_operators.c
References: 1  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-1400@lists.php.net to get a copy of this message
On Saturday, June 28, 2003, at 09:49 PM, Sterling Hughes wrote:
if (op1->type == IS_STRING && op2->type == IS_STRING) { - zendi_smart_strcmp(result, op1, op2); + if (op1->value.str.len == op2->value.str.len) { + zendi_smart_strcmp(result, op1, op2); + } else { + ZVAL_LONG(result, 1); + } return SUCCESS; }
Can this function not be used fro string comparison where you want the value of strcmp back? (i.e. in some context other than '=='? -- George Schlossnagle -- Principal Consultant -- OmniTI Computer Consulting, Inc. -- +1.410.872.4910 x202 -- 1024D/1100A5A0 1370 F70A 9365 96C9 2F5E 56C2 B2B9 262F 1100 A5A0

« previous php.zend-engine.cvs (#1400) next »