?
Solved

How do I compile PHP 5.3.0 without the ereg module?

Posted on 2009-07-12
1
Medium Priority
?
958 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

718 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