# Is an extension dev. on 5.x usable on 5.>x

- Thread: https://externals.io/message/45921
- Original archive: https://news-web.php.net/php.internals/45921
- Started by Mark Skilbeck on 2009-10-31T22:02:51+00:00
- Messages: 5
- 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

---

## #45921 — Mark Skilbeck — 2009-10-31T22:02:51+00:00

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

That is, is an extension compiled on PHP5.1 usable for PHP5.2?

---

## #45922 — Lester Caine — 2009-11-01T08:40:19+00:00

URL: https://externals.io/message/45921#45922 · In reply to: #45921

Mark Skilbeck wrote:
> That is, is an extension compiled on PHP5.1 usable for PHP5.2?

Windows or Linux?
In Linux you can normally use an older version, provided nothing else 
has changed. In windows you normally get a complaint that the versions 
are not compatible, although some of the PECL packages have had this 
removed to allow 5.2.6 ones to be used with later 5.2.x builds.

5.3 WILL give different problems on windows with the different 
distributions provided ...

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

---

## #45923 — Pierre Joye — 2009-11-01T11:49:56+00:00

URL: https://externals.io/message/45921#45923 · In reply to: #45921

hi,


> That is, is an extension compiled on PHP5.1 usable for PHP5.2?

No, it only works between 5.1.x and another 5.1.x release, or 5.2.x
and another 5.2.x (5.2.9 and 5.2.11 for example). We change the minor
version number when a binary incompatibility exists.

Cheers,
-- 
Pierre

http://blog.thepimp.net | http://www.libgd.org

---

## #45924 — Mark Skilbeck — 2009-11-01T12:16:22+00:00

URL: https://externals.io/message/45921#45924 · In reply to: #45922

Lester Caine wrote:
> Mark Skilbeck wrote:
> > […]
> 
> Windows or Linux?
> In Linux you can normally use an older version, provided nothing else 
> has changed. In windows you normally get a complaint that the versions 
> are not compatible, although some of the PECL packages have had this 
> removed to allow 5.2.6 ones to be used with later 5.2.x builds.
> 
> 5.3 WILL give different problems on windows with the different 
> distributions provided ...
> 

Ah! Thanks for the info. So it is possible to prevent the 'not built on 
the same PHP version' problems (i.e., turn it off)?

---

## #45925 — Pierre Joye — 2009-11-01T12:20:39+00:00

URL: https://externals.io/message/45921#45925 · In reply to: #45924

hi,


> Ah! Thanks for the info. So it is possible to prevent the 'not built on the
> same PHP version' problems (i.e., turn it off)?

My reply gave you the reason of this message. It has nothing to do
with the platform you use (be windows, linux, etc.). On windows the C
runtime has to match and that's why we added an extra check but the
idea is the same, php version and runtime versions must match for the
extension and the php binary loading it.

Cheers,
-- 
Pierre

http://blog.thepimp.net | http://www.libgd.org
