Solved

How do I compile PHP 5.3.0 without the ereg module?

Posted on 2009-07-12
1
952 Views
Last Modified: 2012-06-22
Hi,

When I run $ php -m after compiling PHP 5.3.0 I noticed some new modules had been installed by default, some of which can't be removed (SPL & Reflection). I also noticed the ereg module in the list, but I can't figure out how to remove it. I am especially confused because PHP 5.3.0 has deprecated the ereg functions.

$ php -m:
[PHP Modules]
Core
date
ereg
pcre
Reflection
SPL
standard
zlib

$ php -r 'phpinfo();' | grep ereg:
Configure Command =>  './configure'  '--with-zlib' '--with-zlib-dir=/usr' '--disable-cgi' '--disable-path-info-check' '--without-iconv' '--disable-json' '--disable-mbregex' '--disable-mbregex-backtrack' '--disable-pdo' '--disable-posix' '--disable-simplexml' '--without-sqlite' '--disable-tokenizer' '--disable-xmlreader' '--disable-xmlwriter' '--without-pear' '--disable-libxml' '--disable-dom' '--disable-filter' '--disable-session' '--disable-xml' '--disable-hash' '--disable-ctype' '--disable-fileinfo' '--disable-phar' '--without-sqlite3' '--disable-posix' '--without-posix' '--disable-regex' '--without-regex' '--disable-ereg' '--without-ereg'

As you can see I tried a few different ways to remove ereg from being compiled, but they all failed.

Any ideas?

Thanks
0
Comment
Question by:tomp_gl
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 48

Accepted Solution

by:
hernst42 earned 500 total points
ID: 24838498
Try --with-regex=no but it seems that it can't be really disabled in 5.3.0
It is marked as depricated, but can't be remove at all. Additional try --disable-all and if it is still in then it can't be removed at all.
0

Featured Post

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question