Solved

How do I compile PHP 5.3.0 without the ereg module?

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
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.
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 …

707 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

16 Experts available now in Live!

Get 1:1 Help Now