Skip to content

The zend_atol function has been deprecated. What is the replacement function? #15873

Closed as not planned
@matyhtf

Description

@matyhtf

Description

The behavior of zend_atol() is not entirely consistent with the ZEND_ATOL macro. zend_atol() can parse numbers with units, such as 10K and 1M, not just convert strings to numbers.

This function is used in swoole-src, found at: https://github.com/swoole/swoole-src/blob/master/ext-src/php_swoole.cc#L352

How should we modify the code?

Best regards.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions