# Building PHP5TS.DLL (only) for Win32

- Thread: https://externals.io/message/37640
- Original archive: https://news-web.php.net/php.internals/37640
- Started by Hector Santos on 2008-05-13T23:18:28+00:00
- Messages: 1
- 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

---

## #37640 — Hector Santos — 2008-05-13T23:18:28+00:00

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

Hi,

I'm having a terrible time trying to get PHP5TS.DLL rebuilt with an 
exact configuration as the current official version release PHP 5.2.6. 
  Of course, I need to put more time to figure this all out.

But all I want to do is make a slight change to PHP5TS.DLL and rebuilt 
it with 100% exact imports and exports.  The 5.2.6 official version 
date, time and size is:

      05/02/2008  06:07 PM     4,874,301 php5ts.dll

By following the PHP build web resources, wiki, the many blogs, etc, I 
can get a build but it exports are different and it requires ZLIB.DLL.

What I did to figure out what configure.js was used, was to dump 
 `phpinfo()` from a official 5.2.6 installation PHP run and it shows:

Build Date => May  2 2008 18:01:20
Configure Command => cscript /nologo configure.js 
"--enable-snapshot-build" "--with-gd=shared" 
"--with-extra-includes=C:\Program Files (x86)\Microsoft 
SDK\Include;C:\PROGRA~2\MICROS~2\VC98\ATL\INCLUDE;C:\PROGRA~2\MICROS~2\VC98\INCLUDE;
C:\PROGRA~2\MICROS~2\VC98\MFC\INCLUDE" "--with-extra-libs=C:\Program 
Files (x86)\Microsoft 
SDK\Lib;C:\PROGRA~2\MICROS~2\VC98\LIB;C:\PROGRA~2\MICROS~2\VC98\MFC\LIB"

I use these configure.js options, of course, using my includes, lib 
reflecting my VS98 setup, and I don't get the exact image.

But again, I don't get the exact build and it requires ZLIB.DLL:

      05/13/2008  04:14 PM  4,624,437 php5ts.dll

Please get me started with this.  All I need is setup that will allow me 
to duplicate a release built.  We can't continue with making changes if 
we can't make it a transparent change.  Once I can duplicate it, I can 
take it from there.

I just don't understand the entire PHP framework yet. I'm getting there, 
and spending all my time on this, but I'm getting no where.

I would greatly appreciate the skinny of everything I need, what options 
  in order to rebuild php5ts.dll.

-- 
Hector Santos
