Changes between Initial Version and Version 1 of Ticket #3412
- Timestamp:
- Mar 29, 2010, 6:51:26 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #3412 – Description
initial v1 1 1 I am seeing a value of zero for width in the code when the setSize() function below is called: 2 2 {{{ 3 3 <? 4 4 dl('php_mapscript.so'); … … 9 9 $img->saveImage(""); 10 10 ?> 11 }}} 11 12 12 13 It turns out this is because width and height are declared as integers in zim_mapObj_setSize(), but the "l" specifier in zend_parse_parameters expects a pointer to a long. On 32bit systems these are generally the same, but on 64bit systems (with the exception of Win64) a long and an int are different sizes resulting in various sorts of problems. The fix is to declare the variables as long instead of int. Skimming the rest of the php bindings this problem appears to be endemic.