Skip to content

Commit

Permalink
* I thought zend_uintptr_t is a pointer type of zend_uint, but it isn't
Browse files Browse the repository at this point in the history
  actually. This should fix the 64bit problem. Thanks for those who
  reported this.
  • Loading branch information
moriyoshi committed Nov 19, 2008
1 parent 1fdbdb9 commit 8c3c289
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions boost/php/detail/native_fun_proxy.hpp
Expand Up @@ -83,7 +83,7 @@ class native_fun_proxy: public native_fun_proxy_base {
typename Tsig_::object_type* obj = oretr_( \
INTERNAL_FUNCTION_PARAM_PASSTHRU); \
::std::size_t arity = Tsig_::arity_value::value; \
::zend_uint num_params = *((zend_uint*)EG(argument_stack).top_element - 2); \
::zend_uint num_params = *((zend_uintptr_t*)EG(argument_stack).top_element - 2); \
if (num_params < arity) { \
zend_error(E_WARNING, "too few arguments (expected %d, got %d)", arity, num_params); \
return; \
Expand Down Expand Up @@ -117,7 +117,7 @@ class native_fun_proxy: public native_fun_proxy_base {
typename Tsig_::object_type* obj = oretr_( \
INTERNAL_FUNCTION_PARAM_PASSTHRU); \
::std::size_t arity = Tsig_::arity_value::value; \
::zend_uint num_params = *((zend_uint*)EG(argument_stack)->top - 1); \
::zend_uint num_params = *((zend_uintptr*)EG(argument_stack)->top_element - 2); \
if (num_params < arity) { \
zend_error(E_WARNING, "too few arguments (expected %d, got %d)", arity, num_params); \
return; \
Expand Down

0 comments on commit 8c3c289

Please sign in to comment.