]> granicus.if.org Git - php/commit
refix the negative zend_long to size_t casts
authorAnatol Belski <ab@php.net>
Mon, 29 Jun 2015 18:33:34 +0000 (20:33 +0200)
committerAnatol Belski <ab@php.net>
Mon, 29 Jun 2015 18:41:39 +0000 (20:41 +0200)
commit845b191f16af190fa48ee229c26fd11b510257b8
tree0c1dbb3970d0e4133664396a6e6a88bc0c7c51fd
parenta3783224099fd20e5b31617856a2bf53a000ca25
refix the negative zend_long to size_t casts

There is no good way to fix this for 32-bit without enormously
overcomplicating the logic. Therefore switching back to the previous
code and adding the casts to ensure there are no sudden casts of
negative to size_t.
ext/standard/string.c