Solved

How do I compile PHP 5.3.0 without the ereg module?

Posted on 2009-07-12
1
938 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
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PHP Query return divisible by 3 3 26
How to set the Tinymce Editor image path 4 22
PHP Mail error 3 26
PHP: Best way to scan folders and process files 10 39
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

856 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