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

[email protected] (Christopher Jones) Tue, 17 Feb 2009 09:43:14 -0800
Newsgroups php.zend-engine.cvs
Message-ID <[email protected]>

Matt Wilmas wrote:
 > As far as a test, I wasn't sure what to use, and would it just be for 64
 > bit?  The var_dump(1%4294967295) example in the report gives 0 here, because
 > of 32 bit overflow, which might not be the same everywhere...  So, I don't
 > know.

I agree with Pierre.  Tests are important to prevent BC issues.

You can use a SKIPIF to run a test only on 64bit.  See
http://qa.php.net/write-test.php

-- 
Email: [email protected]  Tel: +1 650 506 8630
Twitter:  http://twitter.com/ghrd    Free PHP Book: http://tinyurl.com/UGPOM