Solved

How do I compile PHP 5.3.0 without the ereg module?

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
nagios 4 php error after installation 6 73
phpmyadmin 3 32
<? versus <?php 5 36
Download a website to hdd 2 49
Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
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…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

911 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now