# Dead code

- Thread: https://externals.io/message/45343
- Original archive: https://news-web.php.net/php.internals/45343
- Started by Patrick ALLAERT on 2009-08-24T06:24:04+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #45343 — Patrick ALLAERT — 2009-08-24T06:24:04+00:00

URL: https://externals.io/message/45343#45343

Hi list,

Apparently, function _php_math_basetolong at
http://lxr.php.net/source/php-src/ext/standard/math.c#802
isn't used anymore since Mon Sep 3 16:26:31 2001 UTC.

It was previously used by bindec, hexdec, octdec and base_convert
functions but has been replaced by _php_math_basetozval().

None of the PECL extension are using it either (at least in
http://svn.php.net/repository/pecl/*/trunk/).

Any objection I remove it?

-- 
Patrick
---
http://code.google.com/p/peclapm/ - Alternative PHP Monitor

---

## #45407 — johannes@schlueters.de — 2009-08-25T21:51:34+00:00

URL: https://externals.io/message/45343#45407 · In reply to: #45343

Hi,

even if no known extension uses it I won't remove it in 5.3 as it is a
break of ABI compatibility.

For 6 I assume one might remove it, especially as it doesn't know about
IS_UNICODE.


johannes


> Hi list,
> 
> Apparently, function _php_math_basetolong at
> http://lxr.php.net/source/php-src/ext/standard/math.c#802
> isn't used anymore since Mon Sep 3 16:26:31 2001 UTC.
> 
> It was previously used by bindec, hexdec, octdec and base_convert
> functions but has been replaced by _php_math_basetozval().
> 
> None of the PECL extension are using it either (at least in
> http://svn.php.net/repository/pecl/*/trunk/).
> 
> Any objection I remove it?
> 
> -- 
> Patrick
> ---
> http://code.google.com/p/peclapm/ - Alternative PHP Monitor
