File tree Expand file tree Collapse file tree 4 files changed +8
-2
lines changed Expand file tree Collapse file tree 4 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ PHP 4 NEWS
13
13
- Fixed bug #28456 (Problem with enclosed / in uploaded files). (Antony)
14
14
- Fixed logic bug in session_register() which allowed registering _SESSION
15
15
and/or HTTP_SESSION_VARS. (Sara)
16
+ - Fixed bug #28508 (Do not make hypot() available if not supported by libc).
17
+ (Ilia)
16
18
- Fixed bug #28386 (wordwrap() wraps lines 1 character too soon). (Ilia)
17
19
- Fixed bug #28374 (Possible unterminated loop inside
18
20
_php_pgsql_trim_message()). (Ilia)
Original file line number Diff line number Diff line change @@ -494,7 +494,9 @@ function_entry basic_functions[] = {
494
494
PHP_FE (log , NULL )
495
495
PHP_FE (log10 , NULL )
496
496
PHP_FE (sqrt , NULL )
497
+ #ifdef HAVE_HYPOT
497
498
PHP_FE (hypot , NULL )
499
+ #endif
498
500
PHP_FE (deg2rad , NULL )
499
501
PHP_FE (rad2deg , NULL )
500
502
PHP_FE (bindec , NULL )
Original file line number Diff line number Diff line change @@ -622,9 +622,9 @@ PHP_FUNCTION(sqrt)
622
622
disappear in the next version of PHP!
623
623
*/
624
624
625
+ #ifdef HAVE_HYPOT
625
626
PHP_FUNCTION (hypot )
626
627
{
627
- #ifdef HAVE_HYPOT
628
628
zval * * num1 , * * num2 ;
629
629
630
630
if (ZEND_NUM_ARGS () != 2 || zend_get_parameters_ex (2 , & num1 , & num2 ) == FAILURE ) {
@@ -634,8 +634,8 @@ PHP_FUNCTION(hypot)
634
634
convert_to_double_ex (num2 );
635
635
Z_DVAL_P (return_value ) = hypot (Z_DVAL_PP (num1 ), Z_DVAL_PP (num2 ));
636
636
Z_TYPE_P (return_value ) = IS_DOUBLE ;
637
- #endif
638
637
}
638
+ #endif
639
639
640
640
/* }}} */
641
641
Original file line number Diff line number Diff line change @@ -66,7 +66,9 @@ PHP_FUNCTION(rad2deg);
66
66
WARNING: these functions are expermental: they could change their names or
67
67
disappear in the next version of PHP!
68
68
*/
69
+ #ifdef HAVE_HYPOT
69
70
PHP_FUNCTION (hypot );
71
+ #endif
70
72
PHP_FUNCTION (expm1 );
71
73
PHP_FUNCTION (log1p );
72
74
You can’t perform that action at this time.
0 commit comments