php modules

whitevamp whitevamp47 at hotmail.com
Fri Dec 31 12:15:01 PST 2004


I didnt know where to post this to so im posting it to quistions@ and ports@

i have compiles and installed php 4.3.10 and i was needing to install pcre ,so i did on the command line make PHP_MODNAME=pcre install
and then i noticed that it didnt install pcre it just compiled in support for it so i did some looking around for pcre and found php4-pcre
so i installed it and when it got done installing it i got a message saying that the 
Libraries have been installed in:
  /usr/ports/devel/php4-pcre/work/php-4.3.10/ext/pcre/modules

( why dose it leave the libraies in the ports dir?? )

so i moved them to a folder for php to find more esaly and with out getting wiped out when i do a portupgrade, and i set the module path in the php.ini file 
IE:/usr/local/php-modules 
now in the php log file it saying this 

[31-Dec-2004 01:27:25] PHP Notice:  Constant PREG_PATTERN_ORDER already defined in Unknown on line 0                                           
[31-Dec-2004 01:27:25] PHP Notice:  Constant PREG_SET_ORDER already defined in Unknown on line 0                                               
[31-Dec-2004 01:27:25] PHP Notice:  Constant PREG_OFFSET_CAPTURE already defined in Unknown on line 0                                          
[31-Dec-2004 01:27:25] PHP Notice:  Constant PREG_SPLIT_NO_EMPTY already defined in Unknown on line 0                                          
[31-Dec-2004 01:27:25] PHP Notice:  Constant PREG_SPLIT_DELIM_CAPTURE already defined in Unknown on line 0                                     
[31-Dec-2004 01:27:25] PHP Notice:  Constant PREG_SPLIT_OFFSET_CAPTURE already defined in Unknown on line 0                                    
[31-Dec-2004 01:27:25] PHP Notice:  Constant PREG_GREP_INVERT already defined in Unknown on line 0                                             
[31-Dec-2004 01:27:25] PHP Warning:  Function registration failed - duplicate name - preg_match in Unknown on line 0                           
[31-Dec-2004 01:27:25] PHP Warning:  Function registration failed - duplicate name - preg_match_all in Unknown on line 0                       
[31-Dec-2004 01:27:25] PHP Warning:  Function registration failed - duplicate name - preg_replace in Unknown on line 0                         
[31-Dec-2004 01:27:25] PHP Warning:  Function registration failed - duplicate name - preg_replace_callback in Unknown on line 0                
[31-Dec-2004 01:27:25] PHP Warning:  Function registration failed - duplicate name - preg_split in Unknown on line 0                           
[31-Dec-2004 01:27:25] PHP Warning:  Function registration failed - duplicate name - preg_quote in Unknown on line 0                           
[31-Dec-2004 01:27:25] PHP Warning:  Function registration failed - duplicate name - preg_grep in Unknown on line 0                            
[31-Dec-2004 01:27:25] PHP Warning:  pcre:  Unable to register functions, unable to load in Unknown on line 0                    


so my quistin's are

1. should i have left it in the ports dir?
2. did i not move something that it needs ??
3. as sad above ( why dose it leave the libraies in the ports dir?? )
4. am i doing this right ?? or all wrong??
5. why am i getting this error ?

this is for an apache mod 
the reason im trying to get this to work is becouse i have a CMF that is complaining about Call to undefined function: preg_match_all()
and the coders sugested that i install pcre. wich dont make sence to me becouse i didnt have it installed before i did a portupgrade on php and apache, any how im bableing now.

and thanks for any help on this inadvance





More information about the freebsd-questions mailing list