Configuring SPL as SHARED

From: Date: Tue, 20 Jan 2004 16:45:07 +0000
Subject: Configuring SPL as SHARED
Groups: php.internals 
Request: Send a blank email to internals+get-7201@lists.php.net to get a copy of this message
The config.m4 file that is currently shipping (php5-200401192230) disallows configuring SPL as a shared module on non-Windows as shown immediately below. However, no such restriction is given for the Windows configure (config.w32) shown further on. Having built the shared version for Windows, it also appears to work just fine. Can someone enlighten me as to whether SPL can/should be built as a shared PHP module? Thanks, Blake Schwendiman ----- config.m4 ----- dnl $Id: config.m4,v 1.9 2004/01/19 11:07:19 chregu Exp $ dnl config.m4 for extension SPL PHP_ARG_ENABLE(spl, enable SPL suppport, [ --disable-spl Disable Standard PHP Library], yes) if test "$PHP_SPL" != "no"; then if test "$ext_shared" = "yes"; then AC_MSG_ERROR(Cannot build SPL as a shared module) fi AC_DEFINE(HAVE_SPL, 1, [Whether you want SPL (Standard PHP Library) support]) PHP_NEW_EXTENSION(spl, php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_sxe.c, $ext_shared) fi ----- config.w32 ----- // $Id: config.w32,v 1.3 2004/01/19 08:31:16 sebastian Exp $ // vim:ft=javascript ARG_ENABLE("spl", "SPL (Standard PHP Library) support", "no"); if (PHP_SPL != "no") { EXTENSION("spl", "php_spl.c spl_functions.c spl_engine.c spl_iterators.c spl_array.c spl_directory.c spl_sxe.c"); AC_DEFINE('HAVE_SPL', 1); } ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Blake Schwendiman PHP Development Books: http://www.lulu.com/intechrabooks

« previous php.internals (#7201) next »