Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8041675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:18:03+00:00 2026-06-05T04:18:03+00:00

I installed php5-intl on my osx lion. It seems to work properly on command

  • 0

I installed php5-intl on my osx lion.

It seems to work properly on command line mode because if I try to run the following script (1):

$fmt = datefmt_create( "en_US" ,IntlDateFormatter::FULL,IntlDateFormatter::FULL,'America/Los_Angeles',IntlDateFormatter::GREGORIAN  );
echo "First Formatted output is ".datefmt_format( $fmt , 0)."\n";

> php -m |grep intl
intl

> php test.php 
First Formatted output is Wednesday, December 31, 1969 4:00:00 PM Pacific Standard Time

But if I try to sun the same from my apache (after sudo apachectl restart) I get the following error:

> tail /private/var/log/apache2/error_log
PHP Fatal error:  Call to undefined function datefmt_create() in

P.S.:

I also added the following line to my php.ini

extension_dir = "/opt/local/lib/php/extensions/no-debug-non-zts-20090626"

ll /opt/local/lib/php/extensions/no-debug-non-zts-20090626
total 848
-rwxr-xr-x  1 root  261712  7 May 10:54 xdebug.so
-rwxr-xr-x  1 root  168912 31 May 19:53 intl.so

in php.ini is written: Loaded Configuration File /private/etc/php.ini which is the file I edited.


Other info on my configuration are the following:

/private/etc/apache2/httpd.conf
LoadModule php5_module libexec/apache2/libphp5.so
/usr/libexec/apache2/libphp5.so

/private/etc/php.ini
extension_dir = "/opt/local/lib/php/extensions/no-debug-non-zts-20090626"
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T04:18:05+00:00Added an answer on June 5, 2026 at 4:18 am

    Create a web page, with these contents:

    <?php
    phpinfo();
    echo datefmt_create("en_US" ,IntlDateFormatter::FULL,IntlDateFormatter::FULL);
    ?>
    

    (Yes, I know that 2nd line gives an error, but in this case it is enough to tell us it works.)

    View that web page, and search for “Internationalization support” or “intl”. In my case I see:

    Internationalization support    enabled
    version                         1.0.3
    ICU version                     4.2.1
    
    Directive           Local Value Master Value
    intl.default_locale no value    no value
    intl.error_level    0           0
    

    If you have no intl section present, then it can only be a php.ini issue (the more usual cause is not restarting apache, but you said you’d done that).

    To confirm, edit the php.ini file again and at the very end introduce a change you can be sure will work. E.g. asp_tags = 1. Now reload your phpinfo() page and make sure you see the change there.

    If you don’t perhaps it is permissions; the user Apache runs as cannot read your php.ini file?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed Apache 2.2 and PHP5 in my laptop. Apache seems to work
I am trying install php5-intl on my osx lion. I did install also Xcode.
I'm running ubuntu 10.04 and have installed php5 via the following: sudo aptitude install
On my freeBSD machine i installed both php5 and mysql. Both work great independent
I just installed apache server on my local machine. I executed the following command
I have installed php5 and mysql5 on my server , I can login to
I just installed Apache 2.2.11 and downloaded the zip for PHP5.2.9-2 I uncommented extension=php_pdo_pgsql.dll
I have installed php5.3.2 and MySql on Ubuntu 10.4. Now how do I add
I am running Ubuntu 11.04 with Apache/MySQL/PHP5 installed. I completely followed the installation process
I have a Macports installed version of php5, that is missing the curl extension.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.