7072982 move php from sfw to userland consolidation
109 files added
1 files modified
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | set name=pkg.fmri value=pkg:/SUNWapch22m-php52@5.2.12,5.11-0.133 |
| | | set name=pkg.renamed value=true |
| | | |
| | | set name=org.opensolaris.consolidation value=$(CONSOLIDATION) |
| | | |
| | | depend fmri=web/server/apache-22/plugin/plugin-php52@5.2.12-0.133 type=require |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | set name=pkg.fmri value=pkg:/SUNWphp52-apc@3.0.19,5.11-0.133 |
| | | set name=pkg.renamed value=true |
| | | |
| | | set name=org.opensolaris.consolidation value=$(CONSOLIDATION) |
| | | |
| | | depend fmri=web/php-52/extension/php-apc@3.0.19-0.133 type=require |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | set name=pkg.fmri value=pkg:/SUNWphp52-idn@0.2.0,5.11-0.133 |
| | | set name=pkg.renamed value=true |
| | | |
| | | set name=org.opensolaris.consolidation value=$(CONSOLIDATION) |
| | | |
| | | depend fmri=web/php-52/extension/php-idn@0.2.0-0.133 type=require |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | set name=pkg.fmri value=pkg:/SUNWphp52-memcache@2.2.5,5.11-0.133 |
| | | set name=pkg.renamed value=true |
| | | |
| | | set name=org.opensolaris.consolidation value=$(CONSOLIDATION) |
| | | |
| | | depend fmri=web/php-52/extension/php-memcache@2.2.5-0.133 type=require |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | set name=pkg.fmri value=pkg:/SUNWphp52-mysql@5.2.12,5.11-0.133 |
| | | set name=pkg.renamed value=true |
| | | |
| | | set name=org.opensolaris.consolidation value=$(CONSOLIDATION) |
| | | |
| | | depend fmri=web/php-52/extension/php-mysql@5.2.12-0.133 type=require |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | set name=pkg.fmri value=pkg:/SUNWphp52-pear@5.2.12,5.11-0.133 |
| | | set name=pkg.renamed value=true |
| | | |
| | | set name=org.opensolaris.consolidation value=$(CONSOLIDATION) |
| | | |
| | | depend fmri=web/php-52/extension/php-pear@5.2.12-0.133 type=require |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | set name=pkg.fmri value=pkg:/SUNWphp52-suhosin@0.9.29,5.11-0.133 |
| | | set name=pkg.renamed value=true |
| | | |
| | | set name=org.opensolaris.consolidation value=$(CONSOLIDATION) |
| | | |
| | | depend fmri=web/php-52/extension/php-suhosin@0.9.29-0.133 type=require |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | set name=pkg.fmri value=pkg:/SUNWphp52-tcpwrap@1.1.3,5.11-0.133 |
| | | set name=pkg.renamed value=true |
| | | |
| | | set name=org.opensolaris.consolidation value=$(CONSOLIDATION) |
| | | |
| | | depend fmri=web/php-52/extension/php-tcpwrap@1.1.3-0.133 type=require |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | set name=pkg.fmri value=pkg:/SUNWphp52-xdebug@2.0.5,5.11-0.133 |
| | | set name=pkg.renamed value=true |
| | | |
| | | set name=org.opensolaris.consolidation value=$(CONSOLIDATION) |
| | | |
| | | depend fmri=web/php-52/extension/php-xdebug@2.0.5-0.133 type=require |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | set name=pkg.fmri value=pkg:/SUNWphp52@5.2.12,5.11-0.133 |
| | | set name=pkg.renamed value=true |
| | | |
| | | set name=org.opensolaris.consolidation value=$(CONSOLIDATION) |
| | | |
| | | depend fmri=web/php-52@5.2.12-0.133 type=require |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | set name=pkg.fmri value=pkg:/SUNWphp52d@5.2.12,5.11-0.133 |
| | | set name=pkg.renamed value=true |
| | | |
| | | set name=org.opensolaris.consolidation value=$(CONSOLIDATION) |
| | | |
| | | depend fmri=web/php-52/documentation@5.2.12-0.133 type=require |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | include ../../../make-rules/shared-macros.mk |
| | | |
| | | COMPONENT_NAME= APC |
| | | COMPONENT_VERSION= 3.0.19 |
| | | COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
| | | COMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz |
| | | COMPONENT_ARCHIVE_HASH= sha1:58d90ab757e606c878be3449a738016a08061dfd |
| | | COMPONENT_ARCHIVE_URL= http://pecl.php.net/get/$(COMPONENT_ARCHIVE) |
| | | COMPONENT_PROJECT_URL= http://pecl.php.net/package/APC |
| | | |
| | | PATCH_DIR = ../APC/patches |
| | | |
| | | include ../extensions-zts.mk |
| | | |
| | | CONFIGURE_OPTIONS += \ |
| | | --enable-apc \ |
| | | --enable-apc-mmap |
New file |
| | |
| | | php-5_2/APC-zts: php-5_2/php-sapi php-5_2/php-nsapi |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | include ../../../make-rules/shared-macros.mk |
| | | |
| | | COMPONENT_NAME= APC |
| | | COMPONENT_VERSION= 3.0.19 |
| | | COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
| | | COMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz |
| | | COMPONENT_ARCHIVE_HASH= sha1:58d90ab757e606c878be3449a738016a08061dfd |
| | | COMPONENT_ARCHIVE_URL= http://pecl.php.net/get/$(COMPONENT_ARCHIVE) |
| | | COMPONENT_PROJECT_URL= http://pecl.php.net/package/APC |
| | | |
| | | include ../extensions.mk |
| | | |
| | | CONFIGURE_OPTIONS += \ |
| | | --enable-apc \ |
| | | --enable-apc-mmap |
| | | |
| | | COMPONENT_POST_INSTALL_ACTION = ( \ |
| | | $(MKDIR) $(PROTO_DIR)/$(APACHE2_SAMPLES_CONFDIR); \ |
| | | $(INSTALL) -m 0644 $(COMPONENT_DIR)/../Solaris/php-apc-stats.conf \ |
| | | $(PROTO_DIR)/$(APACHE2_SAMPLES_CONFDIR); \ |
| | | $(MKDIR) $(PROTO_DIR)/usr/php/5.2/samples/apc; \ |
| | | $(INSTALL) -m 0555 $(SOURCE_DIR)/apc.php \ |
| | | $(PROTO_DIR)/usr/php/5.2/samples/apc/apc.php; \ |
| | | ) ; \ |
| | | $(FIX_CONFIG_FILES) |
| | | |
| | | PKG_PROTO_DIRS += $(COMPONENT_DIR)/../APC-zts/build/prototype/$(MACH) |
| | | |
| | | # Manual dependency - need APC-zts installed before APC publish |
| | | ##../APC-zts/build/$(MACH32)/.installed: |
| | | ## (cd ../APC-zts ; $(MAKE) install) |
| | | |
| | | ##$(INSTALL_32): ../APC-zts/build/$(MACH32)/.installed |
New file |
| | |
| | | extension=apc.so |
| | | |
| | | ;For detailed APC configurations, please visit |
| | | ;http://php.net/manual/en/apc.configuration.php |
New file |
| | |
| | | php-5_2/APC: php-5_2/php-sapi |
New file |
| | |
| | | --- APC-3.0.19/apc_pool.c.ORIG Thu Jun 26 17:58:56 2008 |
| | | +++ APC-3.0.19/apc_pool.c Thu Jun 26 17:58:16 2008 |
| | | @@ -43,7 +43,7 @@ |
| | | unsigned char *mark; |
| | | struct _pool_block *next; |
| | | unsigned :0; /* this should align to word */ |
| | | - unsigned char data[0]; |
| | | + unsigned char data[1]; |
| | | }pool_block; |
| | | |
| | | /* |
New file |
| | |
| | | --- APC-3.0.19/apc_cache.c.ORIG Mon Feb 9 07:35:10 2009 |
| | | +++ APC-3.0.19/apc_cache.c Mon Feb 9 07:35:21 2009 |
| | | @@ -62,23 +62,9 @@ |
| | | /* }}} */ |
| | | |
| | | /* {{{ string_nhash_8 */ |
| | | -static unsigned int string_nhash_8(const char *s, size_t len) |
| | | +static inline unsigned long string_nhash_8(const char *s, size_t len) |
| | | { |
| | | - register const unsigned int *iv = (const unsigned int *)s; |
| | | - register unsigned int h = 0; |
| | | - register const unsigned int *e = (const unsigned int *)(s + len - (len % sizeof(unsigned int))); |
| | | - |
| | | - for(;iv<e;iv++) { |
| | | - h += *iv; |
| | | - h = (h << 7) | (h >> ((8*sizeof(unsigned int)) - 7)); |
| | | - } |
| | | - s = (const char *)iv; |
| | | - for(len %= sizeof(unsigned int);len;len--) { |
| | | - h += *(s++); |
| | | - } |
| | | - h ^= (h >> 13); |
| | | - h ^= (h >> 7); |
| | | - return h; |
| | | + return zend_inline_hash_func(s, len); |
| | | } |
| | | /* }}} */ |
| | | |
New file |
| | |
| | | --- APC-3.0.19/apc_main.c.ORIG Fri Feb 13 17:16:08 2009 |
| | | +++ APC-3.0.19/apc_main.c Fri Feb 13 17:16:18 2009 |
| | | @@ -378,21 +378,12 @@ |
| | | if (op_array == NULL) { |
| | | return NULL; |
| | | } |
| | | - /* |
| | | - * Basically this will cause a file only to be cached on a percentage |
| | | - * of the attempts. This is to avoid cache slams when starting up a |
| | | - * very busy server or when modifying files on a very busy live server. |
| | | - * There is no point having many processes all trying to cache the same |
| | | - * file at the same time. By introducing a chance of being cached |
| | | - * we theoretically cut the cache slam problem by the given percentage. |
| | | - * For example if apc.slam_defense is set to 66 then 2/3 of the attempts |
| | | - * to cache an uncached file will be ignored. |
| | | - */ |
| | | - if(APCG(slam_defense)) { |
| | | - if(APCG(slam_rand)==-1) { |
| | | - APCG(slam_rand) = (int)(100.0*rand()/(RAND_MAX+1.0)); |
| | | - } |
| | | - if(APCG(slam_rand) < APCG(slam_defense)) { |
| | | + |
| | | + /* check our regular expression filters */ |
| | | + if (APCG(filters) && apc_compiled_filters && h->opened_path) { |
| | | + int ret = apc_regex_match_array(apc_compiled_filters, h->opened_path); |
| | | + if(ret == APC_NEGATIVE_MATCH || (ret != APC_POSITIVE_MATCH && !APCG(cache_by_default))) { |
| | | + /* never cache, never find */ |
| | | return op_array; |
| | | } |
| | | } |
New file |
| | |
| | | --- APC-3.0.19/apc_sem.c.ORIG Thu Aug 21 17:51:03 2008 |
| | | +++ APC-3.0.19/apc_sem.c Thu Aug 21 17:51:58 2008 |
| | | @@ -82,12 +82,16 @@ |
| | | } |
| | | } |
| | | |
| | | - if ((semid = semget(key, 1, IPC_CREAT | IPC_EXCL | perms)) >= 0) { |
| | | + if ((semid = semget(key, 2, IPC_CREAT | IPC_EXCL | perms)) >= 0) { |
| | | /* sempahore created for the first time, initialize now */ |
| | | arg.val = initval; |
| | | if (semctl(semid, 0, SETVAL, arg) < 0) { |
| | | apc_eprint("apc_sem_create: semctl(%d,...) failed:", semid); |
| | | } |
| | | + arg.val = getpid(); |
| | | + if (semctl(semid, 1, SETVAL, arg) < 0) { |
| | | + apc_eprint("apc_sem_create: semctl(%d,...) failed:", semid); |
| | | + } |
| | | } |
| | | else if (errno == EEXIST) { |
| | | /* sempahore already exists, don't initialize */ |
| | | @@ -107,7 +111,10 @@ |
| | | { |
| | | /* we expect this call to fail often, so we do not check */ |
| | | union semun arg; |
| | | - semctl(semid, 0, IPC_RMID, arg); |
| | | + int semPid = semctl(semid, 1, GETVAL, 0); |
| | | + if (semPid == getpid()) { |
| | | + semctl(semid, 0, IPC_RMID, arg); |
| | | + } |
| | | } |
| | | |
| | | void apc_sem_lock(int semid) |
New file |
| | |
| | | diff -u -r ./apc_compile.c.ORIG ./apc_compile.c |
| | | --- apc_compile.c.ORIG Wed May 14 23:45:27 2008 |
| | | +++ ./apc_compile.c Fri Nov 13 09:39:41 2009 |
| | | @@ -1236,10 +1236,10 @@ |
| | | } |
| | | |
| | | #ifdef ZEND_ENGINE_2 |
| | | - if(APCG(reserved_offset) != -1) { |
| | | + if(apc_reserved_offset != -1) { |
| | | /* Insanity alert: the void* pointer is cast into an apc_opflags_t |
| | | * struct. apc_zend_init() checks to ensure that it fits in a void* */ |
| | | - flags = (apc_opflags_t*) & (dst->reserved[APCG(reserved_offset)]); |
| | | + flags = (apc_opflags_t*) & (dst->reserved[apc_reserved_offset]); |
| | | memset(flags, 0, sizeof(apc_opflags_t)); |
| | | /* assert(sizeof(apc_opflags_t) < sizeof(dst->reserved)); */ |
| | | } |
| | | @@ -2040,8 +2040,8 @@ |
| | | zend_op *zo; |
| | | zend_op *dzo; |
| | | #ifdef ZEND_ENGINE_2 |
| | | - apc_opflags_t * flags = APCG(reserved_offset) != -1 ? |
| | | - (apc_opflags_t*) & (src->reserved[APCG(reserved_offset)]) : NULL; |
| | | + apc_opflags_t * flags = apc_reserved_offset != -1 ? |
| | | + (apc_opflags_t*) & (src->reserved[apc_reserved_offset]) : NULL; |
| | | int needcopy = flags ? flags->deep_copy : 1; |
| | | /* auto_globals_jit was not in php4 */ |
| | | int do_prepare_fetch_global = PG(auto_globals_jit) && (flags == NULL || flags->unknown_global); |
| | | diff -u -r ./apc_globals.h.ORIG ./apc_globals.h |
| | | --- ./apc_globals.h.ORIG Wed May 14 23:45:27 2008 |
| | | +++ ./apc_globals.h Fri Nov 13 09:40:40 2009 |
| | | @@ -79,9 +79,6 @@ |
| | | double rfc1867_freq; /* Update frequency as percentage or bytes */ |
| | | #endif |
| | | HashTable *copied_zvals; /* my_copy recursion detection list */ |
| | | -#ifdef ZEND_ENGINE_2 |
| | | - int reserved_offset; /* offset for apc info in op_array->reserved[] */ |
| | | -#endif |
| | | zend_bool force_file_update; /* force files to be updated during apc_compile_file */ |
| | | char canon_path[MAXPATHLEN]; /* canonical path for key data */ |
| | | #if APC_FILEHITS |
| | | @@ -103,6 +100,9 @@ |
| | | extern apc_cache_t* apc_cache; /* the global compiler cache */ |
| | | extern apc_cache_t* apc_user_cache; /* the global user content cache */ |
| | | extern void* apc_compiled_filters; /* compiled filters */ |
| | | +#ifdef ZEND_ENGINE_2 |
| | | +int apc_reserved_offset; /* offset for apc info in op_array->reserved[] */ |
| | | +#endif |
| | | |
| | | #endif |
| | | |
| | | diff -u -r ./apc_zend.c.ORIG ./apc_zend.c |
| | | --- ./apc_zend.c.ORIG Wed May 14 23:45:27 2008 |
| | | +++ ./apc_zend.c Fri Nov 13 09:39:41 2009 |
| | | @@ -195,9 +195,9 @@ |
| | | zval_dtor(&tmp_inc_filename); |
| | | } |
| | | |
| | | - if(APCG(reserved_offset) != -1) { |
| | | + if(apc_reserved_offset != -1) { |
| | | /* Insanity alert: look into apc_compile.c for why a void** is cast to a apc_opflags_t* */ |
| | | - flags = (apc_opflags_t*) & (execute_data->op_array->reserved[APCG(reserved_offset)]); |
| | | + flags = (apc_opflags_t*) & (execute_data->op_array->reserved[apc_reserved_offset]); |
| | | } |
| | | |
| | | #ifdef ZEND_ENGINE_2 |
| | | @@ -223,9 +223,9 @@ |
| | | { |
| | | zend_extension dummy_ext; |
| | | #ifdef ZEND_ENGINE_2 |
| | | - APCG(reserved_offset) = zend_get_resource_handle(&dummy_ext); |
| | | - assert(APCG(reserved_offset) == dummy_ext.resource_number); |
| | | - assert(APCG(reserved_offset) != -1); |
| | | + apc_reserved_offset = zend_get_resource_handle(&dummy_ext); |
| | | + assert(apc_reserved_offset == dummy_ext.resource_number); |
| | | + assert(apc_reserved_offset != -1); |
| | | assert(sizeof(apc_opflags_t) <= sizeof(void*)); |
| | | #endif |
| | | if (!APCG(include_once)) { |
| | | diff -u -r ./php_apc.c.ORIG ./php_apc.c |
| | | --- ./php_apc.c.ORIG Wed May 14 23:45:28 2008 |
| | | +++ ./php_apc.c Fri Nov 13 09:39:41 2009 |
| | | @@ -72,6 +72,9 @@ |
| | | apc_cache_t* apc_cache = NULL; |
| | | apc_cache_t* apc_user_cache = NULL; |
| | | void* apc_compiled_filters = NULL; |
| | | +#ifdef ZEND_ENGINE_2 |
| | | +int apc_reserved_offset = -1; |
| | | +#endif |
| | | |
| | | static void php_apc_init_globals(zend_apc_globals* apc_globals TSRMLS_DC) |
| | | { |
| | | @@ -90,9 +93,6 @@ |
| | | apc_globals->rfc1867 = 0; |
| | | #endif |
| | | apc_globals->copied_zvals = NULL; |
| | | -#ifdef ZEND_ENGINE_2 |
| | | - apc_globals->reserved_offset = -1; |
| | | -#endif |
| | | apc_globals->force_file_update = 0; |
| | | apc_globals->coredump_unmap = 0; |
| | | } |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | include ../../make-rules/shared-macros.mk |
| | | include ../../make-rules/ips.mk |
| | | |
| | | ## |
| | | ## DO: |
| | | ## patch |
| | | ## 12_php_7050600.patch |
| | | ## can go away once i get hold of 7052015 in b171 |
| | | ## |
| | | |
| | | ## |
| | | ## This Makefile for local usage only. |
| | | ## The full build will NOT execute this Makefile. |
| | | ## |
| | | |
| | | # PHP 5.2 |
| | | # |
| | | # Build ordering: |
| | | # 1) imap -> install |
| | | # 2) php-sapi -> install |
| | | # 3) php-nsapi -> install |
| | | # 3) php-cgi -> install |
| | | # 4) php-sapi -> publish (packages sapi, nsapi, cgi in 1 package) |
| | | # 5) APC-zts -> install |
| | | # 6) APC -> publish (packages APC-zts, APC in 1 package) |
| | | # 5) idn-zts -> install |
| | | # 6) idn -> publish (packages idn-zts, idn in 1 package) |
| | | # 5) memcache-zts -> install |
| | | # 6) memcache -> publish (packages memcache-zts, memcache in 1 pack) |
| | | # 5) suhosin-zts -> install |
| | | # 6) suhosin -> publish (packages suhosin-zts, suhosin in 1 package) |
| | | # 5) tcpwrap-zts -> install |
| | | # 6) tcpwrap -> publish (packages tcpwrap-zts, tcpwrap in 1 package) |
| | | # 5) xdebug-zts -> install |
| | | # 6) xdebug -> publish (packages xdebug-zts, xdebug in 1 package) |
| | | # |
| | | # The numbers indicate parallelism possible in the build. |
| | | # The other way to build this would be: |
| | | # 1) imap -> build |
| | | # 2) php-sapi -> install |
| | | # 3) php-nsapi -> install |
| | | # 4) all others -> install (in parallel) |
| | | # 5) all -> publish (in parallel) |
| | | # So after imap, php-sapi, php-nsapi build serially in that order |
| | | # then it doesn't matter. |
| | | |
| | | # PHP is built 3 ways: |
| | | # php-sapi - Server API |
| | | # php-cgi - CGI |
| | | # php-nsapi - Netscape Server API |
| | | # This is the Netscape group (aka webstack group) |
| | | # that Sun purchased from AOL long ago. |
| | | # I believe this Netscape server is still alive |
| | | # and offered by Oracle. |
| | | # These PHP's are built from the same source, patched the same way, |
| | | # but configured differently. |
| | | |
| | | # More relevant to the full USERLAND build is the dependency tree |
| | | # for say starting the build down in an extension module: |
| | | # To publish the APC extension: |
| | | # 1) build imap |
| | | # 2) install php-sapi |
| | | # 3) install APC |
| | | # 4) install php-nsapi |
| | | # 5) install APC-zts |
| | | # 6) publish APC |
| | | |
| | | # SFW build of php |
| | | # 1) build_imap - Because php needs headers and libc-client.a |
| | | # Must be built first. |
| | | # 2) build_modphp5 - php SAPI |
| | | # $(PHP_DIR)/libs/libphp5.so |
| | | # $(PHP_DIR)/config.status |
| | | # $(PHP_DIR)/configure |
| | | # unroll php archive |
| | | # patch |
| | | # ./buildconf |
| | | # edit configure |
| | | # copy php source tree for php_fast/cgi build |
| | | # unroll webserver7-spi |
| | | # [Sun Java System Web Server 7 (formerly known |
| | | # as Sun ONE/iPlanet Enterprise Server)] |
| | | # [now Oracle iPlanet Web Server 7] |
| | | # copy php source tree for php_nsapi build |
| | | # $(PHP_NSAPI)/configure |
| | | # [stuff...] |
| | | # ./configure |
| | | # 3) build_cgi - php cgi/fastcgi |
| | | # 4) build_nsapi - php nsapi (netscape SAPI - old sun webserver product) |
| | | # (still applicable) |
| | | # I think so - http://blogs.oracle.com/natarajan/entry/php_plug_in_for_oracle |
| | | # (now known as Oracle iPlanet Web Server 7) |
| | | # |
| | | # 5) install_php - this is called AFTER php builds and installs |
| | | # cd $(PHP_DIR); make install |
| | | # cd $(PHP_NSAPI); make libphp5.la install-modules |
| | | # ./install-php5 |
| | | # don't need fix_bin_scripts() |
| | | # [paths already correct and some things don't exist.] |
| | | # looks like i DO NEED the pear patches |
| | | |
| | | PKG_PROTO_DIRS += APC/build/prototype/$(MACH) |
| | | PKG_PROTO_DIRS += APC-zts/build/prototype/$(MACH) |
| | | PKG_PROTO_DIRS += idn/build/prototype/$(MACH) |
| | | PKG_PROTO_DIRS += idn-zts/build/prototype/$(MACH) |
| | | PKG_PROTO_DIRS += memcache/build/prototype/$(MACH) |
| | | PKG_PROTO_DIRS += memcache-zts/build/prototype/$(MACH) |
| | | PKG_PROTO_DIRS += php-cgi/build/prototype/$(MACH) |
| | | PKG_PROTO_DIRS += php-nsapi/build/prototype/$(MACH) |
| | | PKG_PROTO_DIRS += php-sapi/build/prototype/$(MACH) |
| | | PKG_PROTO_DIRS += suhosin/build/prototype/$(MACH) |
| | | PKG_PROTO_DIRS += suhosin-zts/build/prototype/$(MACH) |
| | | PKG_PROTO_DIRS += tcpwrap/build/prototype/$(MACH) |
| | | PKG_PROTO_DIRS += tcpwrap-zts/build/prototype/$(MACH) |
| | | PKG_PROTO_DIRS += xdebug/build/prototype/$(MACH) |
| | | PKG_PROTO_DIRS += xdebug-zts/build/prototype/$(MACH) |
| | | |
| | | # for now, everything with a Makefile should be built |
| | | SUBDIRS = $(shell echo */Makefile | sed -e 's;/Makefile;;g') |
| | | |
| | | .PHONY: $(SUBDIRS) |
| | | |
| | | download: TARGET = download |
| | | prep: TARGET = prep |
| | | install: TARGET = install |
| | | clean: TARGET = clean |
| | | clobber: TARGET = clobber |
| | | test: TARGET = test |
| | | publish: TARGET = publish |
| | | |
| | | build: install |
| | | |
| | | .DEFAULT: publish |
| | | |
| | | download prep install test publish: $(SUBDIRS) |
| | | |
| | | clean: $(SUBDIRS) |
| | | |
| | | clobber: $(SUBDIRS) clean |
| | | |
| | | $(SUBDIRS): FORCE |
| | | @cd $@ && echo "$(TARGET) $@" && $(MAKE) $(TARGET) |
| | | |
| | | # declare module dependencies |
| | | APC: php-sapi |
| | | APC-zts: php-sapi php-nsapi |
| | | idn: php-sapi |
| | | idn-zts: php-sapi php-nsapi |
| | | memcache: php-sapi |
| | | memcache-zts: php-sapi php-nsapi |
| | | php-cgi: php-sapi |
| | | php-nsapi: php-sapi |
| | | php-sapi: imap |
| | | suhosin: php-sapi |
| | | suhosin-zts: php-sapi php-nsapi |
| | | tcpwrap: php-sapi |
| | | tcpwrap-zts: php-sapi php-nsapi |
| | | xdebug: php-sapi |
| | | xdebug-zts: php-sapi php-nsapi |
| | | |
| | | FORCE: |
New file |
| | |
| | | #!/bin/bash |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | # Helper functions |
| | | function usage { |
| | | echo "" |
| | | echo "Usage: This script will update a given Web Server 7 instance's configuration" |
| | | echo " files to be able to execute PHP scripts." |
| | | echo "" |
| | | echo "This script recognizes following arguments:" |
| | | echo " --installroot : Top level Sun Web Server 7 installation location. " |
| | | echo "" |
| | | echo " --instancename : Name of Web Server instance (https-php) which should" |
| | | echo " be configured to execute PHP scripts. " |
| | | echo "" |
| | | echo " --sapi : How should PHP runtime be loaded within Web Server 7" |
| | | echo " fastcgi (Default) or NSAPI (Optional). " |
| | | echo "" |
| | | exit 1 |
| | | } |
| | | |
| | | function parse_arguments |
| | | { |
| | | until [ $# -eq 0 ] |
| | | do |
| | | cur_arg=$1 |
| | | case $cur_arg in |
| | | --installroot=*) |
| | | install_root="`echo $cur_arg | cut -d= -f2-`" |
| | | ;; |
| | | --instancename=*) |
| | | instance_name="`echo $cur_arg | cut -d= -f2-`" |
| | | ;; |
| | | --sapi=*) |
| | | sapi="`echo $cur_arg | cut -d= -f2-`" |
| | | ;; |
| | | *) |
| | | usage |
| | | ;; |
| | | esac |
| | | shift; |
| | | done |
| | | } |
| | | |
| | | function try_interactive |
| | | { |
| | | # Get user response on Web Server 7 installation location and instance name. |
| | | echo -n "Enter your Web Server installation location : " |
| | | read input |
| | | if [ -n "$input" ]; then |
| | | install_root="$input" |
| | | fi |
| | | |
| | | echo -n "Enter your Web Server instance name to configure with PHP runtime: " |
| | | read input |
| | | if [ -n "$input" ]; then |
| | | instance_name="$input" |
| | | fi |
| | | |
| | | while [ 0 ]; do |
| | | echo -n "How you would like Sun Web Server 7 to load PHP engine (fastcgi|nsapi) [fastcgi]: " |
| | | read input |
| | | if [ -z "$input" ]; then |
| | | sapi="fastcgi" |
| | | else |
| | | sapi=$input |
| | | fi |
| | | if [ -n "$sapi" ] && [ $sapi = "fastcgi" -o $sapi = "nsapi" ]; then |
| | | break |
| | | fi |
| | | done |
| | | return 1; |
| | | } |
| | | |
| | | function validate_arguments |
| | | { |
| | | if [ ! -d "$install_root" ] || [ ! -x "$install_root/lib/webservd" ]; then |
| | | echo "" |
| | | echo "Warning: Unable to find valid Web Server installation under $install_root" |
| | | echo "Please try again by providing a valid Web Server 7 installation location." |
| | | usage |
| | | fi |
| | | |
| | | if [ ! -d "$install_root" ] || [ ! -x "$install_root/lib/webservd" ]; then |
| | | echo "" |
| | | echo "Warning: Unable to find valid Web Server installation under $install_root" |
| | | echo "Please try again by providing a valid Web Server 7 installation location." |
| | | usage |
| | | fi |
| | | |
| | | if [ -n "$sapi" ] && [ $sapi != "fastcgi" -a $sapi != "nsapi" ]; then |
| | | echo "" |
| | | echo "Error: Invalid SAPI option is provided.Valid SAPI argument is either 'fastcgi' or 'nsapi'" |
| | | echo "Please try again by providing a valid SAPI as argument." |
| | | usage |
| | | fi |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | function generate_tempfile |
| | | { |
| | | template="tmp.XXXXXXXXXX"; |
| | | if [ -x "/bin/mktemp" ]; then |
| | | temp_file="`/bin/mktemp`" |
| | | elif [ -x "/usr/bin/mktemp" ]; then |
| | | temp_file="`/usr/bin/mktemp`" |
| | | fi |
| | | if [ ! -f $temp_file ]; then |
| | | temp_file="/tmp/ws7_php_configure.$$" |
| | | touch $temp_file |
| | | chmod 600 $temp_file |
| | | fi |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | function generate_configure |
| | | { |
| | | if [ "$OSNAME" = "SunOS" ]; then |
| | | tail +${perl_start_line} $PROGRAM_NAME > $temp_file |
| | | elif [ "$OSNAME" = "Linux" ]; then |
| | | start_line=${perl_start_line} |
| | | total_line=`wc -l $PROGRAM_NAME | awk '{print $1}' 2>/dev/null` |
| | | few_lines=$(($total_line - $start_line)) |
| | | tail -${few_lines} $PROGRAM_NAME > $temp_file |
| | | fi |
| | | chmod 500 $temp_file |
| | | } |
| | | |
| | | function invoke_configure |
| | | { |
| | | # Setup environment |
| | | if [ -f "$install_root/lib/wsenv" ]; then |
| | | source $install_root/lib/wsenv |
| | | if [ ! -d "${WS_INSTANCEROOT}/${instance_name}" ]; then |
| | | echo "Warning: Unable to find instance:'$instance_name' under $WS_INSTANCEROOT" |
| | | echo " Please try again by providing a valid instance name." |
| | | exit 1; |
| | | fi |
| | | fi |
| | | |
| | | # Special case, if it is NSAPI |
| | | if [ "$sapi" = "nsapi" ]; then |
| | | mkdir -p "$install_root/plugins/webstack-php" |
| | | ln -sf "<<INSTALL_DIR>>/nsapi/libphp5.so" "$install_root/plugins/webstack-php/libphp5.so" |
| | | fi |
| | | |
| | | # Invoke script to configure PHP runtime. |
| | | if [ "$sapi" = "nsapi" ]; then |
| | | PHPROOT="<<INSTALL_DIR>>" |
| | | PHPCONFROOT="<<NSAPI_CONF_DIR>>" |
| | | PHPCONFROOT_SCANDIR="<<ZTS_MODULES_CONF_DIR>>" |
| | | else |
| | | PHPROOT="<<INSTALL_DIR>>" |
| | | PHPCONFROOT="<<CONF_DIR>>" |
| | | PHPCONFROOT_SCANDIR="<<MODULES_CONF_DIR>>" |
| | | fi |
| | | |
| | | ${WS_PERL}/perl -I ${WS_PERL} -I ${WS_PERL}/lib -I ${WS_PERL}/lib/site_perl $temp_file \ |
| | | -installroot=${WS_INSTALLROOT} -instanceroot=${WS_INSTANCEROOT} -instancename=$instance_name \ |
| | | -sapi=$sapi -phproot="${PHPROOT}" \ |
| | | -phpconfroot="${PHPCONFROOT}" -phpmodulesconfroot="${PHPCONFROOT_SCANDIR}" |
| | | |
| | | status=$? |
| | | if [ $status -eq 0 ]; then |
| | | if [ -f $temp_file ]; then |
| | | rm -f $temp_file |
| | | fi |
| | | elif [ $status -ne 0 ]; then |
| | | echo "Unable to successfully setup PHP within Web Server 7" |
| | | exit 1 |
| | | fi |
| | | } |
| | | |
| | | #------------------------------------------------------------------------------- |
| | | ##### |
| | | # Main |
| | | ##### |
| | | PATH=/bin:/usr/bin:/usr/gnu/bin:/usr/sfw/bin |
| | | export PATH |
| | | |
| | | # Global variables. |
| | | OSNAME="`uname -s`" |
| | | PHPROOT="<<INSTALL_DIR>>" |
| | | PHPCONFROOT="<<CONF_DIR>>" |
| | | PHPCONFROOT_SCANDIR="<<MODULES_CONF_DIR>>" |
| | | PROGRAM_NAME="$0" |
| | | install_root="" |
| | | instance_name="" |
| | | sapi="fastcgi" |
| | | temp_file="" |
| | | |
| | | # This below line need to point to the start of embedded perl script. |
| | | perl_start_line=245 |
| | | |
| | | echo "This script will update a given Web Server 7 instance's configuration" |
| | | echo "files to be able to execute PHP scripts." |
| | | echo "" |
| | | |
| | | # Verify if the program is called with necessary arguments. |
| | | if [ -n "$1" ]; then |
| | | parse_arguments $@; |
| | | else |
| | | # Invoked with no arguments. Try interactive. |
| | | try_interactive |
| | | fi |
| | | |
| | | validate_arguments |
| | | |
| | | generate_tempfile |
| | | |
| | | generate_configure |
| | | |
| | | invoke_configure |
| | | |
| | | exit 0 |
| | | |
| | | #---------------------EOF------------------------------------------------------- |
| | | |
| | | # Helper Script to configure PHP runtime environment within Web Server 7 |
| | | |
| | | use XML::Simple; |
| | | use File::Basename; |
| | | use English; |
| | | use strict; |
| | | |
| | | our $INSTANCE_ROOT = undef; |
| | | our $INSTALL_ROOT = undef; |
| | | our $INSTANCE_NAME = undef; |
| | | our $PHP_ROOT = ""; |
| | | our $PHP_CONF_ROOT = ""; |
| | | our $PHP_MODULES_CONF_ROOT = ""; |
| | | our $SAPI = undef; |
| | | our $MIME_TYPES_FILES = []; |
| | | our $OBJ_CONF_FILES = []; |
| | | our $SERVER_64BIT_MODE = undef; |
| | | |
| | | my $phpSoName; |
| | | if (isWindows()) { |
| | | $phpSoName = "php5nsapi.dll"; |
| | | } else { |
| | | $phpSoName = "libphp5.so"; |
| | | } |
| | | |
| | | my $fastCGISoName; |
| | | if (isWindows()) { |
| | | $fastCGISoName = "fastcgi.dll"; |
| | | } else { |
| | | $fastCGISoName = "libfastcgi.so"; |
| | | } |
| | | |
| | | main(); |
| | | |
| | | sub main { |
| | | getCommandOptions(); |
| | | processServerXml(); |
| | | checkFilesWritable(); |
| | | processMagnusConf(); |
| | | processObjConf(); |
| | | processMimeTypes(); |
| | | printResult(); |
| | | } |
| | | |
| | | # ----------------------------------------------------------------------------- |
| | | # getCommandOptions |
| | | # Process the command line options |
| | | # ----------------------------------------------------------------------------- |
| | | |
| | | sub getCommandOptions { |
| | | for (my $counter=0; $#ARGV >= $counter; $counter++) { |
| | | my $argument = $ARGV[$counter]; |
| | | |
| | | if ($argument =~ /^-installroot=/i) { |
| | | $INSTALL_ROOT = substr($argument, length("-installroot=")); |
| | | } |
| | | if ($argument =~ /^-instanceroot=/i) { |
| | | $INSTANCE_ROOT = substr($argument, length("-instanceroot=")); |
| | | } |
| | | if ($argument =~ /^-phproot=/i) { |
| | | $PHP_ROOT = substr($argument, length("-phproot=")); |
| | | } |
| | | if ($argument =~ /^-phpconfroot=/i) { |
| | | $PHP_CONF_ROOT = substr($argument, length("-phpconfroot=")); |
| | | } |
| | | if ($argument =~ /^-phpmodulesconfroot=/i) { |
| | | $PHP_MODULES_CONF_ROOT = substr($argument, length("-phpmodulesconfroot=")); |
| | | } |
| | | if ($argument =~ /^-instancename=/i) { |
| | | $INSTANCE_NAME = substr($argument, length("-instancename=")); |
| | | } |
| | | if ($argument =~ /^-sapi=/i) { |
| | | $SAPI = substr($argument, length("-sapi=")); |
| | | } |
| | | } |
| | | if ((!defined $PHP_CONF_ROOT) || ($PHP_CONF_ROOT eq "")) { |
| | | $PHP_CONF_ROOT = $PHP_ROOT; |
| | | } |
| | | |
| | | if ((not defined $INSTANCE_NAME) or ($INSTANCE_NAME !~ m/\S+/)) { |
| | | printUsage(); |
| | | } |
| | | |
| | | exit 1 unless defined isValidFile("$INSTANCE_ROOT/$INSTANCE_NAME/config"); |
| | | } |
| | | |
| | | # ----------------------------------------------------------------------------- |
| | | # migrateObjConf |
| | | # Migrate obj.conf file to php 1.1 |
| | | # ----------------------------------------------------------------------------- |
| | | |
| | | sub migrateObjConf { |
| | | my $objConfFile = shift; |
| | | my $pContents = shift; |
| | | my $tmpObjConfStatus = 1; |
| | | |
| | | return undef unless ($objConfFile); |
| | | if ((not -f $objConfFile or ref($pContents) != "ARRAY")) { |
| | | return undef; |
| | | } |
| | | |
| | | my $tmpObjConfFile = "$objConfFile"."tmp"; |
| | | my $update_reqd = undef; |
| | | local *TMPOBJ; |
| | | |
| | | my $newLibPath = "$PHP_ROOT/lib"; |
| | | my $newLibPath64 = "$PHP_ROOT/lib/64"; |
| | | |
| | | for (my $i = 0; $i < $#{@{$pContents}}; $i++) { |
| | | my $pLine = \$pContents->[$i]; |
| | | next if ($$pLine =~ /^\#/); #ignore comments; |
| | | next if (isWindows()); |
| | | if ($$pLine =~ m@(.*\s+app-path=['"])(\S+)\s*(['"].*)@) { |
| | | my ($tmp, $tmp1, $tmp2, $tmp3); |
| | | $tmp1 = $1; $tmp2 = $2; $tmp3 = $3; |
| | | |
| | | $tmp2 =~ s@$PHP_ROOT/bin/php@$PHP_ROOT/bin/php-cgi@; |
| | | $tmp = $tmp1.$tmp2.$tmp3."\n"; |
| | | $pContents->[$i] = $tmp; |
| | | $update_reqd = 1; |
| | | } |
| | | elsif ($$pLine =~ m@(.*\s+app-env=['"])(\S+)(=)(\S+)(['"].*)@) { |
| | | my ($tmp, $tmp1, $tmp2, $tmp3, $tmp4, $tmp5); |
| | | $tmp1 = $1; $tmp2 = $2; $tmp3 = $3; $tmp4 = $4; $tmp5 = $5; |
| | | |
| | | if (($tmp2 =~ m@LD_LIBRARY_PATH@) or ($tmp2 =~ m@LD_LIBRARY_PATH_64@)) { |
| | | if ($tmp4 =~ m@$PHP_ROOT/64@) { |
| | | $tmp4 =~ s@$PHP_ROOT/64@$newLibPath64@g; |
| | | } |
| | | elsif ($tmp4 =~ m@$PHP_ROOT/64([:].*)@) { |
| | | $tmp4 =~ s@$PHP_ROOT/64(:.*)@$newLibPath64$1@g; |
| | | } |
| | | elsif ($tmp4 =~ m@$PHP_ROOT([:].*)@) { |
| | | $tmp4 =~ s@$PHP_ROOT(:.*)@$newLibPath$1@g; |
| | | } |
| | | elsif ($tmp4 =~ m@$PHP_ROOT@) { |
| | | $tmp4 =~ s@$PHP_ROOT@$newLibPath@g; |
| | | } |
| | | } |
| | | elsif ($tmp2 =~ m@PHP_FCGI_MAX_REQUEST@) { |
| | | $tmp2 =~ s@PHP_FCGI_MAX_REQUEST@PHP_FCGI_MAX_REQUESTS@g; |
| | | $tmp4 =~ s@200@2000@; |
| | | } |
| | | $tmp = $tmp1.$tmp2.$tmp3.$tmp4.$tmp5."\n"; |
| | | $pContents->[$i] = $tmp; |
| | | $update_reqd = 1; |
| | | } |
| | | } |
| | | |
| | | if ($update_reqd) { |
| | | open(TMPOBJ,">$tmpObjConfFile") or $tmpObjConfStatus = undef; |
| | | if (defined $tmpObjConfStatus) { |
| | | for (my $i = 0; $i < $#{@{$pContents}}; $i++) { |
| | | my $line = $pContents->[$i]; |
| | | print TMPOBJ $line; |
| | | } |
| | | print "UPDATED: $objConfFile \n"; |
| | | close(TMPOBJ); |
| | | unlink("$objConfFile"); |
| | | rename("$tmpObjConfFile", "$objConfFile"); |
| | | chmod(0600, "$objConfFile"); |
| | | return 2; |
| | | } |
| | | } |
| | | |
| | | return 1; |
| | | } |
| | | |
| | | # ----------------------------------------------------------------------------- |
| | | # processServerXml |
| | | # Parse the server.xml and get all the mime files and object files |
| | | # ----------------------------------------------------------------------------- |
| | | |
| | | sub processServerXml { |
| | | my $file = undef; |
| | | my $serverXml = "$INSTANCE_ROOT/$INSTANCE_NAME/config/server.xml"; |
| | | |
| | | my $config = eval{XMLin("$serverXml", forcearray=>1, keyattr=>[])}; |
| | | if ($@) { |
| | | print("\nERROR: Problem parsing the $serverXml. Not a valid xml file. \n\n"); |
| | | exit 1; |
| | | } |
| | | |
| | | #get the server level mime file |
| | | $file = $config->{"mime-file"}->[0]; |
| | | if (defined $file) { |
| | | $file = getValidAbsoluteFilePath($file); |
| | | if (defined $file) { |
| | | push (@$MIME_TYPES_FILES, $file); |
| | | } |
| | | } |
| | | |
| | | # get the server platform mode |
| | | my $mode = $config->{"platform"}->[0]; |
| | | if (defined $mode) { |
| | | if ($mode == "64") { |
| | | $SERVER_64BIT_MODE = "64"; |
| | | } |
| | | } |
| | | |
| | | for (my $vsCounter = 0; ${config}->{"virtual-server"}->[$vsCounter]; $vsCounter++) { |
| | | my $virutalServerElement = ${config}->{"virtual-server"}->[$vsCounter]; |
| | | #get the virtual server level mime files |
| | | for (my $mimeTypescounter = 0; ${virutalServerElement}->{"mime-file"}->[$mimeTypescounter]; $mimeTypescounter++) { |
| | | $file = ${virutalServerElement}->{"mime-file"}->[$mimeTypescounter]; |
| | | $file = getValidAbsoluteFilePath($file); |
| | | if (defined $file) { |
| | | push (@$MIME_TYPES_FILES, $file); |
| | | } |
| | | } |
| | | #get the virtual server level object files |
| | | for (my $objectFilecounter = 0; ${virutalServerElement}->{"object-file"}->[$objectFilecounter]; $objectFilecounter++) { |
| | | $file = ${virutalServerElement}->{"object-file"}->[$objectFilecounter]; |
| | | $file = getValidAbsoluteFilePath($file); |
| | | if (defined $file) { |
| | | push (@$OBJ_CONF_FILES, $file); |
| | | } |
| | | } |
| | | } |
| | | |
| | | #Default is mime.types |
| | | if (@$MIME_TYPES_FILES < 1) { |
| | | push (@$MIME_TYPES_FILES, "$INSTANCE_ROOT/$INSTANCE_NAME/config/mime.types"); |
| | | } |
| | | |
| | | #Default is obj.conf |
| | | if (@$OBJ_CONF_FILES < 1) { |
| | | push (@$OBJ_CONF_FILES, "$INSTANCE_ROOT/$INSTANCE_NAME/config/obj.conf"); |
| | | } |
| | | } |
| | | |
| | | # ----------------------------------------------------------------------------- |
| | | # processMagnusConf |
| | | # Append the MAGNUS_CONF_APPEND_STRING value at the end of magnus.conf file. |
| | | # ----------------------------------------------------------------------------- |
| | | |
| | | sub processMagnusConf { |
| | | my $magnusConfFile = "$INSTANCE_ROOT/$INSTANCE_NAME/config/magnus.conf"; |
| | | my $magnusConfStatus = 1; |
| | | |
| | | if (defined isValidFile($magnusConfFile)) |
| | | { |
| | | # Get the current File Stat. |
| | | my @statInfo = stat $magnusConfFile; |
| | | |
| | | # Verify if the changes already exist. |
| | | if (open(MAGNUS_R,"<$magnusConfFile")) { |
| | | my @contents = <MAGNUS_R>; |
| | | foreach (@contents) { |
| | | next if (/^\#/); #ignore comments; |
| | | if ((isNSAPI()) and (/shlib(.*)$phpSoName(.*)/g)) { |
| | | close(MAGNUS_R); |
| | | return 1; |
| | | } elsif ((not isNSAPI()) and (/shlib(.*)$fastCGISoName(.*)/g)) { |
| | | close(MAGNUS_R); |
| | | return 1; |
| | | } |
| | | } |
| | | close(MAGNUS_R); |
| | | } |
| | | open(MAGNUS,">>$magnusConfFile") or $magnusConfStatus = 0; |
| | | |
| | | if ($magnusConfStatus == 1) { |
| | | addToMagnusConf(\*MAGNUS); |
| | | print "\n\nUPDATED: $magnusConfFile \n"; |
| | | } else { |
| | | print "\nERROR: Unable to write $magnusConfFile. \n\n"; |
| | | close(MAGNUS); |
| | | exit 1; |
| | | } |
| | | close(MAGNUS); |
| | | chown $statInfo[4], $statInfo[5], $magnusConfFile; |
| | | } |
| | | } |
| | | |
| | | # ----------------------------------------------------------------------------- |
| | | # processObjConf |
| | | # Append the OBJ_CONF_APPEND_STRING value after the <object name="default" |
| | | # directive in all object files. |
| | | # ----------------------------------------------------------------------------- |
| | | |
| | | sub processObjConf { |
| | | while(scalar(@$OBJ_CONF_FILES) > 0) { |
| | | my $objConfFile = pop(@$OBJ_CONF_FILES); |
| | | my $objConfStatus = 1; |
| | | my $tmpObjConfStatus = 1; |
| | | |
| | | if (defined isValidFile($objConfFile)) |
| | | { |
| | | # Get the current File Stat. |
| | | my @statInfo = stat $objConfFile; |
| | | |
| | | # Verify if the changes already exist. |
| | | open(OBJ,"<$objConfFile") or $objConfStatus = undef; |
| | | if (defined $objConfStatus) { |
| | | my @lines = <OBJ>; |
| | | my $escape_path = $PHP_ROOT; |
| | | $escape_path =~ s/\/(\w)/\\\/$1/g; |
| | | $escape_path =~ s/\\(\w)/\/$1/g; |
| | | my $contents = join("",@lines); |
| | | my $already_configured = undef; |
| | | if ((isNSAPI()) and ($contents =~ m/ |
| | | \s*Service\s+type="magnus-internal\/php"\s+fn="php5_execute" |
| | | /mx)) { |
| | | close(OBJ); |
| | | $already_configured = 1; |
| | | } |
| | | if ((not isNSAPI()) and (($contents =~ m/ |
| | | \s*Service\s+type=[\"]magnus-internal\/php[\"] |
| | | [\r\n]+ |
| | | \s*fn=[\"]responder-fastcgi[\"] |
| | | [\r\n]+ |
| | | \s*app-path=[\"](.*)[\"] |
| | | [\r\n]+ |
| | | /mx) and ($1 =~ m@$escape_path@))) { |
| | | close(OBJ); |
| | | $already_configured = 1; |
| | | # migrate existing obj.conf configurations. |
| | | &migrateObjConf($objConfFile, \@lines); |
| | | } |
| | | |
| | | next if ($already_configured); |
| | | |
| | | # Create a new obj.conf |
| | | my $tmpObjConfFile = "$objConfFile"."tmp"; |
| | | open(TMPOBJ,">$tmpObjConfFile") or $tmpObjConfStatus = undef; |
| | | if (defined $tmpObjConfStatus) { |
| | | if (@lines) { |
| | | foreach my $line (@lines) { |
| | | if (($line =~ /^<Object/i) && |
| | | (($line =~ /name=default>/i) || |
| | | ($line =~ /name=default\s/i) || |
| | | ($line =~ /name="default"/i))) { |
| | | print TMPOBJ $line; |
| | | addToObjConf(\*TMPOBJ); |
| | | print "UPDATED: $objConfFile \n"; |
| | | } elsif ($line =~ /PathCheck\s+fn\s*=\s*(\S+)\s+(\S+)\s*=\s*(\S+)$/) { |
| | | my $funcName = $1; |
| | | my $valueName = $2; |
| | | my $values = $3; |
| | | if (($funcName =~ /find-index/) and ($valueName =~ /index-names/)) { |
| | | $values =~ s/[\"](\S+)[\"]/$1/; |
| | | $values = "$1".",index.php"; |
| | | my $newLine = <<__UP_TO_THIS_POINT_; |
| | | PathCheck fn=$funcName $valueName=\"$values\" |
| | | __UP_TO_THIS_POINT_ |
| | | print TMPOBJ $newLine; |
| | | } |
| | | else { |
| | | print TMPOBJ $line; |
| | | } |
| | | } else { |
| | | print TMPOBJ $line; |
| | | } |
| | | } |
| | | } |
| | | } else { |
| | | print "\nERROR: Unable to write $objConfFile \n\n"; |
| | | close(TMPOBJ); |
| | | close(OBJ); |
| | | unlink("$tmpObjConfFile"); |
| | | exit 1; |
| | | } |
| | | close(TMPOBJ); |
| | | close(OBJ); |
| | | unlink("$objConfFile"); |
| | | rename("$tmpObjConfFile", "$objConfFile"); |
| | | chmod(0600, "$objConfFile"); |
| | | chown $statInfo[4], $statInfo[5], $objConfFile; |
| | | } |
| | | } |
| | | } |
| | | } |
| | | |
| | | # ----------------------------------------------------------------------------- |
| | | # processMimeTypes |
| | | # Append the MIME_TYPES_APPEND_STRING value at the end of |
| | | # all the mime types file. |
| | | # ----------------------------------------------------------------------------- |
| | | |
| | | sub processMimeTypes { |
| | | while(scalar(@$MIME_TYPES_FILES) > 0) { |
| | | my $mimeTypesFile = pop(@$MIME_TYPES_FILES); |
| | | my $mimeTypesStatus = 1; |
| | | |
| | | if (defined isValidFile($mimeTypesFile)) { |
| | | |
| | | # Get the current File Stat. |
| | | my @statInfo = stat $mimeTypesFile; |
| | | |
| | | # Verify if the changes already exist. |
| | | if (open(MIME_R,"<$mimeTypesFile")) { |
| | | my @contents = <MIME_R>; |
| | | for (my $i = $#contents; $i > 0; $i--) { |
| | | if ($contents[$i] =~ /magnus-internal\/php/g) { |
| | | close(MIME_R); |
| | | return 1; |
| | | } |
| | | } |
| | | close(MIME_R); |
| | | } |
| | | open(MIME,">>$mimeTypesFile") or $mimeTypesStatus = undef; |
| | | if (defined $mimeTypesStatus) { |
| | | addToMimeTypes(\*MIME); |
| | | print "UPDATED: $mimeTypesFile \n"; |
| | | } else { |
| | | print "\nERROR: Unable to write $mimeTypesFile. \n\n"; |
| | | close(MIME); |
| | | exit 1; |
| | | } |
| | | close(MIME); |
| | | chown $statInfo[4], $statInfo[5], $mimeTypesFile; |
| | | } |
| | | } |
| | | } |
| | | |
| | | # ----------------------------------------------------------------------------- |
| | | # addMagnusConfEntry |
| | | # Add the required magnus conf entry |
| | | # ----------------------------------------------------------------------------- |
| | | sub addToMagnusConf { |
| | | |
| | | my $entry; |
| | | my $FILENAME = shift; |
| | | my $phpNsapi = $phpSoName; |
| | | |
| | | if (isNSAPI()) { |
| | | |
| | | $entry = <<__UP_TO_THIS_POINT_; |
| | | |
| | | Init fn="load-modules" shlib="$phpNsapi" shlib_flags="global|now" |
| | | funcs="php5_init,php5_close,php5_execute,php5_auth_trans" |
| | | Init fn="php5_init" |
| | | php_ini="$PHP_CONF_ROOT" |
| | | php_ini_scandir="$PHP_MODULES_CONF_ROOT" |
| | | errorString="PHP failed to initialize." |
| | | |
| | | __UP_TO_THIS_POINT_ |
| | | |
| | | } else { # fastcgi |
| | | |
| | | $entry = <<__UP_TO_THIS_POINT_; |
| | | |
| | | Init fn="load-modules" shlib="$fastCGISoName" |
| | | |
| | | __UP_TO_THIS_POINT_ |
| | | |
| | | } |
| | | |
| | | print $FILENAME $entry; |
| | | } |
| | | |
| | | # ----------------------------------------------------------------------------- |
| | | # addMimeTypesEntry |
| | | # Add the required mime types entry |
| | | # ----------------------------------------------------------------------------- |
| | | sub addToMimeTypes { |
| | | my $FILENAME = shift; |
| | | my $entry = <<__UP_TO_THIS_POINT_; |
| | | |
| | | type=magnus-internal/php exts=php,php3,php4,php5 |
| | | __UP_TO_THIS_POINT_ |
| | | print $FILENAME $entry; |
| | | } |
| | | |
| | | # ----------------------------------------------------------------------------- |
| | | # addObjConfEntry |
| | | # Add the required obj conf entry |
| | | # ----------------------------------------------------------------------------- |
| | | sub addToObjConf { |
| | | # setup |
| | | my $FILENAME = shift; |
| | | # On windows, replace \ with / in paths |
| | | my $l_php_root = $PHP_ROOT; |
| | | if (isWindows()) { |
| | | $l_php_root =~ s/\\/\//g; |
| | | } |
| | | |
| | | my $newLibPath = "$l_php_root/lib"; |
| | | my $newLibPath64 = "$l_php_root/lib/64"; |
| | | my $childs = &detectDefaultChildren(); |
| | | |
| | | my $unixFastCGIEntry = <<__UNIX_FASTCGI_ENTRY_ |
| | | <If -f \$path> |
| | | Service type="magnus-internal/php" |
| | | fn="responder-fastcgi" |
| | | app-path="$l_php_root/bin/php-cgi" |
| | | bind-path="localhost:3101" |
| | | app-env="PHPRC=$PHP_CONF_ROOT" |
| | | app-env="PHP_INI_SCANDIR=$PHP_MODULES_CONF_ROOT" |
| | | app-env="PHP_FCGI_CHILDREN=$childs" |
| | | app-env="PHP_FCGI_MAX_REQUESTS=2000" |
| | | app-env="FCGI_WEB_SERVER_ADDRS=127.0.0.1" |
| | | bucket="php-bucket" |
| | | </If> |
| | | <Else> |
| | | Service type="magnus-internal/php" fn="set-variable" error="404" |
| | | </Else> |
| | | |
| | | __UNIX_FASTCGI_ENTRY_ |
| | | ; |
| | | |
| | | my $windowsFastCGIEntry = <<__WINDOWS_FASTCGI_ENTRY_ |
| | | |
| | | Service type="magnus-internal/php" |
| | | fn="responder-fastcgi" |
| | | app-path="$l_php_root/php-cgi.exe" |
| | | bind-path="$INSTANCE_NAME--php_cgi" |
| | | app-env="PHPRC=$l_php_root" |
| | | app-env="PHP_FCGI_CHILDREN=$childs" |
| | | app-env="PHP_FCGI_MAX_REQUESTS=2000" |
| | | bucket="php-bucket" |
| | | |
| | | __WINDOWS_FASTCGI_ENTRY_ |
| | | ; |
| | | |
| | | my $nsapiEntry = <<__NSAPI_ENTRY_ |
| | | |
| | | Service type="magnus-internal/php" fn="php5_execute" |
| | | |
| | | __NSAPI_ENTRY_ |
| | | ; |
| | | |
| | | my $entry; |
| | | |
| | | if (isNSAPI()) { |
| | | $entry = $nsapiEntry; |
| | | } else { |
| | | if (isWindows()) { |
| | | $entry = $windowsFastCGIEntry; |
| | | } else { |
| | | $entry = $unixFastCGIEntry; |
| | | } |
| | | } |
| | | |
| | | print $FILENAME $entry; |
| | | } |
| | | |
| | | # ----------------------------------------------------------------------------- |
| | | # isNSAPI |
| | | # Check if SAPI is nsapi |
| | | # ----------------------------------------------------------------------------- |
| | | |
| | | sub isNSAPI() { |
| | | if ($SAPI =~ m/nsapi/i) { |
| | | return 1; |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | # ----------------------------------------------------------------------------- |
| | | # isWindows |
| | | # Check platform |
| | | # ----------------------------------------------------------------------------- |
| | | |
| | | sub isWindows() { |
| | | if ($OSNAME =~ m/WIN/i) { |
| | | return 1; |
| | | } |
| | | return 0; |
| | | } |
| | | |
| | | # ----------------------------------------------------------------------------- |
| | | # checkFilesWritable |
| | | # Check all the necessary files writable before adding the entries |
| | | # ----------------------------------------------------------------------------- |
| | | |
| | | sub checkFilesWritable { |
| | | exit 1 unless defined isValidFile("$INSTANCE_ROOT/$INSTANCE_NAME/config/magnus.conf"); |
| | | my @TMP_OBJ_CONF_FILES = @$OBJ_CONF_FILES; |
| | | my @TMP_MIME_TYPES_FILES = @$MIME_TYPES_FILES; |
| | | |
| | | while(scalar(@TMP_OBJ_CONF_FILES) > 0) { |
| | | my $objConfFile = pop(@TMP_OBJ_CONF_FILES); |
| | | exit 1 unless defined isValidFile("$objConfFile"); |
| | | } |
| | | while(scalar(@TMP_MIME_TYPES_FILES) > 0) { |
| | | my $mimeTypesFile = pop(@TMP_MIME_TYPES_FILES); |
| | | exit 1 unless defined isValidFile("$mimeTypesFile"); |
| | | } |
| | | } |
| | | |
| | | # ----------------------------------------------------------------------------- |
| | | # getValidAbsoluteFilePath |
| | | # To get the valid absolute file path |
| | | # ----------------------------------------------------------------------------- |
| | | |
| | | sub getValidAbsoluteFilePath { |
| | | my ($file) = @_; |
| | | |
| | | if (defined $file) { |
| | | my ($fileName,$filePath,$fileNameSuffix) = fileparse("$file"); |
| | | if ($fileName eq $file) { |
| | | $file = "$INSTANCE_ROOT/$INSTANCE_NAME/config/$fileName"; |
| | | } |
| | | |
| | | $file = undef unless defined isValidFile($file); |
| | | } |
| | | |
| | | return $file; |
| | | } |
| | | |
| | | # ----------------------------------------------------------------------------- |
| | | # getValidAbsoluteFilePath |
| | | # Valid file check |
| | | # ----------------------------------------------------------------------------- |
| | | |
| | | sub isValidFile { |
| | | my ($file) = @_; |
| | | my $status = undef; |
| | | |
| | | if (-e "$file") { |
| | | if (-w "$file") { |
| | | $status = 1; |
| | | } else { |
| | | print "\nERROR: $file is not writable. \n\n"; |
| | | exit 1; |
| | | } |
| | | } else { |
| | | print "\nERROR: $file not found, $! \n\n"; |
| | | exit 1; |
| | | } |
| | | |
| | | return $status; |
| | | } |
| | | |
| | | # ----------------------------------------------------------------------------- |
| | | # detectDefaultChildren |
| | | # detect current architecture and come up with default values. |
| | | # set default value to a higher value on Niagara based servers. |
| | | # ----------------------------------------------------------------------------- |
| | | sub detectDefaultChildren { |
| | | my $default = 2; |
| | | if ($OSNAME =~ /SOLARIS/i) { |
| | | if (-x "/bin/uname") { |
| | | my $type = qx(/bin/uname -m); |
| | | chomp($type); |
| | | $default *= 3 if ($type =~ /sun4u/i); |
| | | $default *= 6 if ($type =~ /sun4v/); |
| | | } |
| | | } |
| | | return $default; |
| | | } |
| | | |
| | | # ----------------------------------------------------------------------------- |
| | | # printUsage |
| | | # print the usage command |
| | | # ----------------------------------------------------------------------------- |
| | | |
| | | sub printUsage { |
| | | print "This script will configure a web server instance to run PHP scripts\n" . |
| | | "either as FastCGI or NSAPI \n". |
| | | "usage : \n" . |
| | | " setupPHP -instancename=<instance name> [-sapi=fastcgi|nsapi]\n" . |
| | | "Examples:\n" . |
| | | "\n". |
| | | "This below example configures Web Server to run PHP in FastCGI mode (Default)\n". |
| | | " setupPHP -instancename=https-php\n" . |
| | | "\n". |
| | | "This below example configures Web Server to run PHP in NSAPI mode\n". |
| | | " setupPHP -instancename=https-php -sapi=nsapi\n"; |
| | | exit 1; |
| | | } |
| | | |
| | | # ----------------------------------------------------------------------------- |
| | | # printResult |
| | | # print the post setup steps |
| | | # ----------------------------------------------------------------------------- |
| | | |
| | | sub printResult { |
| | | #remove "https-" from the instance name and use it as the config name |
| | | my $configName = undef; |
| | | $configName = $INSTANCE_NAME; |
| | | $configName = substr($INSTANCE_NAME, 6) if ($INSTANCE_NAME =~ /^https/); |
| | | my $result = <<__UP_TO_THIS_POINT_; |
| | | |
| | | Setup was sucessful. |
| | | -------------------- |
| | | |
| | | The following steps are necessary to make the changes to all the nodes. |
| | | |
| | | (1) Start the admin server |
| | | |
| | | $INSTALL_ROOT/admin-server/bin/startserv |
| | | |
| | | (2) Connect to the admin server using wadm command |
| | | |
| | | $INSTALL_ROOT/bin/wadm [--user=admin-user] [--password-file=admin-pswd-file] [--host=admin-host] [--port=admin-port] |
| | | |
| | | (3) Pull the modified config from the node to config store |
| | | using the following command in wadm console: |
| | | |
| | | pull-config --config=$configName nodehost |
| | | |
| | | For Example: If the host name for the node is xyz.com then enter the command like, |
| | | |
| | | pull-config --config=$configName xyz.com |
| | | |
| | | (4) Deploy the new changes to all nodes using |
| | | the following command in wadm console: |
| | | |
| | | deploy-config $configName |
| | | |
| | | |
| | | __UP_TO_THIS_POINT_ |
| | | print $result; |
| | | } |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | Alias /stats/apc "/usr/php/5.2/samples/apc" |
| | | <Directory "/usr/php/5.2/samples/apc"> |
| | | Order Deny,Allow |
| | | Allow from localhost |
| | | DirectoryIndex apc.php |
| | | </Directory> |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | Alias /stats/memcache "/usr/php/5.2/samples/memcache" |
| | | <Directory "/usr/php/5.2/samples/memcache"> |
| | | Order Deny,Allow |
| | | Allow from localhost |
| | | DirectoryIndex memcache.php |
| | | </Directory> |
New file |
| | |
| | | '\" te |
| | | .\" Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | .TH php 1 "01 Aug 2008" "SunOS 5.11" "User Commands" |
| | | |
| | | .SH "NAME" |
| | | php \- PHP Command Line Interface |
| | | |
| | | .SH "SYNOPSIS" |
| | | .PP |
| | | .nf |
| | | php [options] [ -f ] file [[--] args...] |
| | | php [options] -r code [[--] args...] |
| | | php [options] [-B code] -R code [-E code] [[--] args...] |
| | | php [options] [-B code] -F file [-E code] [[--] args...] |
| | | php [options] -- [ args...] |
| | | php [options] -a |
| | | .fi |
| | | .PP |
| | | .nf |
| | | php-config [options] --prefix |
| | | php-config [options] --includes |
| | | php-config [options] --ldflags |
| | | php-config [options] --libs |
| | | php-config [options] --extension-dir |
| | | php-config [options] --include-dir |
| | | php-config [options] --php-binary |
| | | php-config [options] --version |
| | | php-config [options] --vernum |
| | | .fi |
| | | .PP |
| | | .nf |
| | | phpize [options] --clean |
| | | phpize [options] --help |
| | | phpize [options] --version |
| | | phpize -v |
| | | .fi |
| | | .SH "DESCRIPTION" |
| | | .PP |
| | | For ease of access, the PHP manual has been split up into its |
| | | three main components. |
| | | .SH "OVERVIEW" |
| | | .PP |
| | | .nf |
| | | php |
| | | php-config |
| | | phpize |
| | | .fi |
| | | .SH "PLATFORM-SPECIFIC" |
| | | .PP |
| | | If you are new to PHP, you should start with the PHP documentation, |
| | | which is located in /usr/php/doc. |
| | | .PP |
| | | The man pages listed above are installed in the /usr/php/man |
| | | directory. |
| | | .PP |
| | | Extensive additional documentation for PHP Extensions is available. |
| | | This additional documentation is in the /usr/php/doc directory. |
| | | .PP |
| | | You can view PHP's documentation with man(1) by including |
| | | /usr/php/man in the MANPATH environment variable. Please note that |
| | | running catman(1M) on the PHP manual pages is not supported. For |
| | | other Solaris-specific details, see the NOTES section below. |
| | | .SH "ATTRIBUTES" |
| | | See attributes(5) for descriptions of the following attributes: |
| | | .sp |
| | | .TS |
| | | tab() allbox; |
| | | cw(2.750000i)| cw(2.750000i) |
| | | lw(2.750000i)| lw(2.750000i). |
| | | ATTRIBUTE TYPEATTRIBUTE VALUE |
| | | AvailabilityT{ |
| | | web/php-52, web/php-52/documentation, web/php-52/extension/php-mysql |
| | | T} |
| | | Interface StabilityUncommitted\&. |
| | | .TE |
| | | .sp |
| | | .SH "SEE ALSO" |
| | | .nf |
| | | http://www.php.net/ PHP Home Page |
| | | http://www.php.net/docs.php PHP Documentation Page |
| | | http://pear.php.net/ PEAR Repository |
| | | http://pecl.php.net/ PECL Repository |
| | | .fi |
| | | .SH "NOTES" |
| | | .PP |
| | | PHP has been built to be largefile-aware and to use |
| | | 64-bit integers, although the interpreter and the library |
| | | themselves are 32-bit applications (LP32). |
| | | .PP |
| | | If you wish to build and install PHP add-on modules from PECL, |
| | | you can do so using the phpize script - see phpize(1) for |
| | | details. |
| | | .PP |
| | | PHP is a recursive acronym which stands for PHP Hypertext Pages. |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | # |
| | | # Cause PHP5 to work with Apache pre-fork MPM(32-bit) only. |
| | | # Load this module only if not loaded already |
| | | # |
| | | <IfDefine !64bit> |
| | | <IfModule prefork.c> |
| | | <IfModule !mod_php5.c> |
| | | LoadModule php5_module libexec/mod_php5.so |
| | | </IfModule> |
| | | </IfModule> |
| | | </IfDefine> |
| | | |
| | | <IfModule mod_php5.c> |
| | | # |
| | | # Cause the PHP interpreter handle files with a .php extension. |
| | | # |
| | | AddHandler application/x-httpd-php .php5 |
| | | AddHandler application/x-httpd-php .php |
| | | AddHandler application/x-httpd-php-source .php5s |
| | | AddHandler application/x-httpd-php-source .phps |
| | | |
| | | # |
| | | # Add index.php to the list of files that will be served as directory |
| | | # indexes. |
| | | # |
| | | DirectoryIndex index.php |
| | | DirectoryIndex index.php5 |
| | | </IfModule> |
| | | |
| | | <IfModule !mod_php5.c> |
| | | <IfModule mod_fcgid.c> |
| | | # |
| | | # Cause the PHP interpreter to be invoked via FastCGI to handle files |
| | | # with a .php extension. |
| | | # |
| | | FcgidWrapper "/usr/php/5.2/bin/php-cgi" .php |
| | | FcgidWrapper "/usr/php/5.2/bin/php-cgi" .php5 |
| | | |
| | | FcgidCmdOptions /usr/php/5.2/bin/php-cgi \ |
| | | InitialEnv PHP_FCGI_MAX_REQUESTS=10000 \ |
| | | InitialEnv PHP_FCGI_CHILDREN=0 \ |
| | | MaxRequestsPerProcess 10000 |
| | | |
| | | # Match .php or .php5 files and enable execution via mod_fcgid |
| | | <FilesMatch "\.php5?$"> |
| | | SetHandler fcgid-script |
| | | Options +ExecCGI |
| | | </FilesMatch> |
| | | |
| | | # |
| | | # Add index.php to the list of files that will be served as directory |
| | | # indexes. |
| | | # |
| | | DirectoryIndex index.php |
| | | DirectoryIndex index.php5 |
| | | </IfModule> |
| | | </IfModule> |
New file |
| | |
| | | Oracle elects to use only the GNU Lesser General Public License version |
| | | 2.1 (LGPL)/GNU General Public License version 2 (GPL) for any software |
| | | where a choice of LGPL/GPL license versions are made available with the |
| | | language indicating that LGPLv2.1/GPLv2 or any later version may be |
| | | used, or where a choice of which version of the LGPL/GPL is applied is |
| | | unspecified. Unless specifically stated otherwise, where a choice |
| | | exists between another license and either the GPL or the LGPL, Oracle |
| | | chooses the other license. |
| | | ==================================================================== |
| | | |
| | | |
| | | /* |
| | | * -------------------------------------------------------------------- |
| | | * The PHP License, version 3.01 |
| | | * Copyright (c) 1999 - 2006 The PHP Group. All rights reserved. |
| | | * -------------------------------------------------------------------- |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, is permitted provided that the following conditions |
| | | * are met: |
| | | * |
| | | * 1. Redistributions of source code must retain the above copyright |
| | | * notice, this list of conditions and the following disclaimer. |
| | | * |
| | | * 2. Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in |
| | | * the documentation and/or other materials provided with the |
| | | * distribution. |
| | | * |
| | | * 3. The name "PHP" must not be used to endorse or promote products |
| | | * derived from this software without prior written permission. For |
| | | * written permission, please contact group@php.net. |
| | | * |
| | | * 4. Products derived from this software may not be called "PHP", nor |
| | | * may "PHP" appear in their name, without prior written permission |
| | | * from group@php.net. You may indicate that your software works in |
| | | * conjunction with PHP by saying "Foo for PHP" instead of calling |
| | | * it "PHP Foo" or "phpfoo" |
| | | * |
| | | * 5. The PHP Group may publish revised and/or new versions of the |
| | | * license from time to time. Each version will be given a |
| | | * distinguishing version number. |
| | | * Once covered code has been published under a particular version |
| | | * of the license, you may always continue to use it under the terms |
| | | * of that version. You may also choose to use such covered code |
| | | * under the terms of any subsequent version of the license |
| | | * published by the PHP Group. No one other than the PHP Group has |
| | | * the right to modify the terms applicable to covered code created |
| | | * under this License. |
| | | * |
| | | * 6. Redistributions of any form whatsoever must retain the following |
| | | * acknowledgment: |
| | | * "This product includes PHP software, freely available from |
| | | * <http://www.php.net/software/>". |
| | | * |
| | | * THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND |
| | | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| | | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
| | | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP |
| | | * DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
| | | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| | | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| | | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| | | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| | | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| | | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| | | * OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | * |
| | | * -------------------------------------------------------------------- |
| | | * |
| | | * This software consists of voluntary contributions made by many |
| | | * individuals on behalf of the PHP Group. |
| | | * |
| | | * The PHP Group can be contacted via Email at group@php.net. |
| | | * |
| | | * For more information on the PHP Group and the PHP project, |
| | | * please see <http://www.php.net>. |
| | | * |
| | | * PHP includes the Zend Engine, freely available at |
| | | * <http://www.zend.com>. |
| | | */ |
| | | |
| | | |
| | | |
| | | libbcmath: |
| | | |
| | | /* |
| | | Copyright (C) 1991, 1992, 1993, 1994, 1997 Free Software Foundation, Inc. |
| | | Copyright (C) 2000 Philip A. Nelson |
| | | |
| | | This library is free software; you can redistribute it and/or |
| | | modify it under the terms of the GNU Lesser General Public |
| | | License as published by the Free Software Foundation; either |
| | | version 2 of the License, or (at your option) any later version. |
| | | |
| | | This library is distributed in the hope that it will be useful, |
| | | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| | | Lesser General Public License for more details. (COPYING.LIB) |
| | | |
| | | You should have received a copy of the GNU Lesser General Public |
| | | License along with this library; if not, write to: |
| | | |
| | | The Free Software Foundation, Inc. |
| | | 59 Temple Place, Suite 330 |
| | | Boston, MA 02111-1307 USA. |
| | | |
| | | You may contact the author by: |
| | | e-mail: philnelson@acm.org |
| | | us-mail: Philip A. Nelson |
| | | Computer Science Department, 9062 |
| | | Western Washington University |
| | | Bellingham, WA 98226-9062 |
| | | |
| | | *************************************************************************/ |
| | | |
| | | |
| | | libmbfl: |
| | | |
| | | /* |
| | | * "streamable kanji code filter and converter" |
| | | * Copyright (c) 1998-2002 HappySize, Inc. All rights reserved. |
| | | * |
| | | * LICENSE NOTICES |
| | | * |
| | | * This file is part of "streamable kanji code filter and converter", |
| | | * which is distributed under the terms of GNU Lesser General Public |
| | | * License (version 2) as published by the Free Software Foundation. |
| | | * |
| | | * This software is distributed in the hope that it will be useful, |
| | | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| | | * GNU Lesser General Public License for more details. |
| | | * |
| | | * You should have received a copy of the GNU Lesser General Public |
| | | * License along with "streamable kanji code filter and converter"; |
| | | * if not, write to the Free Software Foundation, Inc., 59 Temple Place, |
| | | * Suite 330, Boston, MA 02111-1307 USA |
| | | * |
| | | * The author of this file: |
| | | * |
| | | */ |
| | | |
| | | |
| | | |
| | | PHP SERVER EXTENSIONS: |
| | | |
| | | The PHP Server includes a number of additional extensions with |
| | | separate copyright notices and license terms. Your use of the source |
| | | code for the these extensions is subject to the terms and |
| | | conditions of the following licenses. |
| | | |
| | | For tcpwrap extension: |
| | | /* |
| | | * +----------------------------------------------------------------------+ |
| | | * | PHP Version 4 | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Copyright (c) 1997-2003 The PHP Group | |
| | | * +----------------------------------------------------------------------+ |
| | | * | This source file is subject to version 2.02 of the PHP license, | |
| | | * | that is bundled with this package in the file LICENSE, and is | |
| | | * | available at through the world-wide-web at | |
| | | * | http://www.php.net/license/2_02.txt. | |
| | | * | If you did not receive a copy of the PHP license and are unable to | |
| | | * | obtain it through the world-wide-web, please send a note to | |
| | | * | license@php.net so we can mail you a copy immediately. | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Author: Marcin Gibula <mg@iceni.pl> | |
| | | * +----------------------------------------------------------------------+ |
| | | * |
| | | * |
| | | */ |
| | | |
| | | For suhosin extension (covered under multiple licenses): |
| | | /* |
| | | * +----------------------------------------------------------------------+ |
| | | * | Suhosin Version 1 | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Copyright (c) 2006 The Hardened-PHP Project | |
| | | * +----------------------------------------------------------------------+ |
| | | * | This source file is subject to version 3.01 of the PHP license, | |
| | | * | that is bundled with this package in the file LICENSE, and is | |
| | | * | available through the world-wide-web at the following url: | |
| | | * | http://www.php.net/license/3_01.txt | |
| | | * | If you did not receive a copy of the PHP license and are unable to | |
| | | * | obtain it through the world-wide-web, please send a note to | |
| | | * | license@php.net so we can mail you a copy immediately. | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Author: Stefan Esser <sesser@hardened-php.net> | |
| | | * +----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | /* |
| | | * +----------------------------------------------------------------------+ |
| | | * | PHP Version 5 | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Copyright (c) 1997-2005 The PHP Group | |
| | | * +----------------------------------------------------------------------+ |
| | | * | This source file is subject to version 3.0 of the PHP license, | |
| | | * | that is bundled with this package in the file LICENSE, and is | |
| | | * | available through the world-wide-web at the following url: | |
| | | * | http://www.php.net/license/3_0.txt. | |
| | | * | If you did not receive a copy of the PHP license and are unable to | |
| | | * | obtain it through the world-wide-web, please send a note to | |
| | | * | license@php.net so we can mail you a copy immediately. | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Author: Wez Furlong <wez@omniti.com> | |
| | | * +----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | /* |
| | | +----------------------------------------------------------------------+ |
| | | | PHP Version 4 | |
| | | +----------------------------------------------------------------------+ |
| | | | Copyright (c) 1997-2003 The PHP Group | |
| | | +----------------------------------------------------------------------+ |
| | | | This source file is subject to version 2.02 of the PHP license, | |
| | | | that is bundled with this package in the file LICENSE, and is | |
| | | | available at through the world-wide-web at | |
| | | | http://www.php.net/license/2_02.txt. | |
| | | | If you did not receive a copy of the PHP license and are unable to | |
| | | | obtain it through the world-wide-web, please send a note to | |
| | | | license@php.net so we can mail you a copy immediately. | |
| | | +----------------------------------------------------------------------+ |
| | | | Author: | |
| | | +----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | /* ==================================================================== |
| | | * Copyright (c) 1995-1998 The Apache Group. All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions |
| | | * are met: |
| | | * |
| | | * 1. Redistributions of source code must retain the above copyright |
| | | * notice, this list of conditions and the following disclaimer. |
| | | * |
| | | * 2. Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in |
| | | * the documentation and/or other materials provided with the |
| | | * distribution. |
| | | * |
| | | * 3. All advertising materials mentioning features or use of this |
| | | * software must display the following acknowledgment: |
| | | * "This product includes software developed by the Apache Group |
| | | * for use in the Apache HTTP server project (http://www.apache.org/)." |
| | | * |
| | | * 4. The names "Apache Server" and "Apache Group" must not be used to |
| | | * endorse or promote products derived from this software without |
| | | * prior written permission. |
| | | * |
| | | * 5. Redistributions of any form whatsoever must retain the following |
| | | * acknowledgment: |
| | | * "This product includes software developed by the Apache Group |
| | | * for use in the Apache HTTP server project (http://www.apache.org/)." |
| | | * |
| | | * THIS SOFTWARE IS PROVIDED BY THE APACHE GROUP ``AS IS'' AND ANY |
| | | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| | | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| | | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE APACHE GROUP OR |
| | | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| | | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
| | | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| | | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| | | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| | | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| | | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| | | * OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | * ==================================================================== |
| | | * |
| | | * This software consists of voluntary contributions made by many |
| | | * individuals on behalf of the Apache Group and was originally based |
| | | * on public domain software written at the National Center for |
| | | * Supercomputing Applications, University of Illinois, Urbana-Champaign. |
| | | * For more information on the Apache Group and the Apache HTTP server |
| | | * project, please see <http://www.apache.org/>. |
| | | * |
| | | * This code is based on, and used with the permission of, the |
| | | * SIO stdio-replacement strx_* functions by Panos Tsirigotis |
| | | * <panos@alumni.cs.colorado.edu> for xinetd. |
| | | */ |
| | | |
| | | |
| | | For dtrace extension: |
| | | /* |
| | | * +----------------------------------------------------------------------+ |
| | | * | PHP Version 5 | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Copyright (c) 1997-2005 The PHP Group | |
| | | * +----------------------------------------------------------------------+ |
| | | * | This source file is subject to version 3.0 of the PHP license, | |
| | | * | that is bundled with this package in the file LICENSE, and is | |
| | | * | available through the world-wide-web at the following url: | |
| | | * | http://www.php.net/license/3_0.txt. | |
| | | * | If you did not receive a copy of the PHP license and are unable to | |
| | | * | obtain it through the world-wide-web, please send a note to | |
| | | * | license@php.net so we can mail you a copy immediately. | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Author: Wez Furlong <wez@omniti.com> | |
| | | * +----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | For idn extension: |
| | | /* |
| | | * +----------------------------------------------------------------------+ |
| | | * | PHP Version 5 | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Copyright (c) 1997-2005 The PHP Group | |
| | | * +----------------------------------------------------------------------+ |
| | | * | This source file is subject to version 3.0 of the PHP license, | |
| | | * | that is bundled with this package in the file LICENSE, and is | |
| | | * | available through the world-wide-web at the following url: | |
| | | * | http://www.php.net/license/3_0.txt. | |
| | | * | If you did not receive a copy of the PHP license and are unable to | |
| | | * | obtain it through the world-wide-web, please send a note to | |
| | | * | license@php.net so we can mail you a copy immediately. | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Author: Wez Furlong <wez@omniti.com> | |
| | | * +----------------------------------------------------------------------+ |
| | | */ |
| | | |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | set name=pkg.fmri value=pkg:/web/server/apache-22/module/apache-php5@5.2.17,$(BUILD_VERSION) |
| | | set name=pkg.summary value="PHP Server for Apache Web Server" |
| | | set name=info.classification value="org.opensolaris.category.2008:Web Services/Application and Web Servers" |
| | | set name=info.source_url value=http://us.php.net/get/php-5.2.17.tar.gz/from/this/mirror |
| | | set name=info.upstream_url value=http://www.php.net/ |
| | | set name=opensolaris.arc_url \ |
| | | value=http://arc.opensolaris.org/caselog/LSARC/2008/538 |
| | | set name=org.opensolaris.consolidation value=$(CONSOLIDATION) |
| | | |
| | | license apache-php5.license license='PHP, GPLv2, LGPLv2, Apache v2.0' |
| | | |
| | | dir path=etc |
| | | dir path=etc/apache2 |
| | | dir path=etc/apache2/2.2 |
| | | dir path=etc/apache2/2.2/conf.d |
| | | dir path=usr |
| | | dir path=usr/apache2 |
| | | dir path=usr/apache2/2.2 |
| | | dir path=usr/apache2/2.2/libexec |
| | | file path=etc/apache2/2.2/conf.d/php5.2.conf mode=0644 \ |
| | | original_name=SUNWapch22-php52:etc/apache2/2.2/conf.d/php5.2.conf \ |
| | | preserve=renamenew |
| | | file path=usr/apache2/2.2/libexec/mod_php5.2.so |
| | | link path=usr/apache2/2.2/libexec/mod_php5.so target=mod_php5.2.so |
| | | |
| | | legacy pkg=SUNWapch22r-php52 \ |
| | | desc="PHP 5.2 module for Apache Web Server V2.2 (Root)" \ |
| | | name="PHP 5.2 module for Apache Web Server V2.2 (Root)" |
| | | legacy pkg=SUNWapch22m-php52 \ |
| | | desc="PHP Server 5.2 module for Apache Web Server V2.2" \ |
| | | name="PHP Server 5.2 module for Apache Web Server V2.2" |
| | | |
| | | depend fmri=web/php-52@5.2.17 type=require |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | PHP_REL= 5.2 |
| | | |
| | | TOP_DIR=/usr/php/$(PHP_REL) |
| | | CONF_DIR=/etc/php/$(PHP_REL) |
| | | ZTS_MODULES_DIR=$(TOP_DIR)/zts-modules |
| | | |
| | | APACHE_VERSION_DIR=2.2 |
| | | APACHE_DIR_PREFIX=apache2/$(APACHE_VERSION_DIR) |
| | | APACHE_USR_PREFIX=/usr/$(APACHE_DIR_PREFIX) |
| | | APACHE_VAR_PREFIX=/var/$(APACHE_DIR_PREFIX) |
| | | APACHE_ETC_PREFIX=/etc/$(APACHE_DIR_PREFIX) |
| | | APACHE2_SAMPLES_CONFDIR=$(APACHE_ETC_PREFIX)/samples-conf.d |
| | | APACHE2_CONFDIR=$(APACHE_ETC_PREFIX)/conf.d |
| | | APACHE2_EXTDIR=$(APACHE_USR_PREFIX)/libexec |
| | | PHP_ROOT=/usr/php/$(PHP_REL) |
| | | PHP_BIN=$(PHP_ROOT)/bin |
| | | PHP_LIB=$(PHP_ROOT)/lib |
| | | PHP_ROOT_EXT=$(PHP_ROOT)/modules |
| | | PHP_ROOT_ZTS_EXT=$(PHP_ROOT)/zts-modules |
| | | EXTDIR=$(TOP_DIR)/modules |
| | | CONFDIR=/etc/php/$(PHP_REL) |
| | | MODULES_CONFDIR=$(CONFDIR)/conf.d |
| | | NSAPI_CONFDIR=/etc/php/$(PHP_REL)/nsapi |
| | | ZTS_MODULES_CONFDIR=$(CONFDIR)/zts-conf.d |
| | | COPYRIGHT_TMPL=$(COMPONENT_DIR)/../Solaris/copyright.tmpl |
| | | DOCDIR=$(PHP_ROOT)/doc |
| | | SCRIPTS_DIR=$(PHP_ROOT)/samples/scripts |
| | | |
| | | IMAP_DIR = $(COMPONENT_DIR)/../imap/build/$(MACH32) |
| | | IMAP_CLIENT_DIR = $(IMAP_DIR)/c-client |
| | | MODULES_DIR = $(TOP_DIR)/modules |
| | | MODULES_CONF_DIR=$(CONF_DIR)/conf.d |
| | | MYSQL_DIR = /usr/mysql/5.1 |
| | | MYSQL_LIBDIR=/usr/mysql/5.1/lib/mysql |
| | | PHP_SAPI_BUILD = $(COMPONENT_DIR)/../php-sapi/build/$(MACH32) |
| | | PEAR_DIR=/var/php/$(PHP_REL)/pear |
| | | |
| | | |
| | | COMMON_CONFIG_OPTIONS= \ |
| | | --bindir=$(TOP_DIR)/bin \ |
| | | --datadir=$(TOP_DIR)/share \ |
| | | --disable-dbase \ |
| | | --disable-debug \ |
| | | --disable-dmalloc \ |
| | | --disable-inline-optimization \ |
| | | --disable-libgcc \ |
| | | --disable-libtool-lock \ |
| | | --disable-rpath \ |
| | | --disable-static \ |
| | | --enable-bcmath \ |
| | | --enable-calendar \ |
| | | --enable-ctype \ |
| | | --enable-cli \ |
| | | --enable-dom \ |
| | | --enable-dtrace \ |
| | | --enable-exif \ |
| | | --enable-flatfile \ |
| | | --enable-filter \ |
| | | --enable-gd-jis-conv \ |
| | | --enable-gd-native-ttf \ |
| | | --enable-hash \ |
| | | --enable-inifile \ |
| | | --enable-ipv6 \ |
| | | --enable-json \ |
| | | --enable-magic-quotes \ |
| | | --enable-mbregex \ |
| | | --enable-mbstring \ |
| | | --enable-mod-charset \ |
| | | --enable-pcntl \ |
| | | --enable-posix \ |
| | | --enable-reflection \ |
| | | --with-libxml-dir=/usr \ |
| | | --enable-libxml \ |
| | | --enable-sqlite-utf8 \ |
| | | --enable-session \ |
| | | --enable-shared \ |
| | | --enable-shmop \ |
| | | --enable-short-tags \ |
| | | --enable-simplexml \ |
| | | --enable-soap \ |
| | | --enable-sockets \ |
| | | --enable-spl \ |
| | | --enable-sysvmsg \ |
| | | --enable-sysvsem \ |
| | | --enable-sysvshm \ |
| | | --enable-tokenizer \ |
| | | --enable-xml \ |
| | | --enable-xmlreader \ |
| | | --enable-xmlwriter \ |
| | | --enable-zend-multibyte \ |
| | | --enable-zip \ |
| | | --exec-prefix=$(TOP_DIR) \ |
| | | --includedir=$(TOP_DIR)/include \ |
| | | --libdir=$(TOP_DIR)/lib \ |
| | | --libexecdir=$(TOP_DIR)/modules \ |
| | | --mandir=$(TOP_DIR)/man \ |
| | | --oldincludedir=$(TOP_DIR)/share \ |
| | | --prefix=$(TOP_DIR) \ |
| | | --sbindir=$(TOP_DIR)/sbin \ |
| | | --sysconfdir=$(CONF_DIR) \ |
| | | --with-cdb \ |
| | | --with-exec-dir=$(TOP_DIR)/bin \ |
| | | --with-freetype-dir=/usr/sfw \ |
| | | --with-jpeg-dir=/usr \ |
| | | --with-kerberos \ |
| | | --with-layout=PHP \ |
| | | --with-mcrypt=shared,/usr \ |
| | | --with-pcre-dir=/usr \ |
| | | --with-pcre-regex \ |
| | | --with-png-dir=/usr \ |
| | | --with-xmlrpc \ |
| | | --with-xpm-dir=/usr/X11 \ |
| | | --with-xsl \ |
| | | --with-zlib \ |
| | | --with-zend-vm=CALL \ |
| | | --without-dbm \ |
| | | --without-t1lib |
| | | |
| | | |
| | | studio_C99MODE = $(studio_99_ENABLE) |
| | | studio_cplusplus_C99MODE = $(studio_cplusplus_C99_ENABLE) |
| | | CPPFLAGS += -D_POSIX_PTHREAD_SEMANTICS |
| | | CPPFLAGS += $(CPP_LARGEFILES) |
| | | CPPFLAGS += -I$(IMAP_CLIENT_DIR) |
| | | CPPFLAGS += -I../CPPFLAGSTEST |
| | | LIBS = -lsocket -lnsl -ldl -lposix4 |
| | | LD = $(CXX) $(studio_NORUNPATH) |
| | | LDFLAGS += -L$(MYSQL_LIBDIR) -lrt -L$(IMAP_CLIENT_DIR) |
| | | |
| | | CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" |
| | | CONFIGURE_OPTIONS += CPPFLAGS="$(CPPFLAGS)" |
| | | CONFIGURE_OPTIONS += LD="$(LD)" |
| | | CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)" |
| | | CONFIGURE_OPTIONS += PATH="$(PATH):/usr/sbin" |
| | | |
| | | CONF_ENVLINE += \ |
| | | LIBS="$(LIBS)" \ |
| | | EXTENSION_DIR=$(MODULES_DIR) \ |
| | | PHP_PEAR_CACHE_DIR=/var/tmp/pear/cache \ |
| | | PHP_PEAR_DOWNLOAD_DIR=/var/tmp/pear/cache \ |
| | | PHP_PEAR_EXTENSION_DIR=/var/php/$(PHP_REL)/modules \ |
| | | PHP_PEAR_INSTALL_DIR=/var/php/$(PHP_REL)/pear \ |
| | | PHP_PEAR_SIG_BIN=/usr/gnu/bin/gpg \ |
| | | DESTDIR=$(PROTO_DIR) \ |
| | | INSTALL_ROOT=$(PROTO_DIR) \ |
| | | INSTALL=$(INSTALL) |
| | | |
| | | PHP_ZTS_CFLAGS=-mt -D_REENTRANT |
| | | ZTS_MODULES_CONF_DIR=$(CONF_DIR)/zts-conf.d |
| | | |
| | | |
| | | ZTS_CONF_ENVLINE= \ |
| | | CC=$(CC) \ |
| | | CXX=$(CXX) \ |
| | | CPPFLAGS="-I../CPPFLAGSTEST -D_POSIX_PTHREAD_SEMANTICS" \ |
| | | CFLAGS="$(CFLAGS) $(PHP_ZTS_CFLAGS)" \ |
| | | LDFLAGS="-L$(MYSQL_LIBDIR) -lrt" \ |
| | | LIBS="$(LIBS)" \ |
| | | EXTENSION_DIR=$(ZTS_MODULES_DIR) \ |
| | | DESTDIR=$(PROTO_DIR) \ |
| | | INSTALL_ROOT=$(PROTO_DIR) \ |
| | | INSTALL=$(INSTALL) |
| | | |
| | | ENVLINE= \ |
| | | $(CONF_ENVLINE) |
| | | |
| | | ZTS_ENVLINE= \ |
| | | $(ZTS_CONF_ENVLINE) |
| | | |
| | | COMPONENT_BUILD_ENV += PATH="$(PATH):/usr/sbin" |
| | | COMPONENT_INSTALL_ENV += $(CONFIGURE_ENV) |
| | | |
| | | COMPONENT_TEST_ENV += $(CONFIGURE_ENV) |
| | | COMPONENT_TEST_TARGETS = test |
| | | |
| | | FIX_CONFIG_FILES = ( \ |
| | | $(MKDIR) $(COMPONENT_DIR)/tmp; \ |
| | | cd $(COMPONENT_DIR)/tmp; \ |
| | | $(MKDIR) $(PROTO_DIR)/$(MODULES_CONFDIR); \ |
| | | $(MKDIR) $(PROTO_DIR)/$(ZTS_MODULES_CONFDIR); \ |
| | | for conffile in ../config/*.ini; do \ |
| | | ext=$${conffile\#\#*/}; \ |
| | | $(INSTALL) -m 644 $${conffile} \ |
| | | $(PROTO_DIR)/$(MODULES_CONFDIR)/$${ext}; \ |
| | | $(GSED) -e "s@zend_extension=$(PHP_ROOT_EXT)@zend_extension=$(PHP_ROOT_ZTS_EXT)@" < $${conffile} > tmp; \ |
| | | $(INSTALL) -m 644 tmp \ |
| | | $(PROTO_DIR)/$(ZTS_MODULES_CONFDIR)/$${ext}; \ |
| | | done; \ |
| | | ) |
| | | |
| | | |
| | | # Prepare configuration files for each extension |
| | | # By default, disable following 3rd party extensions: |
| | | # xdebug suhosin |
| | | FIX_CONFIG_FILES_2 = ( \ |
| | | $(MKDIR) $(COMPONENT_DIR)/tmp; \ |
| | | cd $(COMPONENT_DIR)/tmp; \ |
| | | $(MKDIR) $(PROTO_DIR)/$(MODULES_CONFDIR); \ |
| | | $(MKDIR) $(PROTO_DIR)/$(ZTS_MODULES_CONFDIR); \ |
| | | for module in $(PROTO_DIR)/$(EXTDIR)/*.so; do \ |
| | | module=$${module%.so}; \ |
| | | ext=$${module\#\#*/}; \ |
| | | echo "extension=$${ext}.so" > $${ext}.ini; \ |
| | | $(INSTALL) -m 644 $${ext}.ini \ |
| | | $(PROTO_DIR)/$(MODULES_CONFDIR)/$${ext}.ini; \ |
| | | $(INSTALL) -m 644 $${ext}.ini \ |
| | | $(PROTO_DIR)/$(ZTS_MODULES_CONFDIR)/$${ext}.ini; \ |
| | | done; \ |
| | | ) |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | include $(WS_TOP)/make-rules/prep.mk |
| | | include $(WS_TOP)/make-rules/configure.mk |
| | | include $(WS_TOP)/make-rules/ips.mk |
| | | |
| | | include ../common.mk |
| | | |
| | | # NOTE: this phpize-proto comes from nsapi while |
| | | # php-config-proto comes from sapi |
| | | COMPONENT_PRE_CONFIGURE_ACTION = ( \ |
| | | ($(CLONEY) $(SOURCE_DIR) $(@D)); \ |
| | | $(GSED) -e "s@^builddir=.*@builddir=$(BUILD_DIR_32)@" \ |
| | | < $(COMPONENT_DIR)/../php-nsapi/phpize-proto.zts \ |
| | | > $(COMPONENT_DIR)/phpize-proto.zts; \ |
| | | cd $(BUILD_DIR_32); \ |
| | | $(ENV) -i $(ZTS_ENVLINE) $(CONFIG_SHELL) \ |
| | | $(COMPONENT_DIR)/phpize-proto.zts) |
| | | |
| | | |
| | | CONFIGURE_OPTIONS += \ |
| | | --with-php-config=$(COMPONENT_DIR)/../php-sapi/php-config-proto.zts |
| | | |
| | | CONFIGURE_ENV += $(ZTS_ENVLINE) |
| | | CONFIGURE_SCRIPT = $(BUILD_DIR_32)/configure |
| | | CPPFLAGS += -I$(PHP_SAPI_BUILD)/Zend |
| | | CPPFLAGS += -I$(PHP_SAPI_BUILD)/TSRM |
| | | CPPFLAGS += -I$(PHP_SAPI_BUILD)/main |
| | | |
| | | CLEAN_PATHS += $(COMPONENT_DIR)/phpize-proto.zts package.xml package2.xml |
| | | |
| | | # common targets |
| | | build: $(BUILD_32) |
| | | |
| | | install: $(INSTALL_32) |
| | | |
| | | test: $(TEST_32) |
| | | |
| | | publish: install |
| | | |
| | | # Manual dependency - need both php-sapi and php-nsapi installed |
| | | # before building a -zts extension. |
| | | ../php-sapi/build/$(MACH32)/.installed: |
| | | (cd ../php-sapi ; $(MAKE) install) |
| | | |
| | | ../php-nsapi/build/$(MACH32)/.installed: |
| | | (cd ../php-nsapi ; $(MAKE) install) |
| | | |
| | | $(BUILD_DIR_32)/.configured: ../php-sapi/build/$(MACH32)/.installed |
| | | $(BUILD_DIR_32)/.configured: ../php-nsapi/build/$(MACH32)/.installed |
| | | |
| | | BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
| | | |
| | | include $(WS_TOP)/make-rules/depend.mk |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | include $(WS_TOP)/make-rules/prep.mk |
| | | include $(WS_TOP)/make-rules/configure.mk |
| | | include $(WS_TOP)/make-rules/ips.mk |
| | | |
| | | include ../common.mk |
| | | |
| | | COMPONENT_PRE_CONFIGURE_ACTION = ( \ |
| | | ($(CLONEY) $(SOURCE_DIR) $(@D)); \ |
| | | $(GSED) -e "s@^builddir=.*@builddir=$(BUILD_DIR_32)@" \ |
| | | < $(COMPONENT_DIR)/../php-sapi/phpize-proto \ |
| | | > $(COMPONENT_DIR)/phpize-proto; \ |
| | | cd $(BUILD_DIR_32); \ |
| | | $(ENV) -i $(ENVLINE) $(CONFIG_SHELL) $(COMPONENT_DIR)/phpize-proto) |
| | | |
| | | |
| | | CONFIGURE_OPTIONS += \ |
| | | --with-php-config=$(COMPONENT_DIR)/../php-sapi/php-config-proto |
| | | |
| | | CONFIGURE_ENV += $(ENVLINE) |
| | | CONFIGURE_SCRIPT = $(BUILD_DIR_32)/configure |
| | | CPPFLAGS += -I$(PHP_SAPI_BUILD)/Zend |
| | | CPPFLAGS += -I$(PHP_SAPI_BUILD)/TSRM |
| | | CPPFLAGS += -I$(PHP_SAPI_BUILD)/main |
| | | |
| | | CLEAN_PATHS += $(COMPONENT_DIR)/phpize-proto package.xml package2.xml tmp |
| | | |
| | | # common targets |
| | | build: $(BUILD_32) |
| | | |
| | | install: $(INSTALL_32) |
| | | |
| | | test: $(TEST_32) |
| | | |
| | | # Manual dependency - to build any extension requires php-sapi to be installed |
| | | ../php-sapi/build/$(MACH32)/.installed: |
| | | (cd ../php-sapi ; $(MAKE) install) |
| | | |
| | | $(BUILD_DIR_32)/.configured: ../php-sapi/build/$(MACH32)/.installed |
| | | |
| | | # Manual dependency |
| | | # Need $(COMPONENT_NAME)-zts installed before $(COMPONENT_NAME) publish |
| | | ../$(COMPONENT_NAME)-zts/build/$(MACH32)/.installed: |
| | | (cd ../$(COMPONENT_NAME)-zts ; $(MAKE) install) |
| | | |
| | | $(INSTALL_32): ../$(COMPONENT_NAME)-zts/build/$(MACH32)/.installed |
| | | |
| | | |
| | | BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
| | | |
| | | include $(WS_TOP)/make-rules/depend.mk |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | include ../../../make-rules/shared-macros.mk |
| | | |
| | | COMPONENT_NAME= idn |
| | | COMPONENT_VERSION= 0.2.0 |
| | | COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
| | | COMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz |
| | | COMPONENT_ARCHIVE_HASH= sha1:39406c22ac86d7f30e47261a08fb93cea5dc3f39 |
| | | COMPONENT_ARCHIVE_URL= http://pecl.php.net/get/$(COMPONENT_ARCHIVE) |
| | | COMPONENT_PROJECT_URL= http://pecl.php.net/package/idn |
| | | |
| | | PATCH_DIR = ../idn/patches |
| | | |
| | | include ../extensions-zts.mk |
| | | |
| | | CONFIGURE_OPTIONS += --with-idn |
New file |
| | |
| | | php-5_2/idn-zts: php-5_2/php-sapi php-5_2/php-nsapi |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | include ../../../make-rules/shared-macros.mk |
| | | |
| | | COMPONENT_NAME= idn |
| | | COMPONENT_VERSION= 0.2.0 |
| | | COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
| | | COMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz |
| | | COMPONENT_ARCHIVE_HASH= sha1:39406c22ac86d7f30e47261a08fb93cea5dc3f39 |
| | | COMPONENT_ARCHIVE_URL= http://pecl.php.net/get/$(COMPONENT_ARCHIVE) |
| | | COMPONENT_PROJECT_URL= http://pecl.php.net/package/idn |
| | | |
| | | include ../extensions.mk |
| | | |
| | | CONFIGURE_OPTIONS += --with-idn |
| | | |
| | | COMPONENT_POST_INSTALL_ACTION = ( \ |
| | | $(FIX_CONFIG_FILES_2); \ |
| | | ) |
| | | |
| | | PKG_PROTO_DIRS += $(COMPONENT_DIR)/../idn-zts/build/prototype/$(MACH) |
New file |
| | |
| | | php-5_2/idn: php-5_2/php-sapi |
New file |
| | |
| | | --- idn-0.2.0/config.m4.ORIG Thu Jan 29 11:40:38 2009 |
| | | +++ idn-0.2.0/config.m4 Thu Jan 29 11:42:02 2009 |
| | | @@ -5,8 +5,8 @@ |
| | | [ --with-idn[=DIR] Include GNU Libidn support]) |
| | | |
| | | if test "$PHP_IDN" != "no"; then |
| | | - SEARCH_PATH="/usr/local /usr" |
| | | - SEARCH_FOR="/include/idna.h" |
| | | + SEARCH_PATH="/usr/local /usr" |
| | | + SEARCH_FOR="include/idn/idna.h" |
| | | |
| | | if test -r $PHP_IDN/$SEARCH_FOR; then # path given as parameter |
| | | IDN_DIR=$PHP_IDN |
| | | @@ -33,7 +33,7 @@ |
| | | AC_MSG_RESULT([no]) |
| | | fi |
| | | |
| | | - PHP_ADD_INCLUDE($IDN_DIR/include) |
| | | + PHP_ADD_INCLUDE(/usr/include/idn) |
| | | |
| | | dnl # --with-idn -> check for lib and symbol presence |
| | | LIBNAME=idn |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | include ../../../make-rules/shared-macros.mk |
| | | |
| | | COMPONENT_NAME= imap |
| | | COMPONENT_VERSION= 2007e |
| | | COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
| | | COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
| | | COMPONENT_ARCHIVE_HASH= sha1:ab8bd27de41926acb257b813a95c10d2ab04c6e8 |
| | | # |
| | | # Firefox can download this: |
| | | # ftp://ftp.cac.washington.edu/imap/$(COMPONENT_ARCHIVE) |
| | | # but our downloader cannot. Proxy issue? |
| | | COMPONENT_ARCHIVE_URL= $(EXTERNAL_ARCHIVE_MIRROR)/$(COMPONENT_ARCHIVE) |
| | | |
| | | include $(WS_TOP)/make-rules/prep.mk |
| | | include $(WS_TOP)/make-rules/justmake.mk |
| | | include $(WS_TOP)/make-rules/ips.mk |
| | | |
| | | CFLAGS += $(CPP_LARGEFILES) |
| | | # enable legacy stdio prototypes |
| | | # 7050600 sfw doesn't build on 166 |
| | | CFLAGS += -D__USE_LEGACY_PROTOTYPES__ |
| | | COMPONENT_BUILD_TARGETS = soc c-client |
| | | COMPONENT_POST_BUILD_ACTION = ( \ |
| | | $(MV) $(BUILD_DIR_32)/c-client/c-client.a \ |
| | | $(BUILD_DIR_32)/c-client/libc-client.a ) |
| | | ENV += MAKE="$(GMAKE)" |
| | | ENV += CC="$(CC)" |
| | | ENV += CFLAGS="$(CFLAGS)" |
| | | |
| | | # common targets |
| | | build: $(BUILD_32) |
| | | |
| | | # no install target |
| | | install: build |
| | | |
| | | test: $(NO_TESTS) |
| | | |
| | | publish: build |
| | | |
| | | BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
| | | |
| | | include $(WS_TOP)/make-rules/depend.mk |
New file |
| | |
| | | --- imap-2007e/Makefile.ORIG Mon Sep 15 23:32:12 2008 |
| | | +++ imap-2007e/Makefile Mon Sep 15 23:32:37 2008 |
| | | @@ -293,7 +293,7 @@ |
| | | |
| | | # Make the IMAP Toolkit |
| | | |
| | | -all: c-client SPECIALS rebuild bundled |
| | | +all: c-client SPECIALS rebuild |
| | | |
| | | c-client: |
| | | @echo Not processed yet. In a first-time build, you must specify |
| | | @@ -306,7 +306,7 @@ |
| | | |
| | | # Note on SCO you may have to set LN to "ln". |
| | | |
| | | -a32 a41 aix bs3 bsi d-g d54 do4 drs epx ga4 gas gh9 ghp ghs go5 gsc gsg gso gul h11 hpp hpx lnp lyn mct mnt nec nto nxt nx3 osf os4 ptx qnx sc5 sco sgi sg6 shp sl4 sl5 slx snx soc sol sos uw2: an |
| | | +a32 a41 aix bs3 bsi d-g d54 do4 drs epx ga4 gas gh9 ghp ghs go5 gsc gsg gso gul h11 hpp hpx lnp lyn mct mnt nec nto nxt nx3 osf os4 ptx qnx sc5 sco sgi sg6 shp sl4 sl5 slx snx sol sos uw2: an |
| | | $(BUILD) BUILDTYPE=$@ |
| | | |
| | | # If you use sv4, you may find that it works to move it to use the an process. |
| | | @@ -350,6 +350,10 @@ |
| | | $(BUILD) BUILDTYPE=gso \ |
| | | SPECIALS="SSLINCLUDE=/opt/csw/include/openssl SSLLIB=/opt/csw/lib SSLCERTS=/opt/csw/ssl/certs SSLKEYS=/opt/csw/ssl/certs" |
| | | |
| | | +soc: an |
| | | + $(BUILD) BUILDTYPE=soc \ |
| | | + SPECIALS="CC='$$CC' EXTRACFLAGS='$$CFLAGS' SSLINCLUDE=/usr/include SSLLIB=/usr/lib SSLCERTS=/usr/lib/certs SSLKEYS=/usr/ssl/certs" |
| | | + |
| | | ldb: an |
| | | $(BUILD) BUILDTYPE=lnp IP=$(IP6) \ |
| | | SPECIALS="SSLINCLUDE=/usr/include/openssl SSLLIB=/usr/lib SSLCERTS=/etc/ssl/certs SSLKEYS=/etc/ssl/private GSSINCLUDE=/usr/include GSSLIB=/usr/lib MAILSPOOL=/var/mail" |
| | | @@ -677,7 +681,7 @@ |
| | | $(TOOLS)/$@ "$(LN)" src/tmail tmail |
| | | $(LN) $(TOOLS)/$@ . |
| | | |
| | | -build: OSTYPE rebuild rebuildclean bundled |
| | | +build: OSTYPE rebuild rebuildclean |
| | | |
| | | OSTYPE: |
| | | @$(MAKE) ip$(IP) |
New file |
| | |
| | | --- imap-2007e/src/osdep/unix/Makefile.ORIG Mon Sep 15 23:37:03 2008 |
| | | +++ imap-2007e/src/osdep/unix/Makefile Mon Sep 15 23:37:12 2008 |
| | | @@ -54,7 +54,7 @@ |
| | | |
| | | # Extended flags needed for SSL. You may need to modify. |
| | | |
| | | -SSLDIR=/usr/local/ssl |
| | | +SSLDIR=/usr |
| | | SSLCERTS=$(SSLDIR)/certs |
| | | SSLKEYS=$(SSLCERTS) |
| | | SSLINCLUDE=$(SSLDIR)/include |
| | | @@ -716,9 +716,9 @@ |
| | | SPOOLDIR=/var/spool MAILSPOOL=/var/mail \ |
| | | ACTIVEFILE=/usr/share/news/active \ |
| | | RSHPATH=/usr/bin/rsh \ |
| | | - BASECFLAGS="-g -O -w" \ |
| | | + BASECFLAGS="$$CFLAGS" \ |
| | | BASELDFLAGS="-lsocket -lnsl -lgen" \ |
| | | - RANLIB=true CC=/opt/SUNWspro/bin/cc |
| | | + RANLIB=true CC="$$CC" |
| | | |
| | | |
| | | # Note: It is a long and disgusting story about why cc is set to ucbcc. You |
New file |
| | |
| | | --- imap-2007e/src/osdep/unix/os_soln.h.ORIG Sun Feb 8 18:02:42 2009 |
| | | +++ imap-2007e/src/osdep/unix/os_soln.h Sun Feb 8 18:03:21 2009 |
| | | @@ -37,7 +37,11 @@ |
| | | #include <utime.h> |
| | | #include <syslog.h> |
| | | #include <sys/file.h> |
| | | +#if defined(_FILE_OFFSET_BITS) && (_FILE_OFFSET_BITS == 64) |
| | | +#define NOUSTAT 1 |
| | | +#else |
| | | #include <ustat.h> |
| | | +#endif |
| | | |
| | | |
| | | /* Many versions of SysV get this wrong */ |
New file |
| | |
| | | --- imap-2007e/src/osdep/unix/flocksim.c.ORIG Sun Feb 8 18:01:48 2009 |
| | | +++ imap-2007e/src/osdep/unix/flocksim.c Sun Feb 8 18:01:59 2009 |
| | | @@ -52,7 +52,9 @@ |
| | | char tmp[MAILTMPLEN]; |
| | | int logged = 0; |
| | | struct stat sbuf; |
| | | +#if !defined(NOUSTAT) |
| | | struct ustat usbuf; |
| | | +#endif |
| | | struct flock fl; |
| | | /* lock zero bytes at byte 0 */ |
| | | fl.l_whence = SEEK_SET; fl.l_start = fl.l_len = 0; |
| | | @@ -129,7 +131,9 @@ |
| | | ((vsbuf.f_basetype[0] == 'n') || (vsbuf.f_basetype[0] == 'a'))) |
| | | return 0; |
| | | #endif /* NOFSTATVFS */ |
| | | +#if !defined(NOUSTAT) |
| | | if (!ustat (sbuf.st_dev,&usbuf) && !++usbuf.f_tinode) return 0; |
| | | +#endif |
| | | } |
| | | |
| | | /* do the lock */ |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | include ../../../make-rules/shared-macros.mk |
| | | |
| | | COMPONENT_NAME= memcache |
| | | COMPONENT_VERSION= 2.2.5 |
| | | COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
| | | COMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz |
| | | COMPONENT_ARCHIVE_HASH= sha1:6bc7d8fc9c9b9a247316e35d0cac3fe9dd37b68c |
| | | COMPONENT_ARCHIVE_URL= http://pecl.php.net/get/$(COMPONENT_ARCHIVE) |
| | | COMPONENT_PROJECT_URL= http://pecl.php.net/package/memcache |
| | | |
| | | include ../extensions-zts.mk |
| | | |
| | | CONFIGURE_OPTIONS += \ |
| | | --disable-debug \ |
| | | --enable-memcache \ |
| | | --with-zlib-dir=/usr |
New file |
| | |
| | | php-5_2/memcache-zts: php-5_2/php-sapi php-5_2/php-nsapi |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | include ../../../make-rules/shared-macros.mk |
| | | |
| | | COMPONENT_NAME= memcache |
| | | COMPONENT_VERSION= 2.2.5 |
| | | COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
| | | COMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz |
| | | COMPONENT_ARCHIVE_HASH= sha1:6bc7d8fc9c9b9a247316e35d0cac3fe9dd37b68c |
| | | COMPONENT_ARCHIVE_URL= http://pecl.php.net/get/$(COMPONENT_ARCHIVE) |
| | | COMPONENT_PROJECT_URL= http://pecl.php.net/package/memcache |
| | | |
| | | include ../extensions.mk |
| | | |
| | | CONFIGURE_OPTIONS += \ |
| | | --disable-debug \ |
| | | --enable-memcache \ |
| | | --with-zlib-dir=/usr |
| | | |
| | | COMPONENT_POST_INSTALL_ACTION = ( \ |
| | | $(MKDIR) $(PROTO_DIR)/$(APACHE2_SAMPLES_CONFDIR); \ |
| | | $(INSTALL) -m 0644 $(COMPONENT_DIR)/../Solaris/php-memcache-stats.conf \ |
| | | $(PROTO_DIR)/$(APACHE2_SAMPLES_CONFDIR); \ |
| | | $(MKDIR) $(PROTO_DIR)/usr/php/5.2/samples/memcache; \ |
| | | $(INSTALL) -m 0555 $(SOURCE_DIR)/memcache.php \ |
| | | $(PROTO_DIR)/usr/php/5.2/samples/memcache/memcache.php; \ |
| | | ) ; \ |
| | | $(FIX_CONFIG_FILES) |
| | | |
| | | PKG_PROTO_DIRS += $(COMPONENT_DIR)/../memcache-zts/build/prototype/$(MACH) |
New file |
| | |
| | | extension=memcache.so |
| | | |
| | | ;For detailed Memcache configurations, please visit |
| | | ;http://www.php.net/manual/en/memcache.ini.php |
| | | |
| | | ;Use memcache as a session handler by setting this value to memcache. |
| | | ;session.save_handler="memcache" |
| | | |
| | | ;Use a comma separated list of server urls to use for storage: |
| | | ;session.save_path="udp://127.0.0.1:11211 |
| | | |
| | | ;Controls which strategy to use when mapping keys to servers. |
| | | ;memcache.hash_strategy="consistent" |
New file |
| | |
| | | php-5_2/memcache: php-5_2/php-sapi |
New file |
| | |
| | | Oracle elects to use only the GNU Lesser General Public License version |
| | | 2.1 (LGPL)/GNU General Public License version 2 (GPL) for any software |
| | | where a choice of LGPL/GPL license versions are made available with the |
| | | language indicating that LGPLv2.1/GPLv2 or any later version may be |
| | | used, or where a choice of which version of the LGPL/GPL is applied is |
| | | unspecified. Unless specifically stated otherwise, where a choice |
| | | exists between another license and either the GPL or the LGPL, Oracle |
| | | chooses the other license. |
| | | ==================================================================== |
| | | |
| | | |
| | | /* |
| | | * -------------------------------------------------------------------- |
| | | * The PHP License, version 3.01 |
| | | * Copyright (c) 1999 - 2010 The PHP Group. All rights reserved. |
| | | * -------------------------------------------------------------------- |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, is permitted provided that the following conditions |
| | | * are met: |
| | | * |
| | | * 1. Redistributions of source code must retain the above copyright |
| | | * notice, this list of conditions and the following disclaimer. |
| | | * |
| | | * 2. Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in |
| | | * the documentation and/or other materials provided with the |
| | | * distribution. |
| | | * |
| | | * 3. The name "PHP" must not be used to endorse or promote products |
| | | * derived from this software without prior written permission. For |
| | | * written permission, please contact group@php.net. |
| | | * |
| | | * 4. Products derived from this software may not be called "PHP", nor |
| | | * may "PHP" appear in their name, without prior written permission |
| | | * from group@php.net. You may indicate that your software works in |
| | | * conjunction with PHP by saying "Foo for PHP" instead of calling |
| | | * it "PHP Foo" or "phpfoo" |
| | | * |
| | | * 5. The PHP Group may publish revised and/or new versions of the |
| | | * license from time to time. Each version will be given a |
| | | * distinguishing version number. |
| | | * Once covered code has been published under a particular version |
| | | * of the license, you may always continue to use it under the terms |
| | | * of that version. You may also choose to use such covered code |
| | | * under the terms of any subsequent version of the license |
| | | * published by the PHP Group. No one other than the PHP Group has |
| | | * the right to modify the terms applicable to covered code created |
| | | * under this License. |
| | | * |
| | | * 6. Redistributions of any form whatsoever must retain the following |
| | | * acknowledgment: |
| | | * "This product includes PHP software, freely available from |
| | | * <http://www.php.net/software/>". |
| | | * |
| | | * THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND |
| | | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| | | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
| | | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP |
| | | * DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
| | | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| | | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| | | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| | | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| | | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| | | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| | | * OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | * |
| | | * -------------------------------------------------------------------- |
| | | * |
| | | * This software consists of voluntary contributions made by many |
| | | * individuals on behalf of the PHP Group. |
| | | * |
| | | * The PHP Group can be contacted via Email at group@php.net. |
| | | * |
| | | * For more information on the PHP Group and the PHP project, |
| | | * please see <http://www.php.net>. |
| | | * |
| | | * PHP includes the Zend Engine, freely available at |
| | | * <http://www.zend.com>. |
| | | */ |
| | | |
| | | |
| | | |
| | | libbcmath: |
| | | |
| | | /* |
| | | Copyright (C) 1991, 1992, 1993, 1994, 1997 Free Software Foundation, Inc. |
| | | Copyright (C) 2000 Philip A. Nelson |
| | | |
| | | This library is free software; you can redistribute it and/or |
| | | modify it under the terms of the GNU Lesser General Public |
| | | License as published by the Free Software Foundation; either |
| | | version 2 of the License, or (at your option) any later version. |
| | | |
| | | This library is distributed in the hope that it will be useful, |
| | | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| | | Lesser General Public License for more details. (COPYING.LIB) |
| | | |
| | | You should have received a copy of the GNU Lesser General Public |
| | | License along with this library; if not, write to: |
| | | |
| | | The Free Software Foundation, Inc. |
| | | 59 Temple Place, Suite 330 |
| | | Boston, MA 02111-1307 USA. |
| | | |
| | | You may contact the author by: |
| | | e-mail: philnelson@acm.org |
| | | us-mail: Philip A. Nelson |
| | | Computer Science Department, 9062 |
| | | Western Washington University |
| | | Bellingham, WA 98226-9062 |
| | | |
| | | *************************************************************************/ |
| | | |
| | | |
| | | libmbfl: |
| | | |
| | | /* |
| | | * "streamable kanji code filter and converter" |
| | | * Copyright (c) 1998-2002 HappySize, Inc. All rights reserved. |
| | | * |
| | | * LICENSE NOTICES |
| | | * |
| | | * This file is part of "streamable kanji code filter and converter", |
| | | * which is distributed under the terms of GNU Lesser General Public |
| | | * License (version 2) as published by the Free Software Foundation. |
| | | * |
| | | * This software is distributed in the hope that it will be useful, |
| | | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| | | * GNU Lesser General Public License for more details. |
| | | * |
| | | * You should have received a copy of the GNU Lesser General Public |
| | | * License along with "streamable kanji code filter and converter"; |
| | | * if not, write to the Free Software Foundation, Inc., 59 Temple Place, |
| | | * Suite 330, Boston, MA 02111-1307 USA |
| | | * |
| | | * The author of this file: |
| | | * |
| | | */ |
| | | |
| | | |
| | | |
| | | PHP SERVER EXTENSIONS: |
| | | |
| | | The PHP Server includes a number of additional extensions with |
| | | separate copyright notices and license terms. Your use of the source |
| | | code for the these extensions is subject to the terms and |
| | | conditions of the following licenses. |
| | | |
| | | For dtrace extension: |
| | | /* |
| | | * +----------------------------------------------------------------------+ |
| | | * | PHP Version 5 | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Copyright (c) 1997-2005 The PHP Group | |
| | | * +----------------------------------------------------------------------+ |
| | | * | This source file is subject to version 3.0 of the PHP license, | |
| | | * | that is bundled with this package in the file LICENSE, and is | |
| | | * | available through the world-wide-web at the following url: | |
| | | * | http://www.php.net/license/3_0.txt. | |
| | | * | If you did not receive a copy of the PHP license and are unable to | |
| | | * | obtain it through the world-wide-web, please send a note to | |
| | | * | license@php.net so we can mail you a copy immediately. | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Author: Wez Furlong <wez@omniti.com> | |
| | | * +----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | For bundled imap c-client toolkit: |
| | | /* |
| | | * |
| | | * Apache License |
| | | * Version 2.0, January 2004 |
| | | * http://www.apache.org/licenses/ |
| | | * |
| | | * TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION |
| | | * |
| | | * 1. Definitions. |
| | | * |
| | | * "License" shall mean the terms and conditions for use, reproduction, |
| | | * and distribution as defined by Sections 1 through 9 of this document. |
| | | * |
| | | * "Licensor" shall mean the copyright owner or entity authorized by |
| | | * the copyright owner that is granting the License. |
| | | * |
| | | * "Legal Entity" shall mean the union of the acting entity and all |
| | | * other entities that control, are controlled by, or are under common |
| | | * control with that entity. For the purposes of this definition, |
| | | * "control" means (i) the power, direct or indirect, to cause the |
| | | * direction or management of such entity, whether by contract or |
| | | * otherwise, or (ii) ownership of fifty percent (50%) or more of the |
| | | * outstanding shares, or (iii) beneficial ownership of such entity. |
| | | * |
| | | * "You" (or "Your") shall mean an individual or Legal Entity |
| | | * exercising permissions granted by this License. |
| | | * |
| | | * "Source" form shall mean the preferred form for making modifications, |
| | | * including but not limited to software source code, documentation |
| | | * source, and configuration files. |
| | | * |
| | | * "Object" form shall mean any form resulting from mechanical |
| | | * transformation or translation of a Source form, including but |
| | | * not limited to compiled object code, generated documentation, |
| | | * and conversions to other media types. |
| | | * |
| | | * "Work" shall mean the work of authorship, whether in Source or |
| | | * Object form, made available under the License, as indicated by a |
| | | * copyright notice that is included in or attached to the work |
| | | * (an example is provided in the Appendix below). |
| | | * |
| | | * "Derivative Works" shall mean any work, whether in Source or Object |
| | | * form, that is based on (or derived from) the Work and for which the |
| | | * editorial revisions, annotations, elaborations, or other modifications |
| | | * represent, as a whole, an original work of authorship. For the purposes |
| | | * of this License, Derivative Works shall not include works that remain |
| | | * separable from, or merely link (or bind by name) to the interfaces of, |
| | | * the Work and Derivative Works thereof. |
| | | * |
| | | * "Contribution" shall mean any work of authorship, including |
| | | * the original version of the Work and any modifications or additions |
| | | * to that Work or Derivative Works thereof, that is intentionally |
| | | * submitted to Licensor for inclusion in the Work by the copyright owner |
| | | * or by an individual or Legal Entity authorized to submit on behalf of |
| | | * the copyright owner. For the purposes of this definition, "submitted" |
| | | * means any form of electronic, verbal, or written communication sent |
| | | * to the Licensor or its representatives, including but not limited to |
| | | * communication on electronic mailing lists, source code control systems, |
| | | * and issue tracking systems that are managed by, or on behalf of, the |
| | | * Licensor for the purpose of discussing and improving the Work, but |
| | | * excluding communication that is conspicuously marked or otherwise |
| | | * designated in writing by the copyright owner as "Not a Contribution." |
| | | * |
| | | * "Contributor" shall mean Licensor and any individual or Legal Entity |
| | | * on behalf of whom a Contribution has been received by Licensor and |
| | | * subsequently incorporated within the Work. |
| | | * |
| | | * 2. Grant of Copyright License. Subject to the terms and conditions of |
| | | * this License, each Contributor hereby grants to You a perpetual, |
| | | * worldwide, non-exclusive, no-charge, royalty-free, irrevocable |
| | | * copyright license to reproduce, prepare Derivative Works of, |
| | | * publicly display, publicly perform, sublicense, and distribute the |
| | | * Work and such Derivative Works in Source or Object form. |
| | | * |
| | | * 3. Grant of Patent License. Subject to the terms and conditions of |
| | | * this License, each Contributor hereby grants to You a perpetual, |
| | | * worldwide, non-exclusive, no-charge, royalty-free, irrevocable |
| | | * (except as stated in this section) patent license to make, have made, |
| | | * use, offer to sell, sell, import, and otherwise transfer the Work, |
| | | * where such license applies only to those patent claims licensable |
| | | * by such Contributor that are necessarily infringed by their |
| | | * Contribution(s) alone or by combination of their Contribution(s) |
| | | * with the Work to which such Contribution(s) was submitted. If You |
| | | * institute patent litigation against any entity (including a |
| | | * cross-claim or counterclaim in a lawsuit) alleging that the Work |
| | | * or a Contribution incorporated within the Work constitutes direct |
| | | * or contributory patent infringement, then any patent licenses |
| | | * granted to You under this License for that Work shall terminate |
| | | * as of the date such litigation is filed. |
| | | * |
| | | * 4. Redistribution. You may reproduce and distribute copies of the |
| | | * Work or Derivative Works thereof in any medium, with or without |
| | | * modifications, and in Source or Object form, provided that You |
| | | * meet the following conditions: |
| | | * |
| | | * (a) You must give any other recipients of the Work or |
| | | * Derivative Works a copy of this License; and |
| | | * |
| | | * (b) You must cause any modified files to carry prominent notices |
| | | * stating that You changed the files; and |
| | | * |
| | | * (c) You must retain, in the Source form of any Derivative Works |
| | | * that You distribute, all copyright, patent, trademark, and |
| | | * attribution notices from the Source form of the Work, |
| | | * excluding those notices that do not pertain to any part of |
| | | * the Derivative Works; and |
| | | * |
| | | * (d) If the Work includes a "NOTICE" text file as part of its |
| | | * distribution, then any Derivative Works that You distribute must |
| | | * include a readable copy of the attribution notices contained |
| | | * within such NOTICE file, excluding those notices that do not |
| | | * pertain to any part of the Derivative Works, in at least one |
| | | * of the following places: within a NOTICE text file distributed |
| | | * as part of the Derivative Works; within the Source form or |
| | | * documentation, if provided along with the Derivative Works; or, |
| | | * within a display generated by the Derivative Works, if and |
| | | * wherever such third-party notices normally appear. The contents |
| | | * of the NOTICE file are for informational purposes only and |
| | | * do not modify the License. You may add Your own attribution |
| | | * notices within Derivative Works that You distribute, alongside |
| | | * or as an addendum to the NOTICE text from the Work, provided |
| | | * that such additional attribution notices cannot be construed |
| | | * as modifying the License. |
| | | * |
| | | * You may add Your own copyright statement to Your modifications and |
| | | * may provide additional or different license terms and conditions |
| | | * for use, reproduction, or distribution of Your modifications, or |
| | | * for any such Derivative Works as a whole, provided Your use, |
| | | * reproduction, and distribution of the Work otherwise complies with |
| | | * the conditions stated in this License. |
| | | * |
| | | * 5. Submission of Contributions. Unless You explicitly state otherwise, |
| | | * any Contribution intentionally submitted for inclusion in the Work |
| | | * by You to the Licensor shall be under the terms and conditions of |
| | | * this License, without any additional terms or conditions. |
| | | * Notwithstanding the above, nothing herein shall supersede or modify |
| | | * the terms of any separate license agreement you may have executed |
| | | * with Licensor regarding such Contributions. |
| | | * |
| | | * 6. Trademarks. This License does not grant permission to use the trade |
| | | * names, trademarks, service marks, or product names of the Licensor, |
| | | * except as required for reasonable and customary use in describing the |
| | | * origin of the Work and reproducing the content of the NOTICE file. |
| | | * |
| | | * 7. Disclaimer of Warranty. Unless required by applicable law or |
| | | * agreed to in writing, Licensor provides the Work (and each |
| | | * Contributor provides its Contributions) on an "AS IS" BASIS, |
| | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or |
| | | * implied, including, without limitation, any warranties or conditions |
| | | * of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A |
| | | * PARTICULAR PURPOSE. You are solely responsible for determining the |
| | | * appropriateness of using or redistributing the Work and assume any |
| | | * risks associated with Your exercise of permissions under this License. |
| | | * |
| | | * 8. Limitation of Liability. In no event and under no legal theory, |
| | | * whether in tort (including negligence), contract, or otherwise, |
| | | * unless required by applicable law (such as deliberate and grossly |
| | | * negligent acts) or agreed to in writing, shall any Contributor be |
| | | * liable to You for damages, including any direct, indirect, special, |
| | | * incidental, or consequential damages of any character arising as a |
| | | * result of this License or out of the use or inability to use the |
| | | * Work (including but not limited to damages for loss of goodwill, |
| | | * work stoppage, computer failure or malfunction, or any and all |
| | | * other commercial damages or losses), even if such Contributor |
| | | * has been advised of the possibility of such damages. |
| | | * |
| | | * 9. Accepting Warranty or Additional Liability. While redistributing |
| | | * the Work or Derivative Works thereof, You may choose to offer, |
| | | * and charge a fee for, acceptance of support, warranty, indemnity, |
| | | * or other liability obligations and/or rights consistent with this |
| | | * License. However, in accepting such obligations, You may act only |
| | | * on Your own behalf and on Your sole responsibility, not on behalf |
| | | * of any other Contributor, and only if You agree to indemnify, |
| | | * defend, and hold each Contributor harmless for any liability |
| | | * incurred by, or claims asserted against, such Contributor by reason |
| | | * of your accepting any such warranty or additional liability. |
| | | * |
| | | * END OF TERMS AND CONDITIONS |
| | | * |
| | | * APPENDIX: How to apply the Apache License to your work. |
| | | * |
| | | * To apply the Apache License to your work, attach the following |
| | | * boilerplate notice, with the fields enclosed by brackets "[]" |
| | | * replaced with your own identifying information. (Don't include |
| | | * the brackets!) The text should be enclosed in the appropriate |
| | | * comment syntax for the file format. We also recommend that a |
| | | * file or class name and description of purpose be included on the |
| | | * same "printed page" as the copyright notice for easier |
| | | * identification within third-party archives. |
| | | * |
| | | * Copyright [yyyy] [name of copyright owner] |
| | | * |
| | | * Licensed under the Apache License, Version 2.0 (the "License"); |
| | | * you may not use this file except in compliance with the License. |
| | | * You may obtain a copy of the License at |
| | | * |
| | | * http://www.apache.org/licenses/LICENSE-2.0 |
| | | * |
| | | * Unless required by applicable law or agreed to in writing, software |
| | | * distributed under the License is distributed on an "AS IS" BASIS, |
| | | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| | | * See the License for the specific language governing permissions and |
| | | * limitations under the License. |
| | | |
| | | * UW IMAP toolkit notices: |
| | | |
| | | * This software was developed by the University of Washington |
| | | * (http://www.washington.edu/). |
| | | * |
| | | * The Univerity of Washington IMAP Toolkit (c-client API, dmail, imapd, |
| | | * ipop2d, ipop3d, mailutil, mlock, mtest, and tmail software; and its |
| | | * included text) is Copyright 1988-2007 by the University of Washington. |
| | | * |
| | | * The c-client library and mtest software are in part based upon code |
| | | * developed by Mark Crispin at Stanford University, and is |
| | | * |
| | | * Copyright 1988 Stanford University and was developed in the |
| | | * Symbolic Systems Resources Group of the Knowledge Systems Laboratory |
| | | * at Stanford University in 1987-88, and was funded by the |
| | | * Biomedical Research Technology Program of the National Institutes of |
| | | * Health under grant number RR-00785. |
| | | * |
| | | */ |
| | | |
| | | /* |
| | | * |
| | | * GNU GENERAL PUBLIC LICENSE |
| | | * Version 2, June 1991 |
| | | * |
| | | * Copyright (C) 1989, 1991 Free Software Foundation, Inc., |
| | | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| | | * Everyone is permitted to copy and distribute verbatim copies |
| | | * of this license document, but changing it is not allowed. |
| | | * |
| | | * Preamble |
| | | * |
| | | * The licenses for most software are designed to take away your |
| | | * freedom to share and change it. By contrast, the GNU General Public |
| | | * License is intended to guarantee your freedom to share and change free |
| | | * software--to make sure the software is free for all its users. This |
| | | * General Public License applies to most of the Free Software |
| | | * Foundation's software and to any other program whose authors commit to |
| | | * using it. (Some other Free Software Foundation software is covered by |
| | | * the GNU Lesser General Public License instead.) You can apply it to |
| | | * your programs, too. |
| | | * |
| | | * When we speak of free software, we are referring to freedom, not |
| | | * price. Our General Public Licenses are designed to make sure that you |
| | | * have the freedom to distribute copies of free software (and charge for |
| | | * this service if you wish), that you receive source code or can get it |
| | | * if you want it, that you can change the software or use pieces of it |
| | | * in new free programs; and that you know you can do these things. |
| | | * |
| | | * To protect your rights, we need to make restrictions that forbid |
| | | * anyone to deny you these rights or to ask you to surrender the rights. |
| | | * These restrictions translate to certain responsibilities for you if you |
| | | * distribute copies of the software, or if you modify it. |
| | | * |
| | | * For example, if you distribute copies of such a program, whether |
| | | * gratis or for a fee, you must give the recipients all the rights that |
| | | * you have. You must make sure that they, too, receive or can get the |
| | | * source code. And you must show them these terms so they know their |
| | | * rights. |
| | | * |
| | | * We protect your rights with two steps: (1) copyright the software, and |
| | | * (2) offer you this license which gives you legal permission to copy, |
| | | * distribute and/or modify the software. |
| | | * |
| | | * Also, for each author's protection and ours, we want to make certain |
| | | * that everyone understands that there is no warranty for this free |
| | | * software. If the software is modified by someone else and passed on, we |
| | | * want its recipients to know that what they have is not the original, so |
| | | * that any problems introduced by others will not reflect on the original |
| | | * authors' reputations. |
| | | * |
| | | * Finally, any free program is threatened constantly by software |
| | | * patents. We wish to avoid the danger that redistributors of a free |
| | | * program will individually obtain patent licenses, in effect making the |
| | | * program proprietary. To prevent this, we have made it clear that any |
| | | * patent must be licensed for everyone's free use or not licensed at all. |
| | | * |
| | | * The precise terms and conditions for copying, distribution and |
| | | * modification follow. |
| | | * |
| | | * GNU GENERAL PUBLIC LICENSE |
| | | * TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
| | | * |
| | | * 0. This License applies to any program or other work which contains |
| | | * a notice placed by the copyright holder saying it may be distributed |
| | | * under the terms of this General Public License. The "Program", below, |
| | | * refers to any such program or work, and a "work based on the Program" |
| | | * means either the Program or any derivative work under copyright law: |
| | | * that is to say, a work containing the Program or a portion of it, |
| | | * either verbatim or with modifications and/or translated into another |
| | | * language. (Hereinafter, translation is included without limitation in |
| | | * the term "modification".) Each licensee is addressed as "you". |
| | | * |
| | | * Activities other than copying, distribution and modification are not |
| | | * covered by this License; they are outside its scope. The act of |
| | | * running the Program is not restricted, and the output from the Program |
| | | * is covered only if its contents constitute a work based on the |
| | | * Program (independent of having been made by running the Program). |
| | | * Whether that is true depends on what the Program does. |
| | | * |
| | | * 1. You may copy and distribute verbatim copies of the Program's |
| | | * source code as you receive it, in any medium, provided that you |
| | | * conspicuously and appropriately publish on each copy an appropriate |
| | | * copyright notice and disclaimer of warranty; keep intact all the |
| | | * notices that refer to this License and to the absence of any warranty; |
| | | * and give any other recipients of the Program a copy of this License |
| | | * along with the Program. |
| | | * |
| | | * You may charge a fee for the physical act of transferring a copy, and |
| | | * you may at your option offer warranty protection in exchange for a fee. |
| | | * |
| | | * 2. You may modify your copy or copies of the Program or any portion |
| | | * of it, thus forming a work based on the Program, and copy and |
| | | * distribute such modifications or work under the terms of Section 1 |
| | | * above, provided that you also meet all of these conditions: |
| | | * |
| | | * a) You must cause the modified files to carry prominent notices |
| | | * stating that you changed the files and the date of any change. |
| | | * |
| | | * b) You must cause any work that you distribute or publish, that in |
| | | * whole or in part contains or is derived from the Program or any |
| | | * part thereof, to be licensed as a whole at no charge to all third |
| | | * parties under the terms of this License. |
| | | * |
| | | * c) If the modified program normally reads commands interactively |
| | | * when run, you must cause it, when started running for such |
| | | * interactive use in the most ordinary way, to print or display an |
| | | * announcement including an appropriate copyright notice and a |
| | | * notice that there is no warranty (or else, saying that you provide |
| | | * a warranty) and that users may redistribute the program under |
| | | * these conditions, and telling the user how to view a copy of this |
| | | * License. (Exception: if the Program itself is interactive but |
| | | * does not normally print such an announcement, your work based on |
| | | * the Program is not required to print an announcement.) |
| | | * |
| | | * These requirements apply to the modified work as a whole. If |
| | | * identifiable sections of that work are not derived from the Program, |
| | | * and can be reasonably considered independent and separate works in |
| | | * themselves, then this License, and its terms, do not apply to those |
| | | * sections when you distribute them as separate works. But when you |
| | | * distribute the same sections as part of a whole which is a work based |
| | | * on the Program, the distribution of the whole must be on the terms of |
| | | * this License, whose permissions for other licensees extend to the |
| | | * entire whole, and thus to each and every part regardless of who wrote it. |
| | | * |
| | | * Thus, it is not the intent of this section to claim rights or contest |
| | | * your rights to work written entirely by you; rather, the intent is to |
| | | * exercise the right to control the distribution of derivative or |
| | | * collective works based on the Program. |
| | | * |
| | | * In addition, mere aggregation of another work not based on the Program |
| | | * with the Program (or with a work based on the Program) on a volume of |
| | | * a storage or distribution medium does not bring the other work under |
| | | * the scope of this License. |
| | | * |
| | | * 3. You may copy and distribute the Program (or a work based on it, |
| | | * under Section 2) in object code or executable form under the terms of |
| | | * Sections 1 and 2 above provided that you also do one of the following: |
| | | * |
| | | * a) Accompany it with the complete corresponding machine-readable |
| | | * source code, which must be distributed under the terms of Sections |
| | | * 1 and 2 above on a medium customarily used for software interchange; or, |
| | | * |
| | | * b) Accompany it with a written offer, valid for at least three |
| | | * years, to give any third party, for a charge no more than your |
| | | * cost of physically performing source distribution, a complete |
| | | * machine-readable copy of the corresponding source code, to be |
| | | * distributed under the terms of Sections 1 and 2 above on a medium |
| | | * customarily used for software interchange; or, |
| | | * |
| | | * c) Accompany it with the information you received as to the offer |
| | | * to distribute corresponding source code. (This alternative is |
| | | * allowed only for noncommercial distribution and only if you |
| | | * received the program in object code or executable form with such |
| | | * an offer, in accord with Subsection b above.) |
| | | * |
| | | * The source code for a work means the preferred form of the work for |
| | | * making modifications to it. For an executable work, complete source |
| | | * code means all the source code for all modules it contains, plus any |
| | | * associated interface definition files, plus the scripts used to |
| | | * control compilation and installation of the executable. However, as a |
| | | * special exception, the source code distributed need not include |
| | | * anything that is normally distributed (in either source or binary |
| | | * form) with the major components (compiler, kernel, and so on) of the |
| | | * operating system on which the executable runs, unless that component |
| | | * itself accompanies the executable. |
| | | * |
| | | * If distribution of executable or object code is made by offering |
| | | * access to copy from a designated place, then offering equivalent |
| | | * access to copy the source code from the same place counts as |
| | | * distribution of the source code, even though third parties are not |
| | | * compelled to copy the source along with the object code. |
| | | * |
| | | * 4. You may not copy, modify, sublicense, or distribute the Program |
| | | * except as expressly provided under this License. Any attempt |
| | | * otherwise to copy, modify, sublicense or distribute the Program is |
| | | * void, and will automatically terminate your rights under this License. |
| | | * However, parties who have received copies, or rights, from you under |
| | | * this License will not have their licenses terminated so long as such |
| | | * parties remain in full compliance. |
| | | * |
| | | * 5. You are not required to accept this License, since you have not |
| | | * signed it. However, nothing else grants you permission to modify or |
| | | * distribute the Program or its derivative works. These actions are |
| | | * prohibited by law if you do not accept this License. Therefore, by |
| | | * modifying or distributing the Program (or any work based on the |
| | | * Program), you indicate your acceptance of this License to do so, and |
| | | * all its terms and conditions for copying, distributing or modifying |
| | | * the Program or works based on it. |
| | | * |
| | | * 6. Each time you redistribute the Program (or any work based on the |
| | | * Program), the recipient automatically receives a license from the |
| | | * original licensor to copy, distribute or modify the Program subject to |
| | | * these terms and conditions. You may not impose any further |
| | | * restrictions on the recipients' exercise of the rights granted herein. |
| | | * You are not responsible for enforcing compliance by third parties to |
| | | * this License. |
| | | * |
| | | * 7. If, as a consequence of a court judgment or allegation of patent |
| | | * infringement or for any other reason (not limited to patent issues), |
| | | * conditions are imposed on you (whether by court order, agreement or |
| | | * otherwise) that contradict the conditions of this License, they do not |
| | | * excuse you from the conditions of this License. If you canno choice. |
| | | * |
| | | * This section is intended to make thoroughly clear what is believed to |
| | | * be a consequence of the rest of this License. |
| | | * |
| | | * 8. If the distribution and/or use of the Program is restricted in |
| | | * certain countries either by patents or by copyrighted interfaces, the |
| | | * original copyright holder who places the Program under this License |
| | | * may add an explicit geographical distribution limitation excluding |
| | | * those countries, so that distribution is permitted only in or among |
| | | * countries not thus excluded. In such case, asses at compilers) written |
| | | * by James Hacker. |
| | | * |
| | | * <signature of Ty Coon>, 1 April 1989 |
| | | * Ty Coon, President of Vice |
| | | * |
| | | * This General Public License does not permit incorporating your program into |
| | | * proprietary programs. If your program is a subroutine library, you may |
| | | * consider it more useful to permit linking proprietary applications with the |
| | | * library. If this is what you want to do, use the GNU Lesser General |
| | | * Public License instead of this License. |
| | | * |
| | | * |
| | | */ |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | <transform file path=usr.*/man/.+ -> default mangler.man.stability uncommitted> |
| | | <transform file path=etc/php/.* -> default group bin> |
| | | <transform file path=etc/php/.* -> default mode 0644> |
| | | <transform file path=(etc/php/.*) -> default original_name SUNWphp52:%<1>> |
| | | <transform file path=etc/php/.* -> default preserve renamenew> |
| | | |
| | | set name=pkg.fmri \ |
| | | value=pkg:/web/php-52@5.2.17,$(BUILD_VERSION) |
| | | set name=pkg.description \ |
| | | value="A general-purpose scripting language originally designed for web development to produce dynamic web pages." |
| | | set name=pkg.summary value="PHP Server" |
| | | set name=info.classification \ |
| | | value="org.opensolaris.category.2008:Development/PHP" |
| | | set name=info.upstream_url value=http://www.php.net/ |
| | | set name=info.source_url value=http://us.php.net/get/php-5.2.17.tar.gz/from/this/mirror |
| | | set name=opensolaris.arc_url \ |
| | | value=http://arc.opensolaris.org/caselog/LSARC/2008/538 |
| | | set name=org.opensolaris.consolidation value=$(CONSOLIDATION) |
| | | |
| | | license php-52.license license='PHP, GPLv2, LGPLv2, Apache v2.0' |
| | | |
| | | dir path=etc |
| | | dir path=etc/php |
| | | dir path=etc/php/5.2 |
| | | dir path=etc/php/5.2/conf.d |
| | | dir path=etc/php/5.2/nsapi |
| | | dir path=etc/php/5.2/zts-conf.d |
| | | dir path=usr |
| | | dir path=usr/php |
| | | dir path=usr/php/5.2 |
| | | dir path=usr/php/5.2/bin |
| | | dir path=usr/php/5.2/include |
| | | dir path=usr/php/5.2/include/php |
| | | dir path=usr/php/5.2/include/php/TSRM |
| | | dir path=usr/php/5.2/include/php/Zend |
| | | dir path=usr/php/5.2/include/php/ext |
| | | dir path=usr/php/5.2/include/php/ext/date |
| | | dir path=usr/php/5.2/include/php/ext/date/lib |
| | | dir path=usr/php/5.2/include/php/ext/dom |
| | | dir path=usr/php/5.2/include/php/ext/filter |
| | | dir path=usr/php/5.2/include/php/ext/gd |
| | | dir path=usr/php/5.2/include/php/ext/gd/libgd |
| | | dir path=usr/php/5.2/include/php/ext/hash |
| | | dir path=usr/php/5.2/include/php/ext/iconv |
| | | dir path=usr/php/5.2/include/php/ext/json |
| | | dir path=usr/php/5.2/include/php/ext/libxml |
| | | dir path=usr/php/5.2/include/php/ext/mbstring |
| | | dir path=usr/php/5.2/include/php/ext/mbstring/libmbfl |
| | | dir path=usr/php/5.2/include/php/ext/mbstring/libmbfl/mbfl |
| | | dir path=usr/php/5.2/include/php/ext/mbstring/oniguruma |
| | | dir path=usr/php/5.2/include/php/ext/pcre |
| | | dir path=usr/php/5.2/include/php/ext/pcre/pcrelib |
| | | dir path=usr/php/5.2/include/php/ext/pdo |
| | | dir path=usr/php/5.2/include/php/ext/session |
| | | dir path=usr/php/5.2/include/php/ext/spl |
| | | dir path=usr/php/5.2/include/php/ext/sqlite |
| | | dir path=usr/php/5.2/include/php/ext/sqlite/libsqlite |
| | | dir path=usr/php/5.2/include/php/ext/sqlite/libsqlite/src |
| | | dir path=usr/php/5.2/include/php/ext/standard |
| | | dir path=usr/php/5.2/include/php/ext/xml |
| | | dir path=usr/php/5.2/include/php/include |
| | | dir path=usr/php/5.2/include/php/main |
| | | dir path=usr/php/5.2/include/php/main/streams |
| | | dir path=usr/php/5.2/include/php/regex |
| | | dir path=usr/php/5.2/lib |
| | | dir path=usr/php/5.2/lib/build |
| | | dir path=usr/php/5.2/man |
| | | dir path=usr/php/5.2/man/man1 |
| | | dir path=usr/php/5.2/modules |
| | | dir path=usr/php/5.2/nsapi |
| | | dir path=usr/php/5.2/samples |
| | | dir path=usr/php/5.2/samples/scripts |
| | | dir path=usr/php/5.2/zts-modules |
| | | dir path=usr/share |
| | | dir path=usr/share/man |
| | | dir path=usr/share/man/man1 |
| | | dir path=var |
| | | dir path=var/php |
| | | dir path=var/php/5.2 |
| | | dir path=var/php/5.2/sessions owner=webservd mode=0750 |
| | | file path=etc/php/5.2/conf.d/bz2.ini |
| | | file path=etc/php/5.2/conf.d/curl.ini |
| | | file path=etc/php/5.2/conf.d/ftp.ini |
| | | file path=etc/php/5.2/conf.d/gd.ini |
| | | file path=etc/php/5.2/conf.d/gettext.ini |
| | | file path=etc/php/5.2/conf.d/iconv.ini |
| | | file path=etc/php/5.2/conf.d/imap.ini |
| | | file path=etc/php/5.2/conf.d/ldap.ini |
| | | file path=etc/php/5.2/conf.d/mcrypt.ini |
| | | file path=etc/php/5.2/conf.d/openssl.ini |
| | | file path=etc/php/5.2/conf.d/pdo.ini |
| | | file path=etc/php/5.2/conf.d/pdo_sqlite.ini |
| | | file path=etc/php/5.2/conf.d/snmp.ini |
| | | file path=etc/php/5.2/conf.d/sqlite.ini |
| | | file path=etc/php/5.2/conf.d/tidy.ini |
| | | file path=etc/php/5.2/nsapi/php.ini |
| | | file path=etc/php/5.2/php.ini |
| | | file path=etc/php/5.2/zts-conf.d/bz2.ini |
| | | file path=etc/php/5.2/zts-conf.d/curl.ini |
| | | file path=etc/php/5.2/zts-conf.d/ftp.ini |
| | | file path=etc/php/5.2/zts-conf.d/gd.ini |
| | | file path=etc/php/5.2/zts-conf.d/gettext.ini |
| | | file path=etc/php/5.2/zts-conf.d/iconv.ini |
| | | file path=etc/php/5.2/zts-conf.d/imap.ini |
| | | file path=etc/php/5.2/zts-conf.d/ldap.ini |
| | | file path=etc/php/5.2/zts-conf.d/mcrypt.ini |
| | | file path=etc/php/5.2/zts-conf.d/openssl.ini |
| | | file path=etc/php/5.2/zts-conf.d/pdo.ini |
| | | file path=etc/php/5.2/zts-conf.d/pdo_sqlite.ini |
| | | file path=etc/php/5.2/zts-conf.d/snmp.ini |
| | | file path=etc/php/5.2/zts-conf.d/sqlite.ini |
| | | file path=etc/php/5.2/zts-conf.d/tidy.ini |
| | | file path=usr/php/5.2/bin/php |
| | | file path=usr/php/5.2/bin/php-cgi |
| | | file path=usr/php/5.2/bin/php-config mode=0555 |
| | | file path=usr/php/5.2/bin/phpize mode=0555 |
| | | file path=usr/php/5.2/include/php/TSRM/TSRM.h |
| | | file path=usr/php/5.2/include/php/TSRM/acconfig.h |
| | | file path=usr/php/5.2/include/php/TSRM/readdir.h |
| | | file path=usr/php/5.2/include/php/TSRM/tsrm_config.h |
| | | file path=usr/php/5.2/include/php/TSRM/tsrm_config.w32.h |
| | | file path=usr/php/5.2/include/php/TSRM/tsrm_config_common.h |
| | | file path=usr/php/5.2/include/php/TSRM/tsrm_nw.h |
| | | file path=usr/php/5.2/include/php/TSRM/tsrm_strtok_r.h |
| | | file path=usr/php/5.2/include/php/TSRM/tsrm_virtual_cwd.h |
| | | file path=usr/php/5.2/include/php/TSRM/tsrm_win32.h |
| | | file path=usr/php/5.2/include/php/Zend/FlexLexer.h |
| | | file path=usr/php/5.2/include/php/Zend/acconfig.h |
| | | file path=usr/php/5.2/include/php/Zend/zend.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_API.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_alloc.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_builtin_functions.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_compile.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_config.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_config.nw.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_config.w32.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_constants.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_dtrace.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_dtrace_gen.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_dynamic_array.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_errors.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_exceptions.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_execute.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_extensions.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_fast_cache.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_globals.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_globals_macros.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_hash.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_highlight.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_indent.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_ini.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_ini_parser.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_ini_scanner.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_interfaces.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_istdiostream.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_iterators.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_language_parser.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_language_scanner.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_list.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_llist.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_modules.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_multibyte.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_multiply.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_object_handlers.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_objects.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_objects_API.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_operators.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_ptr_stack.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_qsort.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_stack.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_static_allocator.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_stream.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_strtod.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_ts_hash.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_types.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_variables.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_vm.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_vm_def.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_vm_execute.h |
| | | file path=usr/php/5.2/include/php/Zend/zend_vm_opcodes.h |
| | | file path=usr/php/5.2/include/php/ext/date/lib/timelib.h |
| | | file path=usr/php/5.2/include/php/ext/date/lib/timelib_config.h |
| | | file path=usr/php/5.2/include/php/ext/date/lib/timelib_structs.h |
| | | file path=usr/php/5.2/include/php/ext/date/php_date.h |
| | | file path=usr/php/5.2/include/php/ext/dom/xml_common.h |
| | | file path=usr/php/5.2/include/php/ext/filter/php_filter.h |
| | | file path=usr/php/5.2/include/php/ext/gd/gdcache.h |
| | | file path=usr/php/5.2/include/php/ext/gd/gdttf.h |
| | | file path=usr/php/5.2/include/php/ext/gd/libgd/gd.h |
| | | file path=usr/php/5.2/include/php/ext/gd/libgd/gd_io.h |
| | | file path=usr/php/5.2/include/php/ext/gd/libgd/gdcache.h |
| | | file path=usr/php/5.2/include/php/ext/gd/libgd/gdfontg.h |
| | | file path=usr/php/5.2/include/php/ext/gd/libgd/gdfontl.h |
| | | file path=usr/php/5.2/include/php/ext/gd/libgd/gdfontmb.h |
| | | file path=usr/php/5.2/include/php/ext/gd/libgd/gdfonts.h |
| | | file path=usr/php/5.2/include/php/ext/gd/libgd/gdfontt.h |
| | | file path=usr/php/5.2/include/php/ext/gd/libgd/gdhelpers.h |
| | | file path=usr/php/5.2/include/php/ext/gd/libgd/jisx0208.h |
| | | file path=usr/php/5.2/include/php/ext/gd/libgd/wbmp.h |
| | | file path=usr/php/5.2/include/php/ext/gd/php_gd.h |
| | | file path=usr/php/5.2/include/php/ext/hash/php_hash.h |
| | | file path=usr/php/5.2/include/php/ext/hash/php_hash_adler32.h |
| | | file path=usr/php/5.2/include/php/ext/hash/php_hash_crc32.h |
| | | file path=usr/php/5.2/include/php/ext/hash/php_hash_gost.h |
| | | file path=usr/php/5.2/include/php/ext/hash/php_hash_haval.h |
| | | file path=usr/php/5.2/include/php/ext/hash/php_hash_md.h |
| | | file path=usr/php/5.2/include/php/ext/hash/php_hash_ripemd.h |
| | | file path=usr/php/5.2/include/php/ext/hash/php_hash_sha.h |
| | | file path=usr/php/5.2/include/php/ext/hash/php_hash_snefru.h |
| | | file path=usr/php/5.2/include/php/ext/hash/php_hash_tiger.h |
| | | file path=usr/php/5.2/include/php/ext/hash/php_hash_types.h |
| | | file path=usr/php/5.2/include/php/ext/hash/php_hash_whirlpool.h |
| | | file path=usr/php/5.2/include/php/ext/iconv/php_have_bsd_iconv.h |
| | | file path=usr/php/5.2/include/php/ext/iconv/php_have_glibc_iconv.h |
| | | file path=usr/php/5.2/include/php/ext/iconv/php_have_ibm_iconv.h |
| | | file path=usr/php/5.2/include/php/ext/iconv/php_have_iconv.h |
| | | file path=usr/php/5.2/include/php/ext/iconv/php_have_libiconv.h |
| | | file path=usr/php/5.2/include/php/ext/iconv/php_iconv.h |
| | | file path=usr/php/5.2/include/php/ext/iconv/php_iconv_aliased_libiconv.h |
| | | file path=usr/php/5.2/include/php/ext/iconv/php_iconv_supports_errno.h |
| | | file path=usr/php/5.2/include/php/ext/iconv/php_php_iconv_h_path.h |
| | | file path=usr/php/5.2/include/php/ext/iconv/php_php_iconv_impl.h |
| | | file path=usr/php/5.2/include/php/ext/json/php_json.h |
| | | file path=usr/php/5.2/include/php/ext/libxml/php_libxml.h |
| | | file path=usr/php/5.2/include/php/ext/mbstring/libmbfl/config.h |
| | | file path=usr/php/5.2/include/php/ext/mbstring/libmbfl/mbfl/eaw_table.h |
| | | file path=usr/php/5.2/include/php/ext/mbstring/libmbfl/mbfl/mbfilter.h |
| | | file path=usr/php/5.2/include/php/ext/mbstring/libmbfl/mbfl/mbfilter_8bit.h |
| | | file path=usr/php/5.2/include/php/ext/mbstring/libmbfl/mbfl/mbfilter_pass.h |
| | | file path=usr/php/5.2/include/php/ext/mbstring/libmbfl/mbfl/mbfilter_wchar.h |
| | | file path=usr/php/5.2/include/php/ext/mbstring/libmbfl/mbfl/mbfl_allocators.h |
| | | file path=usr/php/5.2/include/php/ext/mbstring/libmbfl/mbfl/mbfl_consts.h |
| | | file path=usr/php/5.2/include/php/ext/mbstring/libmbfl/mbfl/mbfl_convert.h |
| | | file path=usr/php/5.2/include/php/ext/mbstring/libmbfl/mbfl/mbfl_defs.h |
| | | file path=usr/php/5.2/include/php/ext/mbstring/libmbfl/mbfl/mbfl_encoding.h |
| | | file \ |
| | | path=usr/php/5.2/include/php/ext/mbstring/libmbfl/mbfl/mbfl_filter_output.h |
| | | file path=usr/php/5.2/include/php/ext/mbstring/libmbfl/mbfl/mbfl_ident.h |
| | | file path=usr/php/5.2/include/php/ext/mbstring/libmbfl/mbfl/mbfl_language.h |
| | | file \ |
| | | path=usr/php/5.2/include/php/ext/mbstring/libmbfl/mbfl/mbfl_memory_device.h |
| | | file path=usr/php/5.2/include/php/ext/mbstring/libmbfl/mbfl/mbfl_string.h |
| | | file path=usr/php/5.2/include/php/ext/mbstring/mbstring.h |
| | | file path=usr/php/5.2/include/php/ext/mbstring/oniguruma/oniguruma.h |
| | | file path=usr/php/5.2/include/php/ext/mbstring/oniguruma/php_onig_compat.h |
| | | file path=usr/php/5.2/include/php/ext/mbstring/php_mbregex.h |
| | | file path=usr/php/5.2/include/php/ext/pcre/pcrelib/config.h |
| | | file path=usr/php/5.2/include/php/ext/pcre/pcrelib/pcre.h |
| | | file path=usr/php/5.2/include/php/ext/pcre/pcrelib/pcre_internal.h |
| | | file path=usr/php/5.2/include/php/ext/pcre/pcrelib/pcreposix.h |
| | | file path=usr/php/5.2/include/php/ext/pcre/pcrelib/ucp.h |
| | | file path=usr/php/5.2/include/php/ext/pcre/php_pcre.h |
| | | file path=usr/php/5.2/include/php/ext/pdo/php_pdo.h |
| | | file path=usr/php/5.2/include/php/ext/pdo/php_pdo_driver.h |
| | | file path=usr/php/5.2/include/php/ext/session/mod_files.h |
| | | file path=usr/php/5.2/include/php/ext/session/mod_user.h |
| | | file path=usr/php/5.2/include/php/ext/session/php_session.h |
| | | file path=usr/php/5.2/include/php/ext/spl/php_spl.h |
| | | file path=usr/php/5.2/include/php/ext/spl/spl_array.h |
| | | file path=usr/php/5.2/include/php/ext/spl/spl_directory.h |
| | | file path=usr/php/5.2/include/php/ext/spl/spl_engine.h |
| | | file path=usr/php/5.2/include/php/ext/spl/spl_exceptions.h |
| | | file path=usr/php/5.2/include/php/ext/spl/spl_functions.h |
| | | file path=usr/php/5.2/include/php/ext/spl/spl_iterators.h |
| | | file path=usr/php/5.2/include/php/ext/spl/spl_observer.h |
| | | file path=usr/php/5.2/include/php/ext/spl/spl_sxe.h |
| | | file path=usr/php/5.2/include/php/ext/sqlite/libsqlite/src/sqlite.h |
| | | file path=usr/php/5.2/include/php/ext/standard/base64.h |
| | | file path=usr/php/5.2/include/php/ext/standard/basic_functions.h |
| | | file path=usr/php/5.2/include/php/ext/standard/crc32.h |
| | | file path=usr/php/5.2/include/php/ext/standard/credits.h |
| | | file path=usr/php/5.2/include/php/ext/standard/credits_ext.h |
| | | file path=usr/php/5.2/include/php/ext/standard/credits_sapi.h |
| | | file path=usr/php/5.2/include/php/ext/standard/css.h |
| | | file path=usr/php/5.2/include/php/ext/standard/cyr_convert.h |
| | | file path=usr/php/5.2/include/php/ext/standard/datetime.h |
| | | file path=usr/php/5.2/include/php/ext/standard/dl.h |
| | | file path=usr/php/5.2/include/php/ext/standard/exec.h |
| | | file path=usr/php/5.2/include/php/ext/standard/file.h |
| | | file path=usr/php/5.2/include/php/ext/standard/flock_compat.h |
| | | file path=usr/php/5.2/include/php/ext/standard/fsock.h |
| | | file path=usr/php/5.2/include/php/ext/standard/head.h |
| | | file path=usr/php/5.2/include/php/ext/standard/html.h |
| | | file path=usr/php/5.2/include/php/ext/standard/info.h |
| | | file path=usr/php/5.2/include/php/ext/standard/md5.h |
| | | file path=usr/php/5.2/include/php/ext/standard/microtime.h |
| | | file path=usr/php/5.2/include/php/ext/standard/pack.h |
| | | file path=usr/php/5.2/include/php/ext/standard/pageinfo.h |
| | | file path=usr/php/5.2/include/php/ext/standard/php_array.h |
| | | file path=usr/php/5.2/include/php/ext/standard/php_assert.h |
| | | file path=usr/php/5.2/include/php/ext/standard/php_browscap.h |
| | | file path=usr/php/5.2/include/php/ext/standard/php_crypt.h |
| | | file path=usr/php/5.2/include/php/ext/standard/php_dir.h |
| | | file path=usr/php/5.2/include/php/ext/standard/php_dns.h |
| | | file path=usr/php/5.2/include/php/ext/standard/php_ext_syslog.h |
| | | file path=usr/php/5.2/include/php/ext/standard/php_filestat.h |
| | | file path=usr/php/5.2/include/php/ext/standard/php_fopen_wrappers.h |
| | | file path=usr/php/5.2/include/php/ext/standard/php_ftok.h |
| | | file path=usr/php/5.2/include/php/ext/standard/php_http.h |
| | | file path=usr/php/5.2/include/php/ext/standard/php_image.h |
| | | file path=usr/php/5.2/include/php/ext/standard/php_incomplete_class.h |
| | | file path=usr/php/5.2/include/php/ext/standard/php_iptc.h |
| | | file path=usr/php/5.2/include/php/ext/standard/php_lcg.h |
| | | file path=usr/php/5.2/include/php/ext/standard/php_link.h |
| | | file path=usr/php/5.2/include/php/ext/standard/php_mail.h |
| | | file path=usr/php/5.2/include/php/ext/standard/php_math.h |
| | | file path=usr/php/5.2/include/php/ext/standard/php_metaphone.h |
| | | file path=usr/php/5.2/include/php/ext/standard/php_rand.h |
| | | file path=usr/php/5.2/include/php/ext/standard/php_smart_str.h |
| | | file path=usr/php/5.2/include/php/ext/standard/php_smart_str_public.h |
| | | file path=usr/php/5.2/include/php/ext/standard/php_standard.h |
| | | file path=usr/php/5.2/include/php/ext/standard/php_string.h |
| | | file path=usr/php/5.2/include/php/ext/standard/php_type.h |
| | | file path=usr/php/5.2/include/php/ext/standard/php_uuencode.h |
| | | file path=usr/php/5.2/include/php/ext/standard/php_var.h |
| | | file path=usr/php/5.2/include/php/ext/standard/php_versioning.h |
| | | file path=usr/php/5.2/include/php/ext/standard/proc_open.h |
| | | file path=usr/php/5.2/include/php/ext/standard/quot_print.h |
| | | file path=usr/php/5.2/include/php/ext/standard/reg.h |
| | | file path=usr/php/5.2/include/php/ext/standard/scanf.h |
| | | file path=usr/php/5.2/include/php/ext/standard/sha1.h |
| | | file path=usr/php/5.2/include/php/ext/standard/streamsfuncs.h |
| | | file path=usr/php/5.2/include/php/ext/standard/uniqid.h |
| | | file path=usr/php/5.2/include/php/ext/standard/url.h |
| | | file path=usr/php/5.2/include/php/ext/standard/url_scanner_ex.h |
| | | file path=usr/php/5.2/include/php/ext/xml/expat_compat.h |
| | | file path=usr/php/5.2/include/php/ext/xml/php_xml.h |
| | | file path=usr/php/5.2/include/php/main/SAPI.h |
| | | file path=usr/php/5.2/include/php/main/build-defs.h |
| | | file path=usr/php/5.2/include/php/main/config.w32.h |
| | | file path=usr/php/5.2/include/php/main/fopen_wrappers.h |
| | | file path=usr/php/5.2/include/php/main/logos.h |
| | | file path=usr/php/5.2/include/php/main/php.h |
| | | file path=usr/php/5.2/include/php/main/php3_compat.h |
| | | file path=usr/php/5.2/include/php/main/php_compat.h |
| | | file path=usr/php/5.2/include/php/main/php_config.h |
| | | file path=usr/php/5.2/include/php/main/php_content_types.h |
| | | file path=usr/php/5.2/include/php/main/php_globals.h |
| | | file path=usr/php/5.2/include/php/main/php_ini.h |
| | | file path=usr/php/5.2/include/php/main/php_logos.h |
| | | file path=usr/php/5.2/include/php/main/php_main.h |
| | | file path=usr/php/5.2/include/php/main/php_memory_streams.h |
| | | file path=usr/php/5.2/include/php/main/php_network.h |
| | | file path=usr/php/5.2/include/php/main/php_open_temporary_file.h |
| | | file path=usr/php/5.2/include/php/main/php_output.h |
| | | file path=usr/php/5.2/include/php/main/php_reentrancy.h |
| | | file path=usr/php/5.2/include/php/main/php_regex.h |
| | | file path=usr/php/5.2/include/php/main/php_scandir.h |
| | | file path=usr/php/5.2/include/php/main/php_streams.h |
| | | file path=usr/php/5.2/include/php/main/php_syslog.h |
| | | file path=usr/php/5.2/include/php/main/php_ticks.h |
| | | file path=usr/php/5.2/include/php/main/php_variables.h |
| | | file path=usr/php/5.2/include/php/main/php_version.h |
| | | file path=usr/php/5.2/include/php/main/rfc1867.h |
| | | file path=usr/php/5.2/include/php/main/safe_mode.h |
| | | file path=usr/php/5.2/include/php/main/snprintf.h |
| | | file path=usr/php/5.2/include/php/main/spprintf.h |
| | | file path=usr/php/5.2/include/php/main/streams/php_stream_context.h |
| | | file path=usr/php/5.2/include/php/main/streams/php_stream_filter_api.h |
| | | file path=usr/php/5.2/include/php/main/streams/php_stream_mmap.h |
| | | file path=usr/php/5.2/include/php/main/streams/php_stream_plain_wrapper.h |
| | | file path=usr/php/5.2/include/php/main/streams/php_stream_transport.h |
| | | file path=usr/php/5.2/include/php/main/streams/php_stream_userspace.h |
| | | file path=usr/php/5.2/include/php/main/streams/php_streams_int.h |
| | | file path=usr/php/5.2/include/php/main/win95nt.h |
| | | file path=usr/php/5.2/include/php/regex/cclass.h |
| | | file path=usr/php/5.2/include/php/regex/cname.h |
| | | file path=usr/php/5.2/include/php/regex/regex.h |
| | | file path=usr/php/5.2/include/php/regex/regex2.h |
| | | file path=usr/php/5.2/include/php/regex/regex_extra.h |
| | | file path=usr/php/5.2/include/php/regex/utils.h |
| | | file path=usr/php/5.2/lib/build/Makefile.global |
| | | file path=usr/php/5.2/lib/build/acinclude.m4 |
| | | file path=usr/php/5.2/lib/build/config.guess mode=0555 |
| | | file path=usr/php/5.2/lib/build/config.sub mode=0555 |
| | | file path=usr/php/5.2/lib/build/libtool.m4 |
| | | file path=usr/php/5.2/lib/build/ltmain.sh |
| | | file path=usr/php/5.2/lib/build/mkdep.awk |
| | | file path=usr/php/5.2/lib/build/phpize.m4 |
| | | file path=usr/php/5.2/lib/build/run-tests.php |
| | | file path=usr/php/5.2/lib/build/scan_makefile_in.awk |
| | | file path=usr/php/5.2/lib/build/shtool mode=0555 |
| | | file path=usr/php/5.2/man/man1/php-config.1 |
| | | file path=usr/php/5.2/man/man1/php.1 |
| | | file path=usr/php/5.2/man/man1/phpize.1 |
| | | file path=usr/php/5.2/modules/bz2.so |
| | | file path=usr/php/5.2/modules/curl.so |
| | | file path=usr/php/5.2/modules/ftp.so |
| | | file path=usr/php/5.2/modules/gd.so |
| | | file path=usr/php/5.2/modules/gettext.so |
| | | file path=usr/php/5.2/modules/iconv.so |
| | | file path=usr/php/5.2/modules/imap.so |
| | | file path=usr/php/5.2/modules/ldap.so |
| | | file path=usr/php/5.2/modules/mcrypt.so |
| | | file path=usr/php/5.2/modules/openssl.so |
| | | file path=usr/php/5.2/modules/pdo.so |
| | | file path=usr/php/5.2/modules/pdo_sqlite.so |
| | | file path=usr/php/5.2/modules/snmp.so |
| | | file path=usr/php/5.2/modules/sqlite.so |
| | | file path=usr/php/5.2/modules/tidy.so |
| | | file path=usr/php/5.2/nsapi/libphp5.so |
| | | file path=usr/php/5.2/samples/scripts/configure-sun-webserver mode=0555 |
| | | file path=usr/php/5.2/zts-modules/bz2.so |
| | | file path=usr/php/5.2/zts-modules/curl.so |
| | | file path=usr/php/5.2/zts-modules/ftp.so |
| | | file path=usr/php/5.2/zts-modules/gd.so |
| | | file path=usr/php/5.2/zts-modules/gettext.so |
| | | file path=usr/php/5.2/zts-modules/iconv.so |
| | | file path=usr/php/5.2/zts-modules/imap.so |
| | | file path=usr/php/5.2/zts-modules/ldap.so |
| | | file path=usr/php/5.2/zts-modules/mcrypt.so |
| | | file path=usr/php/5.2/zts-modules/openssl.so |
| | | file path=usr/php/5.2/zts-modules/pdo.so |
| | | file path=usr/php/5.2/zts-modules/pdo_sqlite.so |
| | | file path=usr/php/5.2/zts-modules/snmp.so |
| | | file path=usr/php/5.2/zts-modules/sqlite.so |
| | | file path=usr/php/5.2/zts-modules/tidy.so |
| | | file path=usr/share/man/man1/php.1 mangler.bypass=true |
| | | link path=usr/php/5.2/bin/configure-webserver7 \ |
| | | target=../samples/scripts/configure-sun-webserver |
| | | link path=usr/php/bin target=./5.2/bin |
| | | link path=usr/php/include target=./5.2/include |
| | | link path=usr/php/lib target=./5.2/lib |
| | | link path=usr/php/man target=./5.2/man |
| | | link path=usr/php/modules target=./5.2/modules |
| | | |
| | | legacy pkg=SUNWphp52r desc="PHP Server 5.2 (Root components)" \ |
| | | name="PHP Server 5.2 (Root)" |
| | | legacy pkg=SUNWphp52u desc="PHP Server Version 5.2" \ |
| | | name="PHP Server Version 5.2" |
| | | |
| | | depend fmri=library/libidn@1.19 type=require |
| | | depend fmri=library/libtool/libltdl@1.5.22 type=require |
| | | depend fmri=system/core-os type=require |
| | | depend fmri=system/library/security/gss type=require |
| | | depend fmri=x11/library/libx11@1.4.3 type=require |
New file |
| | |
| | | /* |
| | | * -------------------------------------------------------------------- |
| | | * The PHP License, version 3.01 |
| | | * Copyright (c) 1999 - 2010 The PHP Group. All rights reserved. |
| | | * -------------------------------------------------------------------- |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, is permitted provided that the following conditions |
| | | * are met: |
| | | * |
| | | * 1. Redistributions of source code must retain the above copyright |
| | | * notice, this list of conditions and the following disclaimer. |
| | | * |
| | | * 2. Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in |
| | | * the documentation and/or other materials provided with the |
| | | * distribution. |
| | | * |
| | | * 3. The name "PHP" must not be used to endorse or promote products |
| | | * derived from this software without prior written permission. For |
| | | * written permission, please contact group@php.net. |
| | | * |
| | | * 4. Products derived from this software may not be called "PHP", nor |
| | | * may "PHP" appear in their name, without prior written permission |
| | | * from group@php.net. You may indicate that your software works in |
| | | * conjunction with PHP by saying "Foo for PHP" instead of calling |
| | | * it "PHP Foo" or "phpfoo" |
| | | * |
| | | * 5. The PHP Group may publish revised and/or new versions of the |
| | | * license from time to time. Each version will be given a |
| | | * distinguishing version number. |
| | | * Once covered code has been published under a particular version |
| | | * of the license, you may always continue to use it under the terms |
| | | * of that version. You may also choose to use such covered code |
| | | * under the terms of any subsequent version of the license |
| | | * published by the PHP Group. No one other than the PHP Group has |
| | | * the right to modify the terms applicable to covered code created |
| | | * under this License. |
| | | * |
| | | * 6. Redistributions of any form whatsoever must retain the following |
| | | * acknowledgment: |
| | | * "This product includes PHP software, freely available from |
| | | * <http://www.php.net/software/>". |
| | | * |
| | | * THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND |
| | | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| | | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
| | | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP |
| | | * DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
| | | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| | | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| | | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| | | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| | | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| | | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| | | * OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | * |
| | | * -------------------------------------------------------------------- |
| | | * |
| | | * This software consists of voluntary contributions made by many |
| | | * individuals on behalf of the PHP Group. |
| | | * |
| | | * The PHP Group can be contacted via Email at group@php.net. |
| | | * |
| | | * For more information on the PHP Group and the PHP project, |
| | | * please see <http://www.php.net>. |
| | | * |
| | | * PHP includes the Zend Engine, freely available at |
| | | * <http://www.zend.com>. |
| | | */ |
| | | |
| | | /* |
| | | * +----------------------------------------------------------------------+ |
| | | * | PHP Version 4 | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Copyright (c) 1997-2003 The PHP Group | |
| | | * +----------------------------------------------------------------------+ |
| | | * | This source file is subject to version 2.02 of the PHP license, | |
| | | * | that is bundled with this package in the file LICENSE, and is | |
| | | * | available at through the world-wide-web at | |
| | | * | http://www.php.net/license/2_02.txt. | |
| | | * | If you did not receive a copy of the PHP license and are unable to | |
| | | * | obtain it through the world-wide-web, please send a note to | |
| | | * | license@php.net so we can mail you a copy immediately. | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Author: Marcin Gibula <mg@iceni.pl> | |
| | | * +----------------------------------------------------------------------+ |
| | | * |
| | | * |
| | | */ |
| | | |
| | | /* |
| | | * +----------------------------------------------------------------------+ |
| | | * | PHP Version 5 | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Copyright (c) 1997-2005 The PHP Group | |
| | | * +----------------------------------------------------------------------+ |
| | | * | This source file is subject to version 3.0 of the PHP license, | |
| | | * | that is bundled with this package in the file LICENSE, and is | |
| | | * | available through the world-wide-web at the following url: | |
| | | * | http://www.php.net/license/3_0.txt. | |
| | | * | If you did not receive a copy of the PHP license and are unable to | |
| | | * | obtain it through the world-wide-web, please send a note to | |
| | | * | license@php.net so we can mail you a copy immediately. | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Author: Wez Furlong <wez@omniti.com> | |
| | | * +----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | For APC extension: |
| | | -------------------------------------------------------------------- |
| | | The PHP License, version 3.01 |
| | | Copyright (c) 1999 - 2008 The PHP Group. All rights reserved. |
| | | -------------------------------------------------------------------- |
| | | |
| | | Redistribution and use in source and binary forms, with or without |
| | | modification, is permitted provided that the following conditions |
| | | are met: |
| | | |
| | | 1. Redistributions of source code must retain the above copyright |
| | | notice, this list of conditions and the following disclaimer. |
| | | |
| | | 2. Redistributions in binary form must reproduce the above copyright |
| | | notice, this list of conditions and the following disclaimer in |
| | | the documentation and/or other materials provided with the |
| | | distribution. |
| | | |
| | | 3. The name "PHP" must not be used to endorse or promote products |
| | | derived from this software without prior written permission. For |
| | | written permission, please contact group@php.net. |
| | | |
| | | 4. Products derived from this software may not be called "PHP", nor |
| | | may "PHP" appear in their name, without prior written permission |
| | | from group@php.net. You may indicate that your software works in |
| | | conjunction with PHP by saying "Foo for PHP" instead of calling |
| | | it "PHP Foo" or "phpfoo" |
| | | |
| | | 5. The PHP Group may publish revised and/or new versions of the |
| | | license from time to time. Each version will be given a |
| | | distinguishing version number. |
| | | Once covered code has been published under a particular version |
| | | of the license, you may always continue to use it under the terms |
| | | of that version. You may also choose to use such covered code |
| | | under the terms of any subsequent version of the license |
| | | published by the PHP Group. No one other than the PHP Group has |
| | | the right to modify the terms applicable to covered code created |
| | | under this License. |
| | | |
| | | 6. Redistributions of any form whatsoever must retain the following |
| | | acknowledgment: |
| | | "This product includes PHP software, freely available from |
| | | <http://www.php.net/software/>". |
| | | |
| | | THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND |
| | | ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| | | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
| | | PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP |
| | | DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
| | | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| | | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| | | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| | | HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| | | STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| | | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| | | OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | |
| | | -------------------------------------------------------------------- |
| | | |
| | | This software consists of voluntary contributions made by many |
| | | individuals on behalf of the PHP Group. |
| | | |
| | | The PHP Group can be contacted via Email at group@php.net. |
| | | |
| | | For more information on the PHP Group and the PHP project, |
| | | please see <http://www.php.net>. |
| | | |
| | | PHP includes the Zend Engine, freely available at |
| | | <http://www.zend.com>. |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | set name=pkg.fmri value=pkg:/web/php-52/extension/php-apc@3.0.19,$(BUILD_VERSION) |
| | | set name=pkg.description \ |
| | | value="PHP-APC extension provides PHP script caching for PHP" |
| | | set name=pkg.summary value="APC extension module for PHP" |
| | | set name=info.classification \ |
| | | value="org.opensolaris.category.2008:Development/PHP" |
| | | set name=info.source_url value=http://pecl.php.net/get/APC-3.0.19.tgz |
| | | set name=info.upstream_url value=http://pecl.php.net/package/APC |
| | | set name=opensolaris.arc_url \ |
| | | value=http://arc.opensolaris.org/caselog/LSARC/2008/538 |
| | | set name=org.opensolaris.consolidation value=$(CONSOLIDATION) |
| | | |
| | | license php-apc.license license='PHP' |
| | | |
| | | dir path=etc |
| | | dir path=etc/apache2 |
| | | dir path=etc/apache2/2.2 |
| | | dir path=etc/apache2/2.2/samples-conf.d |
| | | dir path=etc/php |
| | | dir path=etc/php/5.2 |
| | | dir path=etc/php/5.2/conf.d |
| | | dir path=etc/php/5.2/zts-conf.d |
| | | dir path=usr |
| | | dir path=usr/php |
| | | dir path=usr/php/5.2 |
| | | dir path=usr/php/5.2/modules |
| | | dir path=usr/php/5.2/samples |
| | | dir path=usr/php/5.2/samples/apc |
| | | dir path=usr/php/5.2/zts-modules |
| | | file path=etc/apache2/2.2/samples-conf.d/php-apc-stats.conf mode=0644 \ |
| | | original_name=SUNWphp52-apc:etc/apache2/2.2/samples-conf.d/php-apc-stats.conf \ |
| | | preserve=renamenew |
| | | file path=etc/php/5.2/conf.d/apc.ini mode=0644 \ |
| | | original_name=SUNWphp52-apc:etc/php/5.2/conf.d/apc.ini \ |
| | | preserve=renamenew |
| | | file path=etc/php/5.2/zts-conf.d/apc.ini mode=0644 \ |
| | | original_name=SUNWphp52-apc:etc/php/5.2/zts-conf.d/apc.ini \ |
| | | preserve=renamenew |
| | | file path=usr/php/5.2/modules/apc.so |
| | | file path=usr/php/5.2/samples/apc/apc.php mode=0555 |
| | | file path=usr/php/5.2/zts-modules/apc.so |
| | | |
| | | legacy pkg=SUNWphp52r-apc \ |
| | | desc="PHP-APC(3.0.19) extension provides PHP script caching for PHP(5.2) (Root)" \ |
| | | name="APC extension module for PHP (Root)" |
| | | legacy pkg=SUNWphp52u-apc \ |
| | | desc="PHP-APC(3.0.19) extension provides PHP script caching for PHP(5.2)" \ |
| | | name="APC extension module for PHP" |
| | | |
| | | depend fmri=web/php-52@5.2.17 type=require |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | include ../../../make-rules/shared-macros.mk |
| | | |
| | | COMPONENT_NAME= php |
| | | COMPONENT_VERSION= 5.2.17 |
| | | PHP_REL= 5.2 |
| | | COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
| | | COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
| | | COMPONENT_ARCHIVE_HASH= sha1:5ba7edcb5ea187687001c4ccdbb94ac48f77fa92 |
| | | COMPONENT_ARCHIVE_URL= http://us.php.net/get/$(COMPONENT_ARCHIVE)/from/this/mirror |
| | | |
| | | PATCH_DIR = ../php-sapi/patches |
| | | |
| | | include $(WS_TOP)/make-rules/prep.mk |
| | | include $(WS_TOP)/make-rules/configure.mk |
| | | include $(WS_TOP)/make-rules/ips.mk |
| | | |
| | | include ../common.mk |
| | | include ../php-sapi/php.mk |
| | | |
| | | CONFIGURE_OPTIONS += \ |
| | | --disable-all \ |
| | | $(COMMON_CONFIG_OPTIONS) \ |
| | | --with-config-file-path=$(NSAPI_CONF_DIR) \ |
| | | --with-config-file-scan-dir=$(MODULES_CONF_DIR) \ |
| | | --disable-discard-path \ |
| | | --enable-cgi \ |
| | | --enable-fastcgi \ |
| | | --enable-force-cgi-redirect |
| | | |
| | | CONFIGURE_ENV += $(CONF_ENVLINE) |
| | | |
| | | COMPONENT_INSTALL_TARGETS = install-sapi |
| | | |
| | | # common targets |
| | | build: $(BUILD_32) |
| | | |
| | | install: $(INSTALL_32) |
| | | |
| | | test: $(TEST_32) |
| | | |
| | | # php-sapi does the publish |
| | | publish: install |
| | | |
| | | ## causes loop in gmake |
| | | ##../php-sapi/build/$(MACH32)/.installed: |
| | | ## (cd ../php-sapi ; $(MAKE) install) |
| | | ## |
| | | ##$(BUILD_DIR_32)/.configured: ../php-sapi/build/$(MACH32)/.installed |
| | | |
| | | BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
| | | |
| | | include $(WS_TOP)/make-rules/depend.mk |
New file |
| | |
| | | php-5_2/php-cgi: php-5_2/php-sapi |
New file |
| | |
| | | -------------------------------------------------------------------- |
| | | The PHP License, version 3.01 |
| | | Copyright (c) 1999 - 2010 The PHP Group. All rights reserved. |
| | | -------------------------------------------------------------------- |
| | | |
| | | Redistribution and use in source and binary forms, with or without |
| | | modification, is permitted provided that the following conditions |
| | | are met: |
| | | |
| | | 1. Redistributions of source code must retain the above copyright |
| | | notice, this list of conditions and the following disclaimer. |
| | | |
| | | 2. Redistributions in binary form must reproduce the above copyright |
| | | notice, this list of conditions and the following disclaimer in |
| | | the documentation and/or other materials provided with the |
| | | distribution. |
| | | |
| | | 3. The name "PHP" must not be used to endorse or promote products |
| | | derived from this software without prior written permission. For |
| | | written permission, please contact group@php.net. |
| | | |
| | | 4. Products derived from this software may not be called "PHP", nor |
| | | may "PHP" appear in their name, without prior written permission |
| | | from group@php.net. You may indicate that your software works in |
| | | conjunction with PHP by saying "Foo for PHP" instead of calling |
| | | it "PHP Foo" or "phpfoo" |
| | | |
| | | 5. The PHP Group may publish revised and/or new versions of the |
| | | license from time to time. Each version will be given a |
| | | distinguishing version number. |
| | | Once covered code has been published under a particular version |
| | | of the license, you may always continue to use it under the terms |
| | | of that version. You may also choose to use such covered code |
| | | under the terms of any subsequent version of the license |
| | | published by the PHP Group. No one other than the PHP Group has |
| | | the right to modify the terms applicable to covered code created |
| | | under this License. |
| | | |
| | | 6. Redistributions of any form whatsoever must retain the following |
| | | acknowledgment: |
| | | "This product includes PHP software, freely available from |
| | | <http://www.php.net/software/>". |
| | | |
| | | THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND |
| | | ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| | | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
| | | PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP |
| | | DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
| | | INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| | | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| | | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| | | HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| | | STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| | | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| | | OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | |
| | | -------------------------------------------------------------------- |
| | | |
| | | This software consists of voluntary contributions made by many |
| | | individuals on behalf of the PHP Group. |
| | | |
| | | The PHP Group can be contacted via Email at group@php.net. |
| | | |
| | | For more information on the PHP Group and the PHP project, |
| | | please see <http://www.php.net>. |
| | | |
| | | PHP includes the Zend Engine, freely available at |
| | | <http://www.zend.com>. |
New file |
| | |
| | | /* |
| | | * -------------------------------------------------------------------- |
| | | * The PHP License, version 3.01 |
| | | * Copyright (c) 1999 - 2010 The PHP Group. All rights reserved. |
| | | * -------------------------------------------------------------------- |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, is permitted provided that the following conditions |
| | | * are met: |
| | | * |
| | | * 1. Redistributions of source code must retain the above copyright |
| | | * notice, this list of conditions and the following disclaimer. |
| | | * |
| | | * 2. Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in |
| | | * the documentation and/or other materials provided with the |
| | | * distribution. |
| | | * |
| | | * 3. The name "PHP" must not be used to endorse or promote products |
| | | * derived from this software without prior written permission. For |
| | | * written permission, please contact group@php.net. |
| | | * |
| | | * 4. Products derived from this software may not be called "PHP", nor |
| | | * may "PHP" appear in their name, without prior written permission |
| | | * from group@php.net. You may indicate that your software works in |
| | | * conjunction with PHP by saying "Foo for PHP" instead of calling |
| | | * it "PHP Foo" or "phpfoo" |
| | | * |
| | | * 5. The PHP Group may publish revised and/or new versions of the |
| | | * license from time to time. Each version will be given a |
| | | * distinguishing version number. |
| | | * Once covered code has been published under a particular version |
| | | * of the license, you may always continue to use it under the terms |
| | | * of that version. You may also choose to use such covered code |
| | | * under the terms of any subsequent version of the license |
| | | * published by the PHP Group. No one other than the PHP Group has |
| | | * the right to modify the terms applicable to covered code created |
| | | * under this License. |
| | | * |
| | | * 6. Redistributions of any form whatsoever must retain the following |
| | | * acknowledgment: |
| | | * "This product includes PHP software, freely available from |
| | | * <http://www.php.net/software/>". |
| | | * |
| | | * THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND |
| | | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| | | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
| | | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP |
| | | * DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
| | | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| | | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| | | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| | | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| | | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| | | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| | | * OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | * |
| | | * -------------------------------------------------------------------- |
| | | * |
| | | * This software consists of voluntary contributions made by many |
| | | * individuals on behalf of the PHP Group. |
| | | * |
| | | * The PHP Group can be contacted via Email at group@php.net. |
| | | * |
| | | * For more information on the PHP Group and the PHP project, |
| | | * please see <http://www.php.net>. |
| | | * |
| | | * PHP includes the Zend Engine, freely available at |
| | | * <http://www.zend.com>. |
| | | */ |
| | | |
| | | /* |
| | | * +----------------------------------------------------------------------+ |
| | | * | PHP Version 4 | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Copyright (c) 1997-2003 The PHP Group | |
| | | * +----------------------------------------------------------------------+ |
| | | * | This source file is subject to version 2.02 of the PHP license, | |
| | | * | that is bundled with this package in the file LICENSE, and is | |
| | | * | available at through the world-wide-web at | |
| | | * | http://www.php.net/license/2_02.txt. | |
| | | * | If you did not receive a copy of the PHP license and are unable to | |
| | | * | obtain it through the world-wide-web, please send a note to | |
| | | * | license@php.net so we can mail you a copy immediately. | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Author: Marcin Gibula <mg@iceni.pl> | |
| | | * +----------------------------------------------------------------------+ |
| | | * |
| | | * |
| | | */ |
| | | |
| | | /* |
| | | * +----------------------------------------------------------------------+ |
| | | * | PHP Version 5 | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Copyright (c) 1997-2005 The PHP Group | |
| | | * +----------------------------------------------------------------------+ |
| | | * | This source file is subject to version 3.0 of the PHP license, | |
| | | * | that is bundled with this package in the file LICENSE, and is | |
| | | * | available through the world-wide-web at the following url: | |
| | | * | http://www.php.net/license/3_0.txt. | |
| | | * | If you did not receive a copy of the PHP license and are unable to | |
| | | * | obtain it through the world-wide-web, please send a note to | |
| | | * | license@php.net so we can mail you a copy immediately. | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Author: Wez Furlong <wez@omniti.com> | |
| | | * +----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | |
| | | For idn extension: |
| | | /* |
| | | * +----------------------------------------------------------------------+ |
| | | * | PHP Version 5 | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Copyright (c) 1997-2005 The PHP Group | |
| | | * +----------------------------------------------------------------------+ |
| | | * | This source file is subject to version 3.0 of the PHP license, | |
| | | * | that is bundled with this package in the file LICENSE, and is | |
| | | * | available through the world-wide-web at the following url: | |
| | | * | http://www.php.net/license/3_0.txt. | |
| | | * | If you did not receive a copy of the PHP license and are unable to | |
| | | * | obtain it through the world-wide-web, please send a note to | |
| | | * | license@php.net so we can mail you a copy immediately. | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Author: Wez Furlong <wez@omniti.com> | |
| | | * +----------------------------------------------------------------------+ |
| | | */ |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | set name=pkg.fmri value=pkg:/web/php-52/extension/php-idn@0.2.0,$(BUILD_VERSION) |
| | | set name=pkg.summary value="IDN extension module for PHP" |
| | | set name=info.classification \ |
| | | value="org.opensolaris.category.2008:Development/PHP" |
| | | set name=info.source_url value=http://pecl.php.net/get/idn-0.2.0.tgz |
| | | set name=info.upstream_url value=http://pecl.php.net/package/idn |
| | | set name=opensolaris.arc_url \ |
| | | value=http://arc.opensolaris.org/caselog/LSARC/2008/538 |
| | | set name=org.opensolaris.consolidation value=$(CONSOLIDATION) |
| | | |
| | | license php-idn.license license='PHP, GPLv2, LGPLv2, Apache v2.0' |
| | | |
| | | dir path=etc |
| | | dir path=etc/php |
| | | dir path=etc/php/5.2 |
| | | dir path=etc/php/5.2/conf.d |
| | | dir path=etc/php/5.2/zts-conf.d |
| | | dir path=usr |
| | | dir path=usr/php |
| | | dir path=usr/php/5.2 |
| | | dir path=usr/php/5.2/modules |
| | | dir path=usr/php/5.2/zts-modules |
| | | file path=etc/php/5.2/conf.d/idn.ini mode=0644 \ |
| | | original_name=SUNWphp52-idn:etc/php/5.2/conf.d/idn.ini preserve=renamenew |
| | | file path=etc/php/5.2/zts-conf.d/idn.ini mode=0644 \ |
| | | original_name=SUNWphp52-idn:etc/php/5.2/zts-conf.d/idn.ini \ |
| | | preserve=renamenew |
| | | file path=usr/php/5.2/modules/idn.so |
| | | file path=usr/php/5.2/zts-modules/idn.so |
| | | |
| | | legacy pkg=SUNWphp52r-idn \ |
| | | desc="PHP-IDN(0.2.0) extension module for PHP(5.2) (Root)" \ |
| | | name="IDN extension module for PHP (Root)" |
| | | legacy pkg=SUNWphp52u-idn \ |
| | | desc="PHP-IDN(0.2.0) extension module for PHP(5.2)" \ |
| | | name="IDN extension module for PHP" |
| | | |
| | | depend fmri=web/php-52@5.2.17 type=require |
New file |
| | |
| | | /* |
| | | * -------------------------------------------------------------------- |
| | | * The PHP License, version 3.01 |
| | | * Copyright (c) 1999 - 2010 The PHP Group. All rights reserved. |
| | | * -------------------------------------------------------------------- |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, is permitted provided that the following conditions |
| | | * are met: |
| | | * |
| | | * 1. Redistributions of source code must retain the above copyright |
| | | * notice, this list of conditions and the following disclaimer. |
| | | * |
| | | * 2. Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in |
| | | * the documentation and/or other materials provided with the |
| | | * distribution. |
| | | * |
| | | * 3. The name "PHP" must not be used to endorse or promote products |
| | | * derived from this software without prior written permission. For |
| | | * written permission, please contact group@php.net. |
| | | * |
| | | * 4. Products derived from this software may not be called "PHP", nor |
| | | * may "PHP" appear in their name, without prior written permission |
| | | * from group@php.net. You may indicate that your software works in |
| | | * conjunction with PHP by saying "Foo for PHP" instead of calling |
| | | * it "PHP Foo" or "phpfoo" |
| | | * |
| | | * 5. The PHP Group may publish revised and/or new versions of the |
| | | * license from time to time. Each version will be given a |
| | | * distinguishing version number. |
| | | * Once covered code has been published under a particular version |
| | | * of the license, you may always continue to use it under the terms |
| | | * of that version. You may also choose to use such covered code |
| | | * under the terms of any subsequent version of the license |
| | | * published by the PHP Group. No one other than the PHP Group has |
| | | * the right to modify the terms applicable to covered code created |
| | | * under this License. |
| | | * |
| | | * 6. Redistributions of any form whatsoever must retain the following |
| | | * acknowledgment: |
| | | * "This product includes PHP software, freely available from |
| | | * <http://www.php.net/software/>". |
| | | * |
| | | * THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND |
| | | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| | | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
| | | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP |
| | | * DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
| | | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| | | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| | | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| | | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| | | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| | | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| | | * OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | * |
| | | * -------------------------------------------------------------------- |
| | | * |
| | | * This software consists of voluntary contributions made by many |
| | | * individuals on behalf of the PHP Group. |
| | | * |
| | | * The PHP Group can be contacted via Email at group@php.net. |
| | | * |
| | | * For more information on the PHP Group and the PHP project, |
| | | * please see <http://www.php.net>. |
| | | * |
| | | * PHP includes the Zend Engine, freely available at |
| | | * <http://www.zend.com>. |
| | | */ |
| | | |
| | | /* |
| | | * +----------------------------------------------------------------------+ |
| | | * | PHP Version 4 | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Copyright (c) 1997-2003 The PHP Group | |
| | | * +----------------------------------------------------------------------+ |
| | | * | This source file is subject to version 2.02 of the PHP license, | |
| | | * | that is bundled with this package in the file LICENSE, and is | |
| | | * | available at through the world-wide-web at | |
| | | * | http://www.php.net/license/2_02.txt. | |
| | | * | If you did not receive a copy of the PHP license and are unable to | |
| | | * | obtain it through the world-wide-web, please send a note to | |
| | | * | license@php.net so we can mail you a copy immediately. | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Author: Marcin Gibula <mg@iceni.pl> | |
| | | * +----------------------------------------------------------------------+ |
| | | * |
| | | * |
| | | */ |
| | | |
| | | /* |
| | | * +----------------------------------------------------------------------+ |
| | | * | PHP Version 5 | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Copyright (c) 1997-2005 The PHP Group | |
| | | * +----------------------------------------------------------------------+ |
| | | * | This source file is subject to version 3.0 of the PHP license, | |
| | | * | that is bundled with this package in the file LICENSE, and is | |
| | | * | available through the world-wide-web at the following url: | |
| | | * | http://www.php.net/license/3_0.txt. | |
| | | * | If you did not receive a copy of the PHP license and are unable to | |
| | | * | obtain it through the world-wide-web, please send a note to | |
| | | * | license@php.net so we can mail you a copy immediately. | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Author: Wez Furlong <wez@omniti.com> | |
| | | * +----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | For Memcache extension: |
| | | /* |
| | | * +----------------------------------------------------------------------+ |
| | | * | PHP Version 5 | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Copyright (c) 1997-2007 The PHP Group | |
| | | * +----------------------------------------------------------------------+ |
| | | * | This source file is subject to version 3.0 of the PHP license, | |
| | | * | that is bundled with this package in the file LICENSE, and is | |
| | | * | available through the world-wide-web at the following url: | |
| | | * | http://www.php.net/license/3_0.txt. | |
| | | * | If you did not receive a copy of the PHP license and are unable to | |
| | | * | obtain it through the world-wide-web, please send a note to | |
| | | * | license@php.net so we can mail you a copy immediately. | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Authors: Antony Dovgal <tony2001@phpclub.net> | |
| | | * | Mikael Johansson <mikael AT synd DOT info> | |
| | | * +----------------------------------------------------------------------+ |
| | | */ |
| | | |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | set name=pkg.fmri value=pkg:/web/php-52/extension/php-memcache@2.2.5,$(BUILD_VERSION) |
| | | set name=pkg.description value="PHP-Memcache extension to store PHP sessions in Memcached server" |
| | | set name=pkg.summary value="Memcache extension module for PHP" |
| | | set name=info.classification \ |
| | | value="org.opensolaris.category.2008:Development/PHP" |
| | | set name=info.source_url value=http://pecl.php.net/get/memcache-2.2.5.tgz |
| | | set name=info.upstream_url value=http://pecl.php.net/package/memcache |
| | | set name=opensolaris.arc_url \ |
| | | value=http://arc.opensolaris.org/caselog/LSARC/2008/538 |
| | | set name=org.opensolaris.consolidation value=$(CONSOLIDATION) |
| | | |
| | | license php-memcache.license license='PHP, GPLv2, LGPLv2, Apache v2.0' |
| | | |
| | | dir path=etc |
| | | dir path=etc/apache2 |
| | | dir path=etc/apache2/2.2 |
| | | dir path=etc/apache2/2.2/samples-conf.d |
| | | dir path=etc/php |
| | | dir path=etc/php/5.2 |
| | | dir path=etc/php/5.2/conf.d |
| | | dir path=etc/php/5.2/zts-conf.d |
| | | dir path=usr |
| | | dir path=usr/php |
| | | dir path=usr/php/5.2 |
| | | dir path=usr/php/5.2/modules |
| | | dir path=usr/php/5.2/samples |
| | | dir path=usr/php/5.2/samples/memcache |
| | | dir path=usr/php/5.2/zts-modules |
| | | file path=etc/apache2/2.2/samples-conf.d/php-memcache-stats.conf mode=0644 \ |
| | | original_name=SUNWphp52-memcache:etc/apache2/2.2/samples-conf.d/php-memcache-stats.conf \ |
| | | preserve=renamenew |
| | | file path=etc/php/5.2/conf.d/memcache.ini mode=0644 \ |
| | | original_name=SUNWphp52-memcache:etc/php/5.2/conf.d/memcache.ini \ |
| | | preserve=renamenew |
| | | file path=etc/php/5.2/zts-conf.d/memcache.ini mode=0644 \ |
| | | original_name=SUNWphp52-memcache:etc/php/5.2/zts-conf.d/memcache.ini \ |
| | | preserve=renamenew |
| | | file path=usr/php/5.2/modules/memcache.so |
| | | file path=usr/php/5.2/samples/memcache/memcache.php mode=0555 |
| | | file path=usr/php/5.2/zts-modules/memcache.so |
| | | |
| | | legacy pkg=SUNWphp52r-memcache \ |
| | | desc="PHP-Memcache(2.2.5) extension to store PHP(5.2) sessions in Memcached server (Root)" \ |
| | | name="Memcache extension module for PHP (Root)" |
| | | legacy pkg=SUNWphp52u-memcache \ |
| | | desc="PHP-Memcache(2.2.5) extension to store PHP(5.2) sessions in Memcached server" \ |
| | | name="Memcache extension module for PHP" |
| | | |
| | | depend fmri=web/php-52@5.2.17 type=require |
New file |
| | |
| | | Oracle elects to use only the GNU Lesser General Public License version |
| | | 2.1 (LGPL)/GNU General Public License version 2 (GPL) for any software |
| | | where a choice of LGPL/GPL license versions are made available with the |
| | | language indicating that LGPLv2.1/GPLv2 or any later version may be |
| | | used, or where a choice of which version of the LGPL/GPL is applied is |
| | | unspecified. Unless specifically stated otherwise, where a choice |
| | | exists between another license and either the GPL or the LGPL, Oracle |
| | | chooses the other license. |
| | | ==================================================================== |
| | | |
| | | |
| | | /* |
| | | * -------------------------------------------------------------------- |
| | | * The PHP License, version 3.01 |
| | | * Copyright (c) 1999 - 2010 The PHP Group. All rights reserved. |
| | | * -------------------------------------------------------------------- |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, is permitted provided that the following conditions |
| | | * are met: |
| | | * |
| | | * 1. Redistributions of source code must retain the above copyright |
| | | * notice, this list of conditions and the following disclaimer. |
| | | * |
| | | * 2. Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in |
| | | * the documentation and/or other materials provided with the |
| | | * distribution. |
| | | * |
| | | * 3. The name "PHP" must not be used to endorse or promote products |
| | | * derived from this software without prior written permission. For |
| | | * written permission, please contact group@php.net. |
| | | * |
| | | * 4. Products derived from this software may not be called "PHP", nor |
| | | * may "PHP" appear in their name, without prior written permission |
| | | * from group@php.net. You may indicate that your software works in |
| | | * conjunction with PHP by saying "Foo for PHP" instead of calling |
| | | * it "PHP Foo" or "phpfoo" |
| | | * |
| | | * 5. The PHP Group may publish revised and/or new versions of the |
| | | * license from time to time. Each version will be given a |
| | | * distinguishing version number. |
| | | * Once covered code has been published under a particular version |
| | | * of the license, you may always continue to use it under the terms |
| | | * of that version. You may also choose to use such covered code |
| | | * under the terms of any subsequent version of the license |
| | | * published by the PHP Group. No one other than the PHP Group has |
| | | * the right to modify the terms applicable to covered code created |
| | | * under this License. |
| | | * |
| | | * 6. Redistributions of any form whatsoever must retain the following |
| | | * acknowledgment: |
| | | * "This product includes PHP software, freely available from |
| | | * <http://www.php.net/software/>". |
| | | * |
| | | * THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND |
| | | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| | | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
| | | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP |
| | | * DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
| | | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| | | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| | | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| | | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| | | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| | | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| | | * OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | * |
| | | * -------------------------------------------------------------------- |
| | | * |
| | | * This software consists of voluntary contributions made by many |
| | | * individuals on behalf of the PHP Group. |
| | | * |
| | | * The PHP Group can be contacted via Email at group@php.net. |
| | | * |
| | | * For more information on the PHP Group and the PHP project, |
| | | * please see <http://www.php.net>. |
| | | * |
| | | * PHP includes the Zend Engine, freely available at |
| | | * <http://www.zend.com>. |
| | | */ |
| | | |
| | | /* |
| | | * +----------------------------------------------------------------------+ |
| | | * | PHP Version 4 | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Copyright (c) 1997-2003 The PHP Group | |
| | | * +----------------------------------------------------------------------+ |
| | | * | This source file is subject to version 2.02 of the PHP license, | |
| | | * | that is bundled with this package in the file LICENSE, and is | |
| | | * | available at through the world-wide-web at | |
| | | * | http://www.php.net/license/2_02.txt. | |
| | | * | If you did not receive a copy of the PHP license and are unable to | |
| | | * | obtain it through the world-wide-web, please send a note to | |
| | | * | license@php.net so we can mail you a copy immediately. | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Author: Marcin Gibula <mg@iceni.pl> | |
| | | * +----------------------------------------------------------------------+ |
| | | * |
| | | * |
| | | */ |
| | | |
| | | /* |
| | | * +----------------------------------------------------------------------+ |
| | | * | PHP Version 5 | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Copyright (c) 1997-2005 The PHP Group | |
| | | * +----------------------------------------------------------------------+ |
| | | * | This source file is subject to version 3.0 of the PHP license, | |
| | | * | that is bundled with this package in the file LICENSE, and is | |
| | | * | available through the world-wide-web at the following url: | |
| | | * | http://www.php.net/license/3_0.txt. | |
| | | * | If you did not receive a copy of the PHP license and are unable to | |
| | | * | obtain it through the world-wide-web, please send a note to | |
| | | * | license@php.net so we can mail you a copy immediately. | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Author: Wez Furlong <wez@omniti.com> | |
| | | * +----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | |
| | | libbcmath: |
| | | |
| | | /* |
| | | Copyright (C) 1991, 1992, 1993, 1994, 1997 Free Software Foundation, Inc. |
| | | Copyright (C) 2000 Philip A. Nelson |
| | | |
| | | This library is free software; you can redistribute it and/or |
| | | modify it under the terms of the GNU Lesser General Public |
| | | License as published by the Free Software Foundation; either |
| | | version 2 of the License, or (at your option) any later version. |
| | | |
| | | This library is distributed in the hope that it will be useful, |
| | | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| | | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| | | Lesser General Public License for more details. (COPYING.LIB) |
| | | |
| | | You should have received a copy of the GNU Lesser General Public |
| | | License along with this library; if not, write to: |
| | | |
| | | The Free Software Foundation, Inc. |
| | | 59 Temple Place, Suite 330 |
| | | Boston, MA 02111-1307 USA. |
| | | |
| | | You may contact the author by: |
| | | e-mail: philnelson@acm.org |
| | | us-mail: Philip A. Nelson |
| | | Computer Science Department, 9062 |
| | | Western Washington University |
| | | Bellingham, WA 98226-9062 |
| | | |
| | | *************************************************************************/ |
| | | |
| | | |
| | | libmbfl: |
| | | |
| | | /* |
| | | * "streamable kanji code filter and converter" |
| | | * Copyright (c) 1998-2002 HappySize, Inc. All rights reserved. |
| | | * |
| | | * LICENSE NOTICES |
| | | * |
| | | * This file is part of "streamable kanji code filter and converter", |
| | | * which is distributed under the terms of GNU Lesser General Public |
| | | * License (version 2) as published by the Free Software Foundation. |
| | | * |
| | | * This software is distributed in the hope that it will be useful, |
| | | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| | | * GNU Lesser General Public License for more details. |
| | | * |
| | | * You should have received a copy of the GNU Lesser General Public |
| | | * License along with "streamable kanji code filter and converter"; |
| | | * if not, write to the Free Software Foundation, Inc., 59 Temple Place, |
| | | * Suite 330, Boston, MA 02111-1307 USA |
| | | * |
| | | * The author of this file: |
| | | * |
| | | */ |
| | | |
| | | CREDITS |
| | | |
| | | MySQL |
| | | Zeev Suraski, Zak Greant, Georg Richter |
| | | |
| | | MySQLi |
| | | Zak Greant, Georg Richter, Andrey Hristov, Ulf Wendel |
| | | |
| | | MySQL driver for PDO |
| | | George Schlossnagle, Wez Furlong, Ilia Alshanetsky |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | set name=pkg.fmri value=pkg:/web/php-52/extension/php-mysql@5.2.17,$(BUILD_VERSION) |
| | | set name=pkg.summary value="MySQL extension module for PHP" |
| | | set name=info.classification \ |
| | | value="org.opensolaris.category.2008:Development/PHP" |
| | | set name=info.upstream_url value=http://www.php.net/ |
| | | set name=info.source_url value=http://us.php.net/get/php-5.2.17.tar.gz/from/this/mirror |
| | | set name=opensolaris.arc_url \ |
| | | value=http://arc.opensolaris.org/caselog/LSARC/2008/538 |
| | | set name=org.opensolaris.consolidation value=$(CONSOLIDATION) |
| | | |
| | | license php-mysql.license license='PHP, LGPLv2' |
| | | |
| | | dir path=etc |
| | | dir path=etc/php |
| | | dir path=etc/php/5.2 |
| | | dir path=etc/php/5.2/conf.d |
| | | dir path=etc/php/5.2/zts-conf.d |
| | | dir path=usr |
| | | dir path=usr/php |
| | | dir path=usr/php/5.2 |
| | | dir path=usr/php/5.2/modules |
| | | dir path=usr/php/5.2/zts-modules |
| | | file path=etc/php/5.2/conf.d/mysql.ini mode=0644 preserve=renamenew \ |
| | | original_name=SUNWphp52-mysql:etc/php/5.2/conf.d/mysql.ini |
| | | file path=etc/php/5.2/conf.d/mysqli.ini mode=0644 preserve=renamenew \ |
| | | original_name=SUNWphp52-mysql:etc/php/5.2/conf.d/mysqli.ini |
| | | file path=etc/php/5.2/conf.d/pdo_mysql.ini mode=0644 preserve=renamenew \ |
| | | original_name=SUNWphp52-mysql:etc/php/5.2/conf.d/pdo_mysql.ini |
| | | file path=etc/php/5.2/zts-conf.d/mysql.ini mode=0644 preserve=renamenew \ |
| | | original_name=SUNWphp52-mysql:etc/php/5.2/zts-conf.d/mysql.ini |
| | | file path=etc/php/5.2/zts-conf.d/mysqli.ini mode=0644 preserve=renamenew \ |
| | | original_name=SUNWphp52-mysql:etc/php/5.2/zts-conf.d/mysqli.ini |
| | | file path=etc/php/5.2/zts-conf.d/pdo_mysql.ini mode=0644 preserve=renamenew \ |
| | | original_name=SUNWphp52-mysql:etc/php/5.2/zts-conf.d/pdo_mysql.ini |
| | | file path=usr/php/5.2/modules/mysql.so |
| | | file path=usr/php/5.2/modules/mysqli.so |
| | | file path=usr/php/5.2/modules/pdo_mysql.so |
| | | file path=usr/php/5.2/zts-modules/mysql.so |
| | | file path=usr/php/5.2/zts-modules/mysqli.so |
| | | file path=usr/php/5.2/zts-modules/pdo_mysql.so |
| | | |
| | | legacy pkg=SUNWphp52u-mysql \ |
| | | name="MySQL extension module for PHP" \ |
| | | desc="PHP-MySQL extension to connect MySQL database from PHP(5.2)" |
| | | legacy pkg=SUNWphp52r-mysql \ |
| | | name="MySQL extension module for PHP (Root)" \ |
| | | desc="PHP-MySQL extension to connect MySQL database from PHP(5.2) (Root)" |
| | | |
| | | depend fmri=system/library/math type=require |
| | | depend fmri=web/php-52@5.2.17 type=require |
| | | depend fmri=library/zlib@1.2.3 type=require |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | include ../../../make-rules/shared-macros.mk |
| | | |
| | | COMPONENT_NAME= php |
| | | COMPONENT_VERSION= 5.2.17 |
| | | COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
| | | COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
| | | COMPONENT_ARCHIVE_HASH= sha1:5ba7edcb5ea187687001c4ccdbb94ac48f77fa92 |
| | | COMPONENT_ARCHIVE_URL= http://us.php.net/get/$(COMPONENT_ARCHIVE)/from/this/mirror |
| | | # |
| | | # webserver7-spi only for php NSAPI |
| | | # |
| | | COMPONENT_NAME_1= webserver7-spi |
| | | #COMPONENT_VERSION_1= NONE |
| | | COMPONENT_SRC_1= $(COMPONENT_NAME_1) |
| | | COMPONENT_ARCHIVE_1= $(COMPONENT_NAME_1).tar.bz2 |
| | | COMPONENT_ARCHIVE_HASH_1= sha1:5bf9efa33fa8cab0e964c829196d084bc7a67015 |
| | | # |
| | | # The Netscape server? |
| | | # Came from Sun's Netscape (web stack) group originally? |
| | | COMPONENT_ARCHIVE_URL_1= $(EXTERNAL_ARCHIVE_MIRROR)/$(COMPONENT_ARCHIVE_1) |
| | | |
| | | PATCH_DIR = ../php-sapi/patches |
| | | |
| | | include $(WS_TOP)/make-rules/prep.mk |
| | | include $(WS_TOP)/make-rules/configure.mk |
| | | include $(WS_TOP)/make-rules/ips.mk |
| | | |
| | | include ../common.mk |
| | | include ../php-sapi/php.mk |
| | | |
| | | COMPONENT_POST_UNPACK_ACTION += && ( \ |
| | | $(RM) -r $(COMPONENT_DIR)/$(COMPONENT_SRC_1); \ |
| | | cd $(COMPONENT_DIR); \ |
| | | $(UNPACK) $(UNPACK_ARGS) ./$(COMPONENT_ARCHIVE_1); \ |
| | | ) |
| | | |
| | | CONFIGURE_OPTIONS += \ |
| | | --disable-all \ |
| | | $(COMMON_CONFIG_OPTIONS) \ |
| | | --with-config-file-path=$(CONF_DIR) \ |
| | | --with-config-file-scan-dir=$(CONF_DIR)/conf.d \ |
| | | --disable-cgi \ |
| | | --disable-fastcgi \ |
| | | --enable-discard-path \ |
| | | --enable-maintainer-zts \ |
| | | --enable-ftp=shared \ |
| | | --enable-pdo=shared \ |
| | | --with-bz2=shared \ |
| | | --with-curl=shared \ |
| | | --with-gd=shared \ |
| | | --with-gettext=shared \ |
| | | --with-iconv=shared \ |
| | | --with-imap=shared,$(IMAP_DIR) \ |
| | | --with-imap-ssl=shared,/usr \ |
| | | --with-ldap=shared \ |
| | | --with-mysql=shared,$(MYSQL_DIR) \ |
| | | --with-mysql-sock=/tmp/mysql.sock \ |
| | | --with-mysqli=shared,$(MYSQL_DIR)/bin/mysql_config \ |
| | | --with-nsapi=$(COMPONENT_DIR)/webserver7-spi \ |
| | | --with-openssl=shared \ |
| | | --with-pear=$(PEAR_DIR) \ |
| | | --with-pdo-mysql=shared,$(MYSQL_DIR) \ |
| | | --with-pdo-sqlite=shared \ |
| | | --with-snmp=shared,/usr \ |
| | | --with-sqlite=shared \ |
| | | --with-tidy=shared,/usr |
| | | |
| | | CONFIGURE_ENV += $(ZTS_CONF_ENVLINE) |
| | | |
| | | COMPONENT_POST_BUILD_ACTION = ( \ |
| | | cat $(BUILD_DIR_32)/scripts/phpize | \ |
| | | sed -e "s,^\#!/bin/sh,\#!$(CONFIG_SHELL)," | \ |
| | | sed -e "s%^prefix=.*%prefix=$(SOURCE_DIR)%" | \ |
| | | sed -e "s%^includedir=.*%includedir=$(SOURCE_DIR)%" | \ |
| | | sed -e "s%^phpdir=.*%phpdir=$(SOURCE_DIR)%" | \ |
| | | sed -e "s%phpdir/phpize.m4%phpdir/scripts/phpize.m4%" | \ |
| | | sed -e 's%cd "$$phpdir" && cp $$FILES_BUILD "$$builddir"/build%cd "$$phpdir/build" \&\& cp $$FILES_BUILD "$$builddir"/build%' \ |
| | | > phpize-proto.zts ; \ |
| | | chmod 755 phpize-proto.zts ) |
| | | |
| | | ADD_NSAPI_MODULE_SUPPORT = ( \ |
| | | $(MKDIR) $(PROTO_DIR)/$(TOP_DIR)/nsapi/; \ |
| | | $(CP) $(BUILD_DIR_32)/libs/libphp5.so \ |
| | | $(PROTO_DIR)/$(TOP_DIR)/nsapi/libphp5.so; \ |
| | | ) |
| | | |
| | | FIX_CONFIG_FILES = ( \ |
| | | cd $(COMPONENT_DIR); \ |
| | | $(GSED) -e "s@extension_dir = \(.*\)@extension_dir=$(PHP_ROOT_ZTS_EXT)@"< ../php-sapi/build/prototype/$(MACH)/$(CONFDIR)/php.ini > php.ini; \ |
| | | $(MKDIR) $(PROTO_DIR)/$(NSAPI_CONFDIR); \ |
| | | $(INSTALL) -m 644 php.ini $(PROTO_DIR)/$(NSAPI_CONFDIR); \ |
| | | ) |
| | | |
| | | COMPONENT_INSTALL_TARGETS = libphp5.la install-modules |
| | | |
| | | COMPONENT_POST_INSTALL_ACTION = ( \ |
| | | $(ADD_NSAPI_MODULE_SUPPORT); \ |
| | | $(FIX_CONFIG_FILES); \ |
| | | ) |
| | | |
| | | CLEAN_PATHS += webserver7-spi phpize-proto.zts php.ini |
| | | |
| | | # common targets |
| | | build: $(BUILD_32) |
| | | |
| | | install: $(INSTALL_32) |
| | | |
| | | test: $(TEST_32) |
| | | |
| | | # php-sapi does the publish |
| | | publish: install |
| | | |
| | | ## causes loop in gmake |
| | | ##../php-sapi/build/$(MACH32)/.installed: |
| | | ## (cd ../php-sapi ; $(MAKE) install) |
| | | ## |
| | | ##$(BUILD_DIR_32)/.configured: ../php-sapi/build/$(MACH32)/.installed |
| | | |
| | | BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
| | | |
| | | include $(WS_TOP)/make-rules/depend.mk |
New file |
| | |
| | | php-5_2/php-nsapi: php-5_2/php-sapi |
New file |
| | |
| | | Oracle elects to use only the GNU Lesser General Public License version |
| | | 2.1 (LGPL)/GNU General Public License version 2 (GPL) for any software |
| | | where a choice of LGPL/GPL license versions are made available with the |
| | | language indicating that LGPLv2.1/GPLv2 or any later version may be |
| | | used, or where a choice of which version of the LGPL/GPL is applied is |
| | | unspecified. Unless specifically stated otherwise, where a choice |
| | | exists between another license and either the GPL or the LGPL, Oracle |
| | | chooses the other license. |
| | | ==================================================================== |
| | | |
| | | |
| | | /* |
| | | * -------------------------------------------------------------------- |
| | | * The PHP License, version 3.01 |
| | | * Copyright (c) 1999 - 2010 The PHP Group. All rights reserved. |
| | | * -------------------------------------------------------------------- |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, is permitted provided that the following conditions |
| | | * are met: |
| | | * |
| | | * 1. Redistributions of source code must retain the above copyright |
| | | * notice, this list of conditions and the following disclaimer. |
| | | * |
| | | * 2. Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in |
| | | * the documentation and/or other materials provided with the |
| | | * distribution. |
| | | * |
| | | * 3. The name "PHP" must not be used to endorse or promote products |
| | | * derived from this software without prior written permission. For |
| | | * written permission, please contact group@php.net. |
| | | * |
| | | * 4. Products derived from this software may not be called "PHP", nor |
| | | * may "PHP" appear in their name, without prior written permission |
| | | * from group@php.net. You may indicate that your software works in |
| | | * conjunction with PHP by saying "Foo for PHP" instead of calling |
| | | * it "PHP Foo" or "phpfoo" |
| | | * |
| | | * 5. The PHP Group may publish revised and/or new versions of the |
| | | * license from time to time. Each version will be given a |
| | | * distinguishing version number. |
| | | * Once covered code has been published under a particular version |
| | | * of the license, you may always continue to use it under the terms |
| | | * of that version. You may also choose to use such covered code |
| | | * under the terms of any subsequent version of the license |
| | | * published by the PHP Group. No one other than the PHP Group has |
| | | * the right to modify the terms applicable to covered code created |
| | | * under this License. |
| | | * |
| | | * 6. Redistributions of any form whatsoever must retain the following |
| | | * acknowledgment: |
| | | * "This product includes PHP software, freely available from |
| | | * <http://www.php.net/software/>". |
| | | * |
| | | * THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND |
| | | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| | | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
| | | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP |
| | | * DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
| | | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| | | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| | | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| | | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| | | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| | | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| | | * OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | * |
| | | * -------------------------------------------------------------------- |
| | | * |
| | | * This software consists of voluntary contributions made by many |
| | | * individuals on behalf of the PHP Group. |
| | | * |
| | | * The PHP Group can be contacted via Email at group@php.net. |
| | | * |
| | | * For more information on the PHP Group and the PHP project, |
| | | * please see <http://www.php.net>. |
| | | * |
| | | * PHP includes the Zend Engine, freely available at |
| | | * <http://www.zend.com>. |
| | | */ |
| | | |
| | | /* |
| | | * +----------------------------------------------------------------------+ |
| | | * | PHP Version 4 | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Copyright (c) 1997-2003 The PHP Group | |
| | | * +----------------------------------------------------------------------+ |
| | | * | This source file is subject to version 2.02 of the PHP license, | |
| | | * | that is bundled with this package in the file LICENSE, and is | |
| | | * | available at through the world-wide-web at | |
| | | * | http://www.php.net/license/2_02.txt. | |
| | | * | If you did not receive a copy of the PHP license and are unable to | |
| | | * | obtain it through the world-wide-web, please send a note to | |
| | | * | license@php.net so we can mail you a copy immediately. | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Author: Marcin Gibula <mg@iceni.pl> | |
| | | * +----------------------------------------------------------------------+ |
| | | * |
| | | * |
| | | */ |
| | | |
| | | /* |
| | | * +----------------------------------------------------------------------+ |
| | | * | PHP Version 5 | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Copyright (c) 1997-2005 The PHP Group | |
| | | * +----------------------------------------------------------------------+ |
| | | * | This source file is subject to version 3.0 of the PHP license, | |
| | | * | that is bundled with this package in the file LICENSE, and is | |
| | | * | available through the world-wide-web at the following url: | |
| | | * | http://www.php.net/license/3_0.txt. | |
| | | * | If you did not receive a copy of the PHP license and are unable to | |
| | | * | obtain it through the world-wide-web, please send a note to | |
| | | * | license@php.net so we can mail you a copy immediately. | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Author: Wez Furlong <wez@omniti.com> | |
| | | * +----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | /* |
| | | * |
| | | * |
| | | * GNU LESSER GENERAL PUBLIC LICENSE |
| | | * Version 2.1, February 1999 |
| | | * |
| | | * Copyright (C) 1991, 1999 Free Software Foundation, Inc. |
| | | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| | | * Everyone is permitted to copy and distribute verbatim copies |
| | | * of this license document, but changing it is not allowed. |
| | | * |
| | | * [This is the first released version of the Lesser GPL. It also counts |
| | | * as the successor of the GNU Library Public License, version 2, hence |
| | | * the version number 2.1.] |
| | | * |
| | | * Preamble |
| | | * |
| | | * The licenses for most software are designed to take away your |
| | | * freedom to share and change it. By contrast, the GNU General Public |
| | | * Licenses are intended to guarantee your freedom to share and change |
| | | * free software--to make sure the software is free for all its users. |
| | | * |
| | | * This license, the Lesser General Public License, applies to some |
| | | * specially designated software packages--typically libraries--of the |
| | | * Free Software Foundation and other authors who decide to use it. You |
| | | * can use it too, but we suggest you first think carefully about whether |
| | | * this license or the ordinary General Public License is the better |
| | | * strategy to use in any particular case, based on the explanations below. |
| | | * |
| | | * When we speak of free software, we are referring to freedom of use, |
| | | * not price. Our General Public Licenses are designed to make sure that |
| | | * you have the freedom to distribute copies of free software (and charge |
| | | * for this service if you wish); that you receive source code or can get |
| | | * it if you want it; that you can change the software and use pieces of |
| | | * it in new free programs; and that you are informed that you can do |
| | | * these things. |
| | | * |
| | | * To protect your rights, we need to make restrictions that forbid |
| | | * distributors to deny you these rights or to ask you to surrender these |
| | | * rights. These restrictions translate to certain responsibilities for |
| | | * you if you distribute copies of the library or if you modify it. |
| | | * |
| | | * For example, if you distribute copies of the library, whether gratis |
| | | * or for a fee, you must give the recipients all the rights that we gave |
| | | * you. You must make sure that they, too, receive or can get the source |
| | | * code. If you link other code with the library, you must provide |
| | | * complete object files to the recipients, so that they can relink them |
| | | * with the library after making changes to the library and recompiling |
| | | * it. And you must show them these terms so they know their rights. |
| | | * |
| | | * We protect your rights with a two-step method: (1) we copyright the |
| | | * library, and (2) we offer you this license, which gives you legal |
| | | * permission to copy, distribute and/or modify the library. |
| | | * |
| | | * To protect each distributor, we want to make it very clear that |
| | | * there is no warranty for the free library. Also, if the library is |
| | | * modified by someone else and passed on, the recipients should know |
| | | * that what they have is not the original version, so that the original |
| | | * author's reputation will not be affected by problems that might be |
| | | * introduced by others. |
| | | * |
| | | * Finally, software patents pose a constant threat to the existence of |
| | | * any free program. We wish to make sure that a company cannot |
| | | * effectively restrict the users of a free program by obtaining a |
| | | * restrictive license from a patent holder. Therefore, we insist that |
| | | * any patent license obtained for a version of the library must be |
| | | * consistent with the full freedom of use specified in this license. |
| | | * |
| | | * Most GNU software, including some libraries, is covered by the |
| | | * ordinary GNU General Public License. This license, the GNU Lesser |
| | | * General Public License, applies to certain designated libraries, and |
| | | * is quite different from the ordinary General Public License. We use |
| | | * this license for certain libraries in order to permit linking those |
| | | * libraries into non-free programs. |
| | | * |
| | | * When a program is linked with a library, whether statically or using |
| | | * a shared library, the combination of the two is legally speaking a |
| | | * combined work, a derivative of the original library. The ordinary |
| | | * General Public License therefore permits such linking only if the |
| | | * entire combination fits its criteria of freedom. The Lesser General |
| | | * Public License permits more lax criteria for linking other code with |
| | | * the library. |
| | | * |
| | | * We call this license the "Lesser" General Public License because it |
| | | * does Less to protect the user's freedom than the ordinary General |
| | | * Public License. It also provides other free software developers Less |
| | | * of an advantage over competing non-free programs. These disadvantages |
| | | * are the reason we use the ordinary General Public License for many |
| | | * libraries. However, the Lesser license provides advantages in certain |
| | | * special circumstances. |
| | | * |
| | | * For example, on rare occasions, there may be a special need to |
| | | * encourage the widest possible use of a certain library, so that it becomes |
| | | * a de-facto standard. To achieve this, non-free programs must be |
| | | * allowed to use the library. A more frequent case is that a free |
| | | * library does the same job as widely used non-free libraries. In this |
| | | * case, there is little to gain by limiting the free library to free |
| | | * software only, so we use the Lesser General Public License. |
| | | * |
| | | * In other cases, permission to use a particular library in non-free |
| | | * programs enables a greater number of people to use a large body of |
| | | * free software. For example, permission to use the GNU C Library in |
| | | * non-free programs enables many more people to use the whole GNU |
| | | * operating system, as well as its variant, the GNU/Linux operating |
| | | * system. |
| | | * |
| | | * Although the Lesser General Public License is Less protective of the |
| | | * users' freedom, it does ensure that the user of a program that is |
| | | * linked with the Library has the freedom and the wherewithal to run |
| | | * that program using a modified version of the Library. |
| | | * |
| | | * The precise terms and conditions for copying, distribution and |
| | | * modification follow. Pay close attention to the difference between a |
| | | * "work based on the library" and a "work that uses the library". The |
| | | * former contains code derived from the library, whereas the latter must |
| | | * be combined with the library in order to run. |
| | | * |
| | | * GNU LESSER GENERAL PUBLIC LICENSE |
| | | * TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
| | | * |
| | | * 0. This License Agreement applies to any software library or other |
| | | * program which contains a notice placed by the copyright holder or |
| | | * other authorized party saying it may be distributed under the terms of |
| | | * this Lesser General Public License (also called "this License"). |
| | | * Each licensee is addressed as "you". |
| | | * |
| | | * A "library" means a collection of software functions and/or data |
| | | * prepared so as to be conveniently linked with application programs |
| | | * (which use some of those functions and data) to form executables. |
| | | * |
| | | * The "Library", below, refers to any such software library or work |
| | | * which has been distributed under these terms. A "work based on the |
| | | * Library" means either the Library or any derivative work under |
| | | * copyright law: that is to say, a work containing the Library or a |
| | | * portion of it, either verbatim or with modifications and/or translated |
| | | * straightforwardly into another language. (Hereinafter, translation is |
| | | * included without limitation in the term "modification".) |
| | | * |
| | | * "Source code" for a work means the preferred form of the work for |
| | | * making modifications to it. For a library, complete source code means |
| | | * all the source code for all modules it contains, plus any associated |
| | | * interface definition files, plus the scripts used to control compilation |
| | | * and installation of the library. |
| | | * |
| | | * Activities other than copying, distribution and modification are not |
| | | * covered by this License; they are outside its scope. The act of |
| | | * running a program using the Library is not restricted, and output from |
| | | * such a program is covered only if its contents constitute a work based |
| | | * on the Library (independent of the use ofin a given copy, it is irreversible |
| | | * for that copy, so the ordinary GNU General Public License applies to all |
| | | * subsequent copies and derivative works made from that copy. |
| | | * |
| | | * This option is useful when you wish to copy part of the code of |
| | | * the Library into a program that is not a library. |
| | | * |
| | | * 4. You may copy and distribute the Library (or a portion or |
| | | * derivative of it, under Section 2) in object code or executable form |
| | | * under the terms of Sections 1 and 2 above provided that you accompany |
| | | * it with the complete corat this requirement contradicts the license |
| | | * restrictions of other proprietary libraries that do not normally |
| | | * accompany the operating system. Such a contradiction means you cannot |
| | | * use both them and the Library together in an executable that you |
| | | * distribute. |
| | | * |
| | | * 7. You may place library facilities that are a work based on the |
| | | * Library side-by-side in a single library together with other library |
| | | * facilities not covered by this License, and distribute such a combined |
| | | * library, provided that the separate distribution of the work based on |
| | | * the Library and of the other library facilities is otherwise |
| | | * permitted, and provided that you do these two things: |
| | | * |
| | | * a) Accompany the combined library with a copy of the same work |
| | | * based on the Library, uncombined with any other library |
| | | * facilities. This must be distributed under the terms of the |
| | | * Sections above. |
| | | * |
| | | * b) Give prominent notice with the combined library of the fact |
| | | * that part of it is a work based on the Library, and explaining |
| | | * where to find the accstribution conditions are incompatible with these, |
| | | * write to the author to ask for permission. For software which is |
| | | * copyrighted by the Free Software Foundation, write to the Free |
| | | * Software Foundation; we sometimes make exceptions for this. Our |
| | | * decision will be guided by the two goals of preserving the free status |
| | | * of all derivatives of our free software and of promoting the sharing |
| | | * and reuse of software generally. |
| | | * |
| | | * NO WARRANTY |
| | | * |
| | | * 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO |
| | | * WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. |
| | | * EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR |
| | | * OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY |
| | | * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE |
| | | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| | | * PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE |
| | | * LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME |
| | | * THE COST OF ALL NECESSARY SERVICING, REPAI |
| | | */ |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | # All the files under /var/php are mode=0644 |
| | | <transform file path=var/php/.* -> default mode 0644> |
| | | <transform file path=var/php/.* -> default group bin> |
| | | <transform file path=(var/php/.*) -> default original_name SUNWphp52-pear:%<1>> |
| | | <transform file path=var/php/.* -> default preserve renamenew> |
| | | |
| | | set name=pkg.fmri value=pkg:/web/php-52/extension/php-pear@5.2.17,$(BUILD_VERSION) |
| | | set name=pkg.description \ |
| | | value="Framework and reusable PHP components from PEAR repository for PHP" |
| | | set name=pkg.summary value="PHP Extension and Application Repository" |
| | | set name=info.classification \ |
| | | value="org.opensolaris.category.2008:Development/PHP" |
| | | set name=info.source_url value=http://us.php.net/get/php-5.2.17.tar.gz/from/this/mirror |
| | | set name=info.upstream_url value=http://pear.php.net/ |
| | | set name=opensolaris.arc_url \ |
| | | value=http://arc.opensolaris.org/caselog/LSARC/2008/538 |
| | | set name=org.opensolaris.consolidation value=$(CONSOLIDATION) |
| | | |
| | | license php-pear.license license='PHP, LGPLv2.1' |
| | | |
| | | dir path=etc |
| | | dir path=etc/php |
| | | dir path=etc/php/5.2 |
| | | dir path=usr |
| | | dir path=usr/php |
| | | dir path=usr/php/5.2 |
| | | dir path=usr/php/5.2/bin |
| | | dir path=var |
| | | dir path=var/php |
| | | dir path=var/php/5.2 |
| | | dir path=var/php/5.2/include |
| | | dir path=var/php/5.2/include/php |
| | | dir path=var/php/5.2/modules |
| | | dir path=var/php/5.2/pear |
| | | dir path=var/php/5.2/pear/.channels |
| | | dir path=var/php/5.2/pear/.channels/.alias |
| | | dir path=var/php/5.2/pear/.registry |
| | | dir path=var/php/5.2/pear/.registry/.channel.__uri |
| | | dir path=var/php/5.2/pear/.registry/.channel.doc.php.net |
| | | dir path=var/php/5.2/pear/.registry/.channel.pecl.php.net |
| | | dir path=var/php/5.2/pear/Archive |
| | | dir path=var/php/5.2/pear/Console |
| | | dir path=var/php/5.2/pear/OS |
| | | dir path=var/php/5.2/pear/PEAR |
| | | dir path=var/php/5.2/pear/PEAR/ChannelFile |
| | | dir path=var/php/5.2/pear/PEAR/Command |
| | | dir path=var/php/5.2/pear/PEAR/Downloader |
| | | dir path=var/php/5.2/pear/PEAR/Frontend |
| | | dir path=var/php/5.2/pear/PEAR/Installer |
| | | dir path=var/php/5.2/pear/PEAR/Installer/Role |
| | | dir path=var/php/5.2/pear/PEAR/PackageFile |
| | | dir path=var/php/5.2/pear/PEAR/PackageFile/Generator |
| | | dir path=var/php/5.2/pear/PEAR/PackageFile/Parser |
| | | dir path=var/php/5.2/pear/PEAR/PackageFile/v2 |
| | | dir path=var/php/5.2/pear/PEAR/REST |
| | | dir path=var/php/5.2/pear/PEAR/Task |
| | | dir path=var/php/5.2/pear/PEAR/Task/Postinstallscript |
| | | dir path=var/php/5.2/pear/PEAR/Task/Replace |
| | | dir path=var/php/5.2/pear/PEAR/Task/Unixeol |
| | | dir path=var/php/5.2/pear/PEAR/Task/Windowseol |
| | | dir path=var/php/5.2/pear/PEAR/Validator |
| | | dir path=var/php/5.2/pear/Structures |
| | | dir path=var/php/5.2/pear/Structures/Graph |
| | | dir path=var/php/5.2/pear/Structures/Graph/Manipulator |
| | | dir path=var/php/5.2/pear/XML |
| | | dir path=var/php/5.2/pear/data |
| | | dir path=var/php/5.2/pear/data/PEAR |
| | | dir path=var/php/5.2/pear/data/Structures_Graph |
| | | dir path=var/php/5.2/pear/doc |
| | | dir path=var/php/5.2/pear/doc/Archive_Tar |
| | | dir path=var/php/5.2/pear/doc/Archive_Tar/docs |
| | | dir path=var/php/5.2/pear/doc/PEAR |
| | | dir path=var/php/5.2/pear/doc/Structures_Graph |
| | | dir path=var/php/5.2/pear/doc/Structures_Graph/docs |
| | | dir path=var/php/5.2/pear/doc/Structures_Graph/docs/html |
| | | dir path=var/php/5.2/pear/doc/Structures_Graph/docs/html/Structures_Graph |
| | | dir path=var/php/5.2/pear/doc/Structures_Graph/docs/html/media |
| | | dir path=var/php/5.2/pear/doc/Structures_Graph/docs/tutorials |
| | | dir path=var/php/5.2/pear/doc/Structures_Graph/docs/tutorials/Structures_Graph |
| | | dir path=var/php/5.2/pear/doc/XML_Util |
| | | dir path=var/php/5.2/pear/doc/XML_Util/examples |
| | | dir path=var/php/5.2/pear/test |
| | | dir path=var/php/5.2/pear/test/Structures_Graph |
| | | dir path=var/php/5.2/pear/test/Structures_Graph/tests |
| | | dir path=var/php/5.2/pear/test/Structures_Graph/tests/testCase |
| | | dir path=var/php/5.2/pear/test/XML_Util |
| | | dir path=var/php/5.2/pear/test/XML_Util/tests |
| | | file path=etc/php/5.2/pear.conf mode=0644 \ |
| | | original_name=SUNWphp52-pear:etc/php/5.2/pear.conf preserve=renamenew |
| | | file path=usr/php/5.2/bin/pear mode=0555 |
| | | file path=usr/php/5.2/bin/peardev mode=0555 |
| | | file path=usr/php/5.2/bin/pecl mode=0555 |
| | | file path=var/php/5.2/pear/.channels/.alias/pear.txt |
| | | file path=var/php/5.2/pear/.channels/.alias/pecl.txt |
| | | file path=var/php/5.2/pear/.channels/.alias/phpdocs.txt |
| | | file path=var/php/5.2/pear/.channels/__uri.reg |
| | | file path=var/php/5.2/pear/.channels/doc.php.net.reg |
| | | file path=var/php/5.2/pear/.channels/pear.php.net.reg |
| | | file path=var/php/5.2/pear/.channels/pecl.php.net.reg |
| | | file path=var/php/5.2/pear/.depdb |
| | | file path=var/php/5.2/pear/.depdblock |
| | | file path=var/php/5.2/pear/.filemap |
| | | file path=var/php/5.2/pear/.lock |
| | | file path=var/php/5.2/pear/.registry/archive_tar.reg |
| | | file path=var/php/5.2/pear/.registry/console_getopt.reg |
| | | file path=var/php/5.2/pear/.registry/pear.reg |
| | | file path=var/php/5.2/pear/.registry/structures_graph.reg |
| | | file path=var/php/5.2/pear/.registry/xml_util.reg |
| | | file path=var/php/5.2/pear/Archive/Tar.php |
| | | file path=var/php/5.2/pear/Console/Getopt.php |
| | | file path=var/php/5.2/pear/OS/Guess.php |
| | | file path=var/php/5.2/pear/PEAR.php |
| | | file path=var/php/5.2/pear/PEAR/Autoloader.php |
| | | file path=var/php/5.2/pear/PEAR/Builder.php |
| | | file path=var/php/5.2/pear/PEAR/ChannelFile.php |
| | | file path=var/php/5.2/pear/PEAR/ChannelFile/Parser.php |
| | | file path=var/php/5.2/pear/PEAR/Command.php |
| | | file path=var/php/5.2/pear/PEAR/Command/Auth.php |
| | | file path=var/php/5.2/pear/PEAR/Command/Auth.xml |
| | | file path=var/php/5.2/pear/PEAR/Command/Build.php |
| | | file path=var/php/5.2/pear/PEAR/Command/Build.xml |
| | | file path=var/php/5.2/pear/PEAR/Command/Channels.php |
| | | file path=var/php/5.2/pear/PEAR/Command/Channels.xml |
| | | file path=var/php/5.2/pear/PEAR/Command/Common.php |
| | | file path=var/php/5.2/pear/PEAR/Command/Config.php |
| | | file path=var/php/5.2/pear/PEAR/Command/Config.xml |
| | | file path=var/php/5.2/pear/PEAR/Command/Install.php |
| | | file path=var/php/5.2/pear/PEAR/Command/Install.xml |
| | | file path=var/php/5.2/pear/PEAR/Command/Mirror.php |
| | | file path=var/php/5.2/pear/PEAR/Command/Mirror.xml |
| | | file path=var/php/5.2/pear/PEAR/Command/Package.php |
| | | file path=var/php/5.2/pear/PEAR/Command/Package.xml |
| | | file path=var/php/5.2/pear/PEAR/Command/Pickle.php |
| | | file path=var/php/5.2/pear/PEAR/Command/Pickle.xml |
| | | file path=var/php/5.2/pear/PEAR/Command/Registry.php |
| | | file path=var/php/5.2/pear/PEAR/Command/Registry.xml |
| | | file path=var/php/5.2/pear/PEAR/Command/Remote.php |
| | | file path=var/php/5.2/pear/PEAR/Command/Remote.xml |
| | | file path=var/php/5.2/pear/PEAR/Command/Test.php |
| | | file path=var/php/5.2/pear/PEAR/Command/Test.xml |
| | | file path=var/php/5.2/pear/PEAR/Common.php |
| | | file path=var/php/5.2/pear/PEAR/Config.php |
| | | file path=var/php/5.2/pear/PEAR/Dependency2.php |
| | | file path=var/php/5.2/pear/PEAR/DependencyDB.php |
| | | file path=var/php/5.2/pear/PEAR/Downloader.php |
| | | file path=var/php/5.2/pear/PEAR/Downloader/Package.php |
| | | file path=var/php/5.2/pear/PEAR/ErrorStack.php |
| | | file path=var/php/5.2/pear/PEAR/Exception.php |
| | | file path=var/php/5.2/pear/PEAR/FixPHP5PEARWarnings.php |
| | | file path=var/php/5.2/pear/PEAR/Frontend.php |
| | | file path=var/php/5.2/pear/PEAR/Frontend/CLI.php |
| | | file path=var/php/5.2/pear/PEAR/Installer.php |
| | | file path=var/php/5.2/pear/PEAR/Installer/Role.php |
| | | file path=var/php/5.2/pear/PEAR/Installer/Role/Cfg.php |
| | | file path=var/php/5.2/pear/PEAR/Installer/Role/Cfg.xml |
| | | file path=var/php/5.2/pear/PEAR/Installer/Role/Common.php |
| | | file path=var/php/5.2/pear/PEAR/Installer/Role/Data.php |
| | | file path=var/php/5.2/pear/PEAR/Installer/Role/Data.xml |
| | | file path=var/php/5.2/pear/PEAR/Installer/Role/Doc.php |
| | | file path=var/php/5.2/pear/PEAR/Installer/Role/Doc.xml |
| | | file path=var/php/5.2/pear/PEAR/Installer/Role/Ext.php |
| | | file path=var/php/5.2/pear/PEAR/Installer/Role/Ext.xml |
| | | file path=var/php/5.2/pear/PEAR/Installer/Role/Php.php |
| | | file path=var/php/5.2/pear/PEAR/Installer/Role/Php.xml |
| | | file path=var/php/5.2/pear/PEAR/Installer/Role/Script.php |
| | | file path=var/php/5.2/pear/PEAR/Installer/Role/Script.xml |
| | | file path=var/php/5.2/pear/PEAR/Installer/Role/Src.php |
| | | file path=var/php/5.2/pear/PEAR/Installer/Role/Src.xml |
| | | file path=var/php/5.2/pear/PEAR/Installer/Role/Test.php |
| | | file path=var/php/5.2/pear/PEAR/Installer/Role/Test.xml |
| | | file path=var/php/5.2/pear/PEAR/Installer/Role/Www.php |
| | | file path=var/php/5.2/pear/PEAR/Installer/Role/Www.xml |
| | | file path=var/php/5.2/pear/PEAR/PackageFile.php |
| | | file path=var/php/5.2/pear/PEAR/PackageFile/Generator/v1.php |
| | | file path=var/php/5.2/pear/PEAR/PackageFile/Generator/v2.php |
| | | file path=var/php/5.2/pear/PEAR/PackageFile/Parser/v1.php |
| | | file path=var/php/5.2/pear/PEAR/PackageFile/Parser/v2.php |
| | | file path=var/php/5.2/pear/PEAR/PackageFile/v1.php |
| | | file path=var/php/5.2/pear/PEAR/PackageFile/v2.php |
| | | file path=var/php/5.2/pear/PEAR/PackageFile/v2/Validator.php |
| | | file path=var/php/5.2/pear/PEAR/PackageFile/v2/rw.php |
| | | file path=var/php/5.2/pear/PEAR/Packager.php |
| | | file path=var/php/5.2/pear/PEAR/REST.php |
| | | file path=var/php/5.2/pear/PEAR/REST/10.php |
| | | file path=var/php/5.2/pear/PEAR/REST/11.php |
| | | file path=var/php/5.2/pear/PEAR/REST/13.php |
| | | file path=var/php/5.2/pear/PEAR/Registry.php |
| | | file path=var/php/5.2/pear/PEAR/RunTest.php |
| | | file path=var/php/5.2/pear/PEAR/Task/Common.php |
| | | file path=var/php/5.2/pear/PEAR/Task/Postinstallscript.php |
| | | file path=var/php/5.2/pear/PEAR/Task/Postinstallscript/rw.php |
| | | file path=var/php/5.2/pear/PEAR/Task/Replace.php |
| | | file path=var/php/5.2/pear/PEAR/Task/Replace/rw.php |
| | | file path=var/php/5.2/pear/PEAR/Task/Unixeol.php |
| | | file path=var/php/5.2/pear/PEAR/Task/Unixeol/rw.php |
| | | file path=var/php/5.2/pear/PEAR/Task/Windowseol.php |
| | | file path=var/php/5.2/pear/PEAR/Task/Windowseol/rw.php |
| | | file path=var/php/5.2/pear/PEAR/Validate.php |
| | | file path=var/php/5.2/pear/PEAR/Validator/PECL.php |
| | | file path=var/php/5.2/pear/PEAR/XMLParser.php |
| | | file path=var/php/5.2/pear/PEAR5.php |
| | | file path=var/php/5.2/pear/Structures/Graph.php |
| | | file path=var/php/5.2/pear/Structures/Graph/Manipulator/AcyclicTest.php |
| | | file path=var/php/5.2/pear/Structures/Graph/Manipulator/TopologicalSorter.php |
| | | file path=var/php/5.2/pear/Structures/Graph/Node.php |
| | | file path=var/php/5.2/pear/System.php |
| | | file path=var/php/5.2/pear/XML/Util.php |
| | | file path=var/php/5.2/pear/data/PEAR/package.dtd |
| | | file path=var/php/5.2/pear/data/PEAR/template.spec |
| | | file path=var/php/5.2/pear/data/Structures_Graph/LICENSE |
| | | file path=var/php/5.2/pear/doc/Archive_Tar/docs/Archive_Tar.txt |
| | | file path=var/php/5.2/pear/doc/PEAR/INSTALL |
| | | file path=var/php/5.2/pear/doc/PEAR/LICENSE |
| | | file path=var/php/5.2/pear/doc/PEAR/README |
| | | file path=var/php/5.2/pear/doc/Structures_Graph/docs/generate.sh |
| | | file \ |
| | | path=var/php/5.2/pear/doc/Structures_Graph/docs/html/Structures_Graph/Structures_Graph.html |
| | | file \ |
| | | path=var/php/5.2/pear/doc/Structures_Graph/docs/html/Structures_Graph/Structures_Graph_Manipulator_AcyclicTest.html |
| | | file \ |
| | | path=var/php/5.2/pear/doc/Structures_Graph/docs/html/Structures_Graph/Structures_Graph_Manipulator_TopologicalSorter.html |
| | | file \ |
| | | path=var/php/5.2/pear/doc/Structures_Graph/docs/html/Structures_Graph/Structures_Graph_Node.html |
| | | file \ |
| | | path=var/php/5.2/pear/doc/Structures_Graph/docs/html/Structures_Graph/_Structures_Graph_Manipulator_AcyclicTest_php.html |
| | | file \ |
| | | path=var/php/5.2/pear/doc/Structures_Graph/docs/html/Structures_Graph/_Structures_Graph_Manipulator_TopologicalSorter_php.html |
| | | file \ |
| | | path=var/php/5.2/pear/doc/Structures_Graph/docs/html/Structures_Graph/_Structures_Graph_Node_php.html |
| | | file \ |
| | | path=var/php/5.2/pear/doc/Structures_Graph/docs/html/Structures_Graph/_Structures_Graph_php.html |
| | | file \ |
| | | path=var/php/5.2/pear/doc/Structures_Graph/docs/html/Structures_Graph/tutorial_Structures_Graph.pkg.html |
| | | file \ |
| | | path=var/php/5.2/pear/doc/Structures_Graph/docs/html/classtrees_Structures_Graph.html |
| | | file path=var/php/5.2/pear/doc/Structures_Graph/docs/html/elementindex.html |
| | | file \ |
| | | path=var/php/5.2/pear/doc/Structures_Graph/docs/html/elementindex_Structures_Graph.html |
| | | file path=var/php/5.2/pear/doc/Structures_Graph/docs/html/errors.html |
| | | file path=var/php/5.2/pear/doc/Structures_Graph/docs/html/index.html |
| | | file \ |
| | | path=var/php/5.2/pear/doc/Structures_Graph/docs/html/li_Structures_Graph.html |
| | | file path=var/php/5.2/pear/doc/Structures_Graph/docs/html/media/banner.css |
| | | file path=var/php/5.2/pear/doc/Structures_Graph/docs/html/media/stylesheet.css |
| | | file path=var/php/5.2/pear/doc/Structures_Graph/docs/html/packages.html |
| | | file path=var/php/5.2/pear/doc/Structures_Graph/docs/html/todolist.html |
| | | file \ |
| | | path=var/php/5.2/pear/doc/Structures_Graph/docs/tutorials/Structures_Graph/Structures_Graph.pkg |
| | | file path=var/php/5.2/pear/doc/XML_Util/examples/example.php |
| | | file path=var/php/5.2/pear/doc/XML_Util/examples/example2.php |
| | | file path=var/php/5.2/pear/pearcmd.php |
| | | file path=var/php/5.2/pear/peclcmd.php |
| | | file path=var/php/5.2/pear/test/Structures_Graph/tests/AllTests.php |
| | | file path=var/php/5.2/pear/test/Structures_Graph/tests/testCase/BasicGraph.php |
| | | file path=var/php/5.2/pear/test/XML_Util/tests/AllTests.php |
| | | file path=var/php/5.2/pear/test/XML_Util/tests/testBasic_apiVersion.phpt |
| | | file \ |
| | | path=var/php/5.2/pear/test/XML_Util/tests/testBasic_attributesToString.phpt |
| | | file \ |
| | | path=var/php/5.2/pear/test/XML_Util/tests/testBasic_collapseEmptyTags.phpt |
| | | file \ |
| | | path=var/php/5.2/pear/test/XML_Util/tests/testBasic_createCDataSection.phpt |
| | | file path=var/php/5.2/pear/test/XML_Util/tests/testBasic_createComment.phpt |
| | | file path=var/php/5.2/pear/test/XML_Util/tests/testBasic_createEndElement.phpt |
| | | file \ |
| | | path=var/php/5.2/pear/test/XML_Util/tests/testBasic_createStartElement.phpt |
| | | file path=var/php/5.2/pear/test/XML_Util/tests/testBasic_createTag.phpt |
| | | file \ |
| | | path=var/php/5.2/pear/test/XML_Util/tests/testBasic_createTagFromArray.phpt |
| | | file \ |
| | | path=var/php/5.2/pear/test/XML_Util/tests/testBasic_getDocTypeDeclaration.phpt |
| | | file \ |
| | | path=var/php/5.2/pear/test/XML_Util/tests/testBasic_getXmlDeclaration.phpt |
| | | file path=var/php/5.2/pear/test/XML_Util/tests/testBasic_isValidName.phpt |
| | | file path=var/php/5.2/pear/test/XML_Util/tests/testBasic_raiseError.phpt |
| | | file path=var/php/5.2/pear/test/XML_Util/tests/testBasic_replaceEntities.phpt |
| | | file path=var/php/5.2/pear/test/XML_Util/tests/testBasic_reverseEntities.phpt |
| | | file \ |
| | | path=var/php/5.2/pear/test/XML_Util/tests/testBasic_splitQualifiedName.phpt |
| | | file path=var/php/5.2/pear/test/XML_Util/tests/testBug_4950.phpt |
| | | file path=var/php/5.2/pear/test/XML_Util/tests/testBug_5392.phpt |
| | | |
| | | legacy pkg=SUNWphp52r-pear \ |
| | | desc="Framework and reusable PHP components from PEAR repository(root) for PHP(5.2)" \ |
| | | name="PHP Extension and Application Repository Components(root)" |
| | | legacy pkg=SUNWphp52u-pear \ |
| | | desc="Framework and reusable PHP components from PEAR repository for PHP(5.2)" \ |
| | | name="PHP Extension and Application Repository Components" |
| | | |
| | | depend fmri=web/php-52@5.2.17 type=require |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | include ../../../make-rules/shared-macros.mk |
| | | |
| | | COMPONENT_NAME= php |
| | | COMPONENT_VERSION= 5.2.17 |
| | | COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
| | | COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
| | | COMPONENT_ARCHIVE_HASH= sha1:5ba7edcb5ea187687001c4ccdbb94ac48f77fa92 |
| | | COMPONENT_ARCHIVE_URL= http://us.php.net/get/$(COMPONENT_ARCHIVE)/from/this/mirror |
| | | COMPONENT_PROJECT_URL= http://www.php.net/ |
| | | |
| | | # |
| | | # php documentation |
| | | COMPONENT_NAME_1= php_manual_en_20090130 |
| | | #COMPONENT_VERSION_1= NONE |
| | | COMPONENT_SRC_1= $(COMPONENT_NAME_1) |
| | | COMPONENT_ARCHIVE_1= $(COMPONENT_NAME_1).tar.gz |
| | | COMPONENT_ARCHIVE_HASH_1= sha1:5eeaedf852afa3b406962fd6b425d8357f189fbf |
| | | # |
| | | # This older version is no longer available so it is cached on |
| | | # internal servers. |
| | | COMPONENT_ARCHIVE_URL_1= $(EXTERNAL_ARCHIVE_MIRROR)/$(COMPONENT_ARCHIVE_1) |
| | | |
| | | include $(WS_TOP)/make-rules/prep.mk |
| | | include $(WS_TOP)/make-rules/configure.mk |
| | | include $(WS_TOP)/make-rules/ips.mk |
| | | |
| | | include ../common.mk |
| | | include ./php.mk |
| | | |
| | | CONFIGURE_OPTIONS += \ |
| | | $(COMMON_CONFIG_OPTIONS) \ |
| | | --disable-cgi \ |
| | | --disable-fastcgi \ |
| | | --enable-discard-path \ |
| | | --enable-ftp=shared \ |
| | | --enable-pdo=shared \ |
| | | --with-apxs2=$(APACHE_USR_PREFIX)/bin/apxs \ |
| | | --with-bz2=shared \ |
| | | --with-config-file-path=$(CONF_DIR) \ |
| | | --with-config-file-scan-dir=$(MODULES_CONF_DIR) \ |
| | | --with-curl=shared \ |
| | | --with-curlwrappers \ |
| | | --with-gd=shared \ |
| | | --with-gettext=shared \ |
| | | --with-iconv=shared \ |
| | | --with-imap=shared,$(IMAP_DIR) \ |
| | | --with-imap-ssl=shared,/usr \ |
| | | --with-ldap=shared \ |
| | | --with-mysql=shared,$(MYSQL_DIR) \ |
| | | --with-mysql-sock=/tmp/mysql.sock \ |
| | | --with-mysqli=shared,$(MYSQL_DIR)/bin/mysql_config \ |
| | | --with-openssl=shared \ |
| | | --with-pear=$(PEAR_DIR) \ |
| | | --with-pdo-mysql=shared,$(MYSQL_DIR) \ |
| | | --with-pdo-sqlite=shared \ |
| | | --with-snmp=shared,/usr \ |
| | | --with-sqlite=shared \ |
| | | --with-tidy=shared,/usr \ |
| | | --without-tsrm-pthreads |
| | | |
| | | CONFIGURE_ENV += $(CONF_ENVLINE) |
| | | |
| | | COMPONENT_POST_BUILD_ACTION = ( \ |
| | | cat $(BUILD_DIR_32)/scripts/phpize | \ |
| | | sed -e "s,^\#!/bin/sh,\#!$(CONFIG_SHELL)," | \ |
| | | sed -e "s%^prefix=.*%prefix=$(SOURCE_DIR)%" | \ |
| | | sed -e "s%^includedir=.*%includedir=$(SOURCE_DIR)%" | \ |
| | | sed -e "s%^phpdir=.*%phpdir=$(SOURCE_DIR)%" | \ |
| | | sed -e "s%phpdir/phpize.m4%phpdir/scripts/phpize.m4%" | \ |
| | | sed -e "s%$PHP_AUTOCONF || exit 1%$PHP_AUTOCONF -f || exit 1%" | \ |
| | | sed -e "s%$PHP_AUTOHEADER || exit 1%$PHP_AUTOHEADER -f || exit 1%" | \ |
| | | sed -e 's%(cd "$$phpdir" && cp $$FILES_BUILD "$$builddir"/build)%(cd "$$phpdir/build" \&\& cp $$FILES_BUILD "$$builddir"/build)%' | \ |
| | | sed -e "s%^builddir=.*%builddir=$(BUILD_DIR_32)%" \ |
| | | > phpize-proto ; \ |
| | | chmod 755 phpize-proto ) ; \ |
| | | ( cat $(BUILD_DIR_32)/scripts/php-config | \ |
| | | sed -e "s,^\#! /bin/sh,\#!$(CONFIG_SHELL)," | \ |
| | | sed -e "s%^prefix=.*%prefix=$(SOURCE_DIR)%" | \ |
| | | sed -e "s%^include_dir=.*%include_dir=$(SOURCE_DIR)%" \ |
| | | > php-config-proto ; \ |
| | | chmod 755 php-config-proto ) ; \ |
| | | ( cat $(BUILD_DIR_32)/scripts/php-config | \ |
| | | sed -e "s,^\#! /bin/sh,\#!$(CONFIG_SHELL)," | \ |
| | | sed -e "s%^prefix=.*%prefix=$(COMPONENT_DIR)/../php-nsapi/$(COMPONENT_SRC)%" | \ |
| | | sed -e "s%^include_dir=.*%include_dir=$(COMPONENT_DIR)/../php-nsapi/$(COMPONENT_SRC)%" | \ |
| | | sed -e "s%^extension_dir=.*%extension_dir=$(ZTS_MODULES_DIR)%" \ |
| | | > php-config-proto.zts ; \ |
| | | chmod 755 php-config-proto.zts ) |
| | | |
| | | ADD_APACHE2_MODULE_SUPPORT = ( \ |
| | | $(MKDIR) $(PROTO_DIR)/$(APACHE2_CONFDIR); \ |
| | | $(CP) $(COMPONENT_DIR)/../Solaris/php$(PHP_REL).conf \ |
| | | $(PROTO_DIR)/$(APACHE2_CONFDIR)/php$(PHP_REL).conf; \ |
| | | $(CHMOD) 644 $(PROTO_DIR)/$(APACHE2_CONFDIR)/php$(PHP_REL).conf; \ |
| | | $(CP) $(PROTO_DIR)/$(APACHE2_EXTDIR)/libphp5.so \ |
| | | $(PROTO_DIR)/$(APACHE2_EXTDIR)/mod_php$(PHP_REL).so \ |
| | | ) |
| | | |
| | | # Ship a default php.ini to simplify ease of use. |
| | | FIX_CONFIG_FILES = ( \ |
| | | cd $(SOURCE_DIR); \ |
| | | $(GPATCH) -p1 -o php.ini-patched -i ../patches-other/php_ini.patch; \ |
| | | $(GSED) -e "s@<<VERSION>>@$(PHP_REL)@g" < php.ini-patched > php.ini; \ |
| | | $(INSTALL) -m 644 php.ini $(PROTO_DIR)/$(CONF_DIR)/php.ini; \ |
| | | ) |
| | | |
| | | INSTALL_DOCS = ( \ |
| | | $(MKDIR) $(PROTO_DIR)/$(DOCDIR); \ |
| | | $(UNPACK) -r $(PROTO_DIR)/$(DOCDIR) $(COMPONENT_ARCHIVE_1); \ |
| | | ) |
| | | |
| | | INSTALL_SAMPLES = ( \ |
| | | $(MKDIR) $(PROTO_DIR)/$(SCRIPTS_DIR); \ |
| | | $(MKDIR) $(COMPONENT_DIR)/tmp; \ |
| | | cd $(COMPONENT_DIR); \ |
| | | $(GSED) -e "s,\<\<INSTALL_DIR\>\>,$(PHP_ROOT)," \ |
| | | -e "s,\<\<CONF_DIR\>\>,$(CONFDIR)," \ |
| | | -e "s,\<\<NSAPI_CONF_DIR\>\>,$(NSAPI_CONFDIR)," \ |
| | | -e "s,\<\<MODULES_CONF_DIR\>\>,$(MODULES_CONFDIR)," \ |
| | | -e "s,\<\<ZTS_MODULES_CONF_DIR\>\>,$(ZTS_MODULES_CONFDIR)," \ |
| | | < $(COMPONENT_DIR)/../Solaris/configure-sun-webserver \ |
| | | > tmp/tmp; \ |
| | | $(INSTALL) -m 555 tmp/tmp \ |
| | | $(PROTO_DIR)/$(SCRIPTS_DIR)/configure-sun-webserver; \ |
| | | cd $(PROTO_DIR)/$(PHP_BIN); \ |
| | | $(RM) configure-webserver7; \ |
| | | $(SYMLINK) ../samples/scripts/configure-sun-webserver \ |
| | | configure-webserver7; \ |
| | | ) |
| | | |
| | | # configure man pages |
| | | INSTALL_MAN = ( \ |
| | | $(MKDIR) $(PROTOUSRSHAREMAN1DIR); \ |
| | | $(INSTALL) -m 444 $(COMPONENT_DIR)/../Solaris/php.1.sunman \ |
| | | $(PROTOUSRSHAREMAN1DIR)/php.1; \ |
| | | ) |
| | | |
| | | # patch installation to support pear installation. |
| | | PATCH_PEAR = ( \ |
| | | cd $(PROTO_DIR)/$(PHP_BIN); \ |
| | | $(GPATCH) -N -i $(COMPONENT_DIR)/patches-other/pear_pecl.patch; \ |
| | | $(GPATCH) -N -i $(COMPONENT_DIR)/patches-other/pear_php_config.patch; \ |
| | | cd $(PROTO_DIR)/$(PHP_LIB)/build; \ |
| | | $(GPATCH) -N -i $(COMPONENT_DIR)/patches-other/pear_Makefile_global.patch; \ |
| | | cd $(PROTO_DIR)/$(PEAR_DIR); \ |
| | | $(GPATCH) -N -p0 -i $(COMPONENT_DIR)/patches-other/pear_Builder_php.patch; \ |
| | | $(CP) $(COMPONENT_DIR)/config/pear/*.reg \ |
| | | $(PROTO_DIR)/$(PEAR_DIR)/.channels/; \ |
| | | ) |
| | | |
| | | # Create symbolic links |
| | | # Not strictly necessary but makes the proto area more correct. |
| | | CREATE_SYMLINKS = ( \ |
| | | cd $(PROTO_DIR)/usr/php; \ |
| | | $(RM) bin lib include modules doc man; \ |
| | | $(SYMLINK) ./$(PHP_REL)/bin bin; \ |
| | | $(SYMLINK) ./$(PHP_REL)/lib lib; \ |
| | | $(SYMLINK) ./$(PHP_REL)/include include; \ |
| | | $(SYMLINK) ./$(PHP_REL)/modules modules; \ |
| | | $(SYMLINK) ./$(PHP_REL)/doc doc; \ |
| | | $(SYMLINK) ./$(PHP_REL)/man man; \ |
| | | ) |
| | | |
| | | COMPONENT_POST_INSTALL_ACTION = ( \ |
| | | $(ADD_APACHE2_MODULE_SUPPORT); \ |
| | | $(FIX_CONFIG_FILES); \ |
| | | $(FIX_CONFIG_FILES_2); \ |
| | | $(INSTALL_DOCS); \ |
| | | $(INSTALL_SAMPLES); \ |
| | | $(INSTALL_MAN); \ |
| | | $(PATCH_PEAR); \ |
| | | $(CREATE_SYMLINKS); \ |
| | | ) |
| | | |
| | | # This package contains all 3 versions of php: |
| | | # sapi, cgi, nsapi |
| | | PKG_PROTO_DIRS += $(COMPONENT_DIR)/../php-nsapi/build/prototype/$(MACH) |
| | | PKG_PROTO_DIRS += $(COMPONENT_DIR)/../php-cgi/build/prototype/$(MACH) |
| | | |
| | | CLEAN_PATHS += phpize-proto php-config-proto php-config-proto.zts tmp |
| | | CLEAN_PATHS += php.ini-patched |
| | | |
| | | # common targets |
| | | build: $(BUILD_32) |
| | | |
| | | install: $(INSTALL_32) PHP-NSAPI_INSTALL PHP-CGI_INSTALL |
| | | |
| | | test: $(TEST_32) |
| | | |
| | | ../imap/build/$(MACH32)/.built: |
| | | (cd ../imap ; $(MAKE) build) |
| | | |
| | | ../php-nsapi/build/$(MACH32)/.installed: |
| | | (cd ../php-nsapi ; $(MAKE) install) |
| | | |
| | | ../php-cgi/build/$(MACH32)/.installed: |
| | | (cd ../php-cgi ; $(MAKE) install) |
| | | |
| | | $(BUILD_DIR_32)/.configured: ../imap/build/$(MACH32)/.built |
| | | PHP-NSAPI_INSTALL: ../php-nsapi/build/$(MACH32)/.installed |
| | | PHP-CGI_INSTALL: ../php-cgi/build/$(MACH32)/.installed |
| | | |
| | | BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
| | | |
| | | include $(WS_TOP)/make-rules/depend.mk |
New file |
| | |
| | | a:4:{s:4:"name";s:5:"__uri";s:7:"servers";a:1:{s:7:"primary";a:1:{s:4:"rest";a:1:{s:7:"baseurl";a:2:{s:7:"attribs";a:1:{s:4:"type";s:7:"REST1.0";}s:8:"_content";s:4:"****";}}}}s:7:"summary";s:34:"Pseudo-channel for static packages";s:13:"_lastmodified";s:31:"Wed, 16 Sep 2009 21:03:21 +0000";} |
New file |
| | |
| | | a:6:{s:7:"attribs";a:4:{s:7:"version";s:3:"1.0";s:5:"xmlns";s:31:"http://pear.php.net/channel-1.0";s:9:"xmlns:xsi";s:41:"http://www.w3.org/2001/XMLSchema-instance";s:18:"xsi:schemaLocation";s:71:"http://pear.php.net/channel-1.0 http://pear.php.net/dtd/channel-1.0.xsd";}s:4:"name";s:11:"doc.php.net";s:7:"summary";s:22:"PHP Documentation team";s:14:"suggestedalias";s:7:"phpdocs";s:7:"servers";a:1:{s:7:"primary";a:1:{s:4:"rest";a:1:{s:7:"baseurl";a:3:{i:0;a:2:{s:7:"attribs";a:1:{s:4:"type";s:7:"REST1.0";}s:8:"_content";s:24:"http://doc.php.net/rest/";}i:1;a:2:{s:7:"attribs";a:1:{s:4:"type";s:7:"REST1.1";}s:8:"_content";s:24:"http://doc.php.net/rest/";}i:2;a:2:{s:7:"attribs";a:1:{s:4:"type";s:7:"REST1.3";}s:8:"_content";s:24:"http://doc.php.net/rest/";}}}}}s:13:"_lastmodified";a:2:{s:4:"ETag";s:21:""2400c6-276-825152c0"";s:13:"Last-Modified";s:29:"Thu, 04 Jun 2009 14:22:43 GMT";}} |
New file |
| | |
| | | a:5:{s:4:"name";s:12:"pear.php.net";s:14:"suggestedalias";s:4:"pear";s:7:"summary";s:40:"PHP Extension and Application Repository";s:7:"servers";a:1:{s:7:"primary";a:1:{s:4:"rest";a:1:{s:7:"baseurl";a:2:{i:0;a:2:{s:7:"attribs";a:1:{s:4:"type";s:7:"REST1.0";}s:8:"_content";s:25:"http://pear.php.net/rest/";}i:1;a:2:{s:7:"attribs";a:1:{s:4:"type";s:7:"REST1.1";}s:8:"_content";s:25:"http://pear.php.net/rest/";}}}}}s:13:"_lastmodified";s:31:"Wed, 16 Sep 2009 21:03:21 +0000";} |
New file |
| | |
| | | a:6:{s:4:"name";s:12:"pecl.php.net";s:14:"suggestedalias";s:4:"pecl";s:7:"summary";s:31:"PHP Extension Community Library";s:7:"servers";a:1:{s:7:"primary";a:1:{s:4:"rest";a:1:{s:7:"baseurl";a:2:{i:0;a:2:{s:7:"attribs";a:1:{s:4:"type";s:7:"REST1.0";}s:8:"_content";s:25:"http://pecl.php.net/rest/";}i:1;a:2:{s:7:"attribs";a:1:{s:4:"type";s:7:"REST1.1";}s:8:"_content";s:25:"http://pecl.php.net/rest/";}}}}}s:15:"validatepackage";a:2:{s:8:"_content";s:19:"PEAR_Validator_PECL";s:7:"attribs";a:1:{s:7:"version";s:3:"1.0";}}s:13:"_lastmodified";s:31:"Wed, 16 Sep 2009 21:03:21 +0000";} |
New file |
| | |
| | | php-5_2/php-sapi: php-5_2/imap |
New file |
| | |
| | | --- PEAR/Builder.php.ORIG Tue Jun 30 16:44:29 2009 |
| | | +++ PEAR/Builder.php Tue Jun 30 16:44:37 2009 |
| | | @@ -379,7 +379,7 @@ |
| | | $built_files = array(); |
| | | $prefix = exec($this->config->get('php_prefix') |
| | | . "php-config" . |
| | | - $this->config->get('php_suffix') . " --prefix"); |
| | | + $this->config->get('php_suffix') . " --pear-prefix"); |
| | | $this->_harvestInstDir($prefix, $inst_dir . DIRECTORY_SEPARATOR . $prefix, $built_files); |
| | | chdir($old_cwd); |
| | | return $built_files; |
New file |
| | |
| | | --- build/Makefile.global.ORIG Mon Jul 7 16:18:04 2008 |
| | | +++ build/Makefile.global Mon Jul 7 16:22:56 2008 |
| | | @@ -1,6 +1,8 @@ |
| | | mkinstalldirs = $(top_srcdir)/build/shtool mkdir -p |
| | | INSTALL = $(top_srcdir)/build/shtool install -c |
| | | INSTALL_DATA = $(INSTALL) -m 644 |
| | | +PECL_EXTENSION_DIR=/var/php/5.2/modules |
| | | +PECL_INCLUDE_DIR=/var/php/5.2/include |
| | | |
| | | DEFS = -DPHP_ATOM_INC -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I$(top_builddir)/include -I$(top_builddir)/main -I$(top_srcdir) |
| | | COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(PHP_FRAMEWORKPATH) |
| | | @@ -37,19 +39,19 @@ |
| | | |
| | | install-modules: build-modules |
| | | @test -d modules && \ |
| | | - $(mkinstalldirs) $(INSTALL_ROOT)$(EXTENSION_DIR) |
| | | - @echo "Installing shared extensions: $(INSTALL_ROOT)$(EXTENSION_DIR)/" |
| | | + $(mkinstalldirs) $(INSTALL_ROOT)$(PECL_EXTENSION_DIR) |
| | | + @echo "Installing shared extensions: $(INSTALL_ROOT)$(PECL_EXTENSION_DIR)/" |
| | | @rm -f modules/*.la >/dev/null 2>&1 |
| | | - @$(INSTALL) modules/* $(INSTALL_ROOT)$(EXTENSION_DIR) |
| | | + @$(INSTALL) modules/* $(INSTALL_ROOT)$(PECL_EXTENSION_DIR) |
| | | |
| | | install-headers: |
| | | -@if test "$(INSTALL_HEADERS)"; then \ |
| | | for i in `echo $(INSTALL_HEADERS)`; do \ |
| | | i=`$(top_srcdir)/build/shtool path -d $$i`; \ |
| | | - paths="$$paths $(INSTALL_ROOT)$(phpincludedir)/$$i"; \ |
| | | + paths="$$paths $(INSTALL_ROOT)$(PECL_INCLUDE_DIR)/$$i"; \ |
| | | done; \ |
| | | $(mkinstalldirs) $$paths && \ |
| | | - echo "Installing header files: $(INSTALL_ROOT)$(phpincludedir)/" && \ |
| | | + echo "Installing header files: $(INSTALL_ROOT)$(PECL_INCLUDE_DIR)/" && \ |
| | | for i in `echo $(INSTALL_HEADERS)`; do \ |
| | | if test "$(PHP_PECL_EXTENSION)"; then \ |
| | | src=`echo $$i | $(SED) -e "s#ext/$(PHP_PECL_EXTENSION)/##g"`; \ |
| | | @@ -57,12 +59,12 @@ |
| | | src=$$i; \ |
| | | fi; \ |
| | | if test -f "$(top_srcdir)/$$src"; then \ |
| | | - $(INSTALL_DATA) $(top_srcdir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \ |
| | | + $(INSTALL_DATA) $(top_srcdir)/$$src $(INSTALL_ROOT)$(PECL_INCLUDE_DIR)/$$i; \ |
| | | elif test -f "$(top_builddir)/$$src"; then \ |
| | | - $(INSTALL_DATA) $(top_builddir)/$$src $(INSTALL_ROOT)$(phpincludedir)/$$i; \ |
| | | + $(INSTALL_DATA) $(top_builddir)/$$src $(INSTALL_ROOT)$(PECL_INCLUDE_DIR)/$$i; \ |
| | | else \ |
| | | - (cd $(top_srcdir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i; \ |
| | | - cd $(top_builddir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(phpincludedir)/$$i) 2>/dev/null || true; \ |
| | | + (cd $(top_srcdir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(PECL_INCLUDE_DIR)/$$i; \ |
| | | + cd $(top_builddir)/$$src && $(INSTALL_DATA) *.h $(INSTALL_ROOT)$(PECL_INCLUDE_DIR)/$$i) 2>/dev/null || true; \ |
| | | fi \ |
| | | done; \ |
| | | fi |
New file |
| | |
| | | --- pecl.ORIG Tue Sep 9 19:45:00 2008 |
| | | +++ pecl Tue Sep 9 19:45:33 2008 |
| | | @@ -25,4 +25,15 @@ |
| | | fi |
| | | fi |
| | | |
| | | +# define CC if not defined |
| | | +if test -x "/usr/bin/gcc"; then |
| | | + CC="/usr/bin/gcc" |
| | | + LD=$CC |
| | | + export CC LD |
| | | +elif test -x "/usr/sfw/bin/gcc"; then |
| | | + CC="/usr/sfw/bin/gcc" |
| | | + LD=$CC |
| | | + export CC LD |
| | | +fi |
| | | + |
| | | exec $PHP -C -n -q $INCARG -d output_buffering=1 -d variables_order=EGPCS -d safe_mode=0 -d register_argc_argv="On" $INCDIR/peclcmd.php "$@" |
New file |
| | |
| | | --- php-config.ORIG Sun Jul 20 04:52:52 2008 |
| | | +++ php-config Sun Jul 20 02:06:47 2008 |
| | | @@ -43,6 +43,8 @@ |
| | | case "$1" in |
| | | --prefix) |
| | | echo $prefix;; |
| | | +--pear-prefix) |
| | | + echo $pear_prefix;; |
| | | --includes) |
| | | echo $includes;; |
| | | --ldflags) |
New file |
| | |
| | | --- php-5.2.17/php.ini-recommended.ORIG Tue Feb 1 21:23:46 2011 |
| | | +++ php-5.2.17/php.ini-recommended Mon Jan 17 08:53:16 2011 |
| | | @@ -523,6 +523,7 @@ |
| | | |
| | | ; UNIX: "/path1:/path2" |
| | | ;include_path = ".:/php/includes" |
| | | +;include_path = ".:/var/php/<<VERSION>>/pear" |
| | | ; |
| | | ; Windows: "\path1;\path2" |
| | | ;include_path = ".;c:\php\includes" |
| | | @@ -539,7 +540,7 @@ |
| | | user_dir = |
| | | |
| | | ; Directory in which the loadable extensions (modules) reside. |
| | | -extension_dir = "./" |
| | | +extension_dir = "/usr/php/<<VERSION>>/modules:/var/php/<<VERSION>>/modules" |
| | | |
| | | ; Whether or not to enable the dl() function. The dl() function does NOT work |
| | | ; properly in multithreaded servers, such as IIS or Zeus, and is automatically |
| | | @@ -623,7 +624,7 @@ |
| | | ; user_agent="PHP" |
| | | |
| | | ; Default timeout for socket based streams (seconds) |
| | | -default_socket_timeout = 60 |
| | | +default_socket_timeout = 1800 |
| | | |
| | | ; If your scripts have to deal with files from Macintosh systems, |
| | | ; or you are running on a Mac and need to deal with files from |
| | | @@ -653,60 +654,12 @@ |
| | | ; Note that it should be the name of the module only; no directory information |
| | | ; needs to go here. Specify the location of the extension with the |
| | | ; extension_dir directive above. |
| | | +; |
| | | +; Bundled extensions are configured to load automatically within extension |
| | | +; specific ini file. These extension specific ini files are found under |
| | | +; /etc/php/<<VERSION>>/conf.d directory |
| | | |
| | | |
| | | -; Windows Extensions |
| | | -; Note that ODBC support is built in, so no dll is needed for it. |
| | | -; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5) |
| | | -; extension folders as well as the separate PECL DLL download (PHP 5). |
| | | -; Be sure to appropriately set the extension_dir directive. |
| | | - |
| | | -;extension=php_bz2.dll |
| | | -;extension=php_curl.dll |
| | | -;extension=php_dba.dll |
| | | -;extension=php_dbase.dll |
| | | -;extension=php_fdf.dll |
| | | -;extension=php_gd2.dll |
| | | -;extension=php_gettext.dll |
| | | -;extension=php_gmp.dll |
| | | -;extension=php_ifx.dll |
| | | -;extension=php_imap.dll |
| | | -;extension=php_interbase.dll |
| | | -;extension=php_ldap.dll |
| | | -;extension=php_mbstring.dll |
| | | -;extension=php_exif.dll |
| | | -;extension=php_mcrypt.dll |
| | | -;extension=php_mhash.dll |
| | | -;extension=php_mime_magic.dll |
| | | -;extension=php_ming.dll |
| | | -;extension=php_msql.dll |
| | | -;extension=php_mssql.dll |
| | | -;extension=php_mysql.dll |
| | | -;extension=php_mysqli.dll |
| | | -;extension=php_oci8.dll |
| | | -;extension=php_openssl.dll |
| | | -;extension=php_pdo.dll |
| | | -;extension=php_pdo_firebird.dll |
| | | -;extension=php_pdo_mssql.dll |
| | | -;extension=php_pdo_mysql.dll |
| | | -;extension=php_pdo_oci.dll |
| | | -;extension=php_pdo_oci8.dll |
| | | -;extension=php_pdo_odbc.dll |
| | | -;extension=php_pdo_pgsql.dll |
| | | -;extension=php_pdo_sqlite.dll |
| | | -;extension=php_pgsql.dll |
| | | -;extension=php_pspell.dll |
| | | -;extension=php_shmop.dll |
| | | -;extension=php_snmp.dll |
| | | -;extension=php_soap.dll |
| | | -;extension=php_sockets.dll |
| | | -;extension=php_sqlite.dll |
| | | -;extension=php_sybase_ct.dll |
| | | -;extension=php_tidy.dll |
| | | -;extension=php_xmlrpc.dll |
| | | -;extension=php_xsl.dll |
| | | -;extension=php_zip.dll |
| | | - |
| | | ;;;;;;;;;;;;;;;;;;; |
| | | ; Module Settings ; |
| | | ;;;;;;;;;;;;;;;;;;; |
| | | @@ -1044,6 +997,7 @@ |
| | | ; where MODE is the octal representation of the mode. Note that this |
| | | ; does not overwrite the process's umask. |
| | | ;session.save_path = "/tmp" |
| | | +session.save_path = "/var/php/<<VERSION>>/sessions" |
| | | |
| | | ; Whether to use cookies. |
| | | session.use_cookies = 1 |
| | | @@ -1082,11 +1036,11 @@ |
| | | ; on each request. |
| | | |
| | | session.gc_probability = 1 |
| | | -session.gc_divisor = 1000 |
| | | +session.gc_divisor = 5000 |
| | | |
| | | ; After this number of seconds, stored data will be seen as 'garbage' and |
| | | ; cleaned up by the garbage collection process. |
| | | -session.gc_maxlifetime = 1440 |
| | | +session.gc_maxlifetime = 6000 |
| | | |
| | | ; NOTE: If you are using the subdirectory option for storing session files |
| | | ; (see session.save_path above), then garbage collection does *not* |
| | | @@ -1114,12 +1068,11 @@ |
| | | session.entropy_length = 0 |
| | | |
| | | ; Specified here to create the session id. |
| | | -session.entropy_file = |
| | | +;session.entropy_file = |
| | | +session.entropy_file = /dev/urandom |
| | | |
| | | ;session.entropy_length = 16 |
| | | |
| | | -;session.entropy_file = /dev/urandom |
| | | - |
| | | ; Set to {nocache,private,public,} to determine HTTP caching aspects |
| | | ; or leave this empty to avoid sending anti-caching headers. |
| | | session.cache_limiter = nocache |
New file |
| | |
| | | --- php-5.2.9/ext/mysql/config.m4.ORIG Mon Mar 30 11:53:10 2009 |
| | | +++ php-5.2.9/ext/mysql/config.m4 Mon Mar 30 11:51:28 2009 |
| | | @@ -86,7 +86,9 @@ |
| | | Note that the MySQL client library is not bundled anymore!]) |
| | | fi |
| | | |
| | | - if test "$enable_maintainer_zts" = "yes"; then |
| | | + use_reentrant_mysqlclient="yes" |
| | | + if test "$enable_maintainer_zts" = "yes" -o \ |
| | | + "$use_reentrant_mysqlclient" = "yes" ; then |
| | | MYSQL_LIBNAME=mysqlclient_r |
| | | else |
| | | MYSQL_LIBNAME=mysqlclient |
| | | @@ -143,6 +145,7 @@ |
| | | MYSQL_LIBS="-L$MYSQL_LIB_DIR -l$MYSQL_LIBNAME $MYSQL_LIBS" |
| | | MYSQL_INCLUDE=-I$MYSQL_INC_DIR |
| | | |
| | | + MYSQL_SHARED_LIBADD="$MYSQL_SHARED_LIBADD -R/usr/mysql/5.1/lib/mysql" |
| | | PHP_SUBST(MYSQL_SHARED_LIBADD) |
| | | PHP_SUBST_OLD(MYSQL_MODULE_TYPE) |
| | | PHP_SUBST_OLD(MYSQL_LIBS) |
| | | --- php-5.2.9/ext/pdo_mysql/config.m4.ORIG Mon Mar 30 11:53:50 2009 |
| | | +++ php-5.2.9/ext/pdo_mysql/config.m4 Mon Mar 30 11:52:23 2009 |
| | | @@ -58,7 +58,9 @@ |
| | | if test "x$SED" = "x"; then |
| | | AC_PATH_PROG(SED, sed) |
| | | fi |
| | | - if test "$enable_maintainer_zts" = "yes"; then |
| | | + use_reentrant_mysqlclient="yes" |
| | | + if test "$enable_maintainer_zts" = "yes" -o \ |
| | | + "$use_reentrant_mysqlclient" = "yes" ; then |
| | | PDO_MYSQL_LIBNAME=mysqlclient_r |
| | | PDO_MYSQL_LIBS=`$PDO_MYSQL_CONFIG --libs_r | $SED -e "s/'//g"` |
| | | else |
| | | @@ -156,6 +158,7 @@ |
| | | ]) |
| | | PDO_MYSQL_MODULE_TYPE=external |
| | | |
| | | + PDO_MYSQL_SHARED_LIBADD="$PDO_MYSQL_SHARED_LIBADD -R/usr/mysql/5.1/lib/mysql" |
| | | PHP_SUBST(PDO_MYSQL_SHARED_LIBADD) |
| | | PHP_SUBST_OLD(PDO_MYSQL_MODULE_TYPE) |
| | | fi |
| | | --- php-5.2.9/ext/mysqli/config.m4.ORIG Mon Mar 30 11:53:18 2009 |
| | | +++ php-5.2.9/ext/mysqli/config.m4 Mon Mar 30 11:52:00 2009 |
| | | @@ -22,11 +22,13 @@ |
| | | MYSQL_CONFIG=$PHP_MYSQLI |
| | | fi |
| | | |
| | | + use_reentrant_mysqlclient="yes" |
| | | MYSQL_LIB_NAME='mysqlclient' |
| | | if test "$PHP_EMBEDDED_MYSQLI" = "yes"; then |
| | | AC_DEFINE(HAVE_EMBEDDED_MYSQLI, 1, [embedded MySQL support enabled]) |
| | | MYSQL_LIB_CFG='--libmysqld-libs' |
| | | - elif test "$enable_maintainer_zts" = "yes"; then |
| | | + elif test "$enable_maintainer_zts" = "yes" -o \ |
| | | + "$use_reentrant_mysqlclient" = "yes" ; then |
| | | MYSQL_LIB_CFG='--libs_r' |
| | | MYSQL_LIB_NAME='mysqlclient_r' |
| | | else |
| | | @@ -60,5 +62,6 @@ |
| | | ]) |
| | | |
| | | PHP_NEW_EXTENSION(mysqli, mysqli.c mysqli_api.c mysqli_prop.c mysqli_nonapi.c mysqli_fe.c mysqli_report.c mysqli_repl.c mysqli_driver.c mysqli_warning.c mysqli_exception.c mysqli_embedded.c, $ext_shared) |
| | | + MYSQLI_SHARED_LIBADD="$MYSQLI_SHARED_LIBADD -R/usr/mysql/5.1/lib/mysql" |
| | | PHP_SUBST(MYSQLI_SHARED_LIBADD) |
| | | fi |
| | | --- php-5.2.9/sapi/apache/config.m4.ORIG Wed Mar 11 17:32:35 2009 |
| | | +++ php-5.2.9/sapi/apache/config.m4 Wed Mar 11 17:35:20 2009 |
| | | @@ -18,6 +18,23 @@ |
| | | fi |
| | | ]) |
| | | |
| | | +dnl PHP_AP2_EXTRACT_VERSION(/path/httpd) |
| | | +dnl |
| | | +dnl This macro is used to get a comparable |
| | | +dnl version for apache1/2. |
| | | +dnl |
| | | +AC_DEFUN([PHP_AP2_EXTRACT_VERSION],[ |
| | | + ac_output=`env LD_LIBRARY_PATH=$APXS_LIBDIR $1 -v 2>&1 | grep version` |
| | | + ac_IFS=$IFS |
| | | +IFS="- /. |
| | | +" |
| | | + set $ac_output |
| | | + IFS=$ac_IFS |
| | | + |
| | | + APACHE_VERSION=`expr [$]4 \* 1000000 + [$]5 \* 1000 + [$]6` |
| | | +]) |
| | | + |
| | | +dnl |
| | | dnl Apache 1.x shared module |
| | | PHP_ARG_WITH(apxs,, |
| | | [ --with-apxs[=FILE] Build shared Apache 1.x module. FILE is the optional |
| | | @@ -52,12 +69,13 @@ |
| | | |
| | | APXS_LDFLAGS="@SYBASE_LFLAGS@ @SYBASE_LIBS@ @SYBASE_CT_LFLAGS@ @SYBASE_CT_LIBS@" |
| | | APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR` |
| | | + APXS_LIBDIR=`$APXS -q LIBDIR` |
| | | APXS_CFLAGS=`$APXS -q CFLAGS` |
| | | APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET` |
| | | APACHE_INCLUDE=-I$APXS_INCLUDEDIR |
| | | |
| | | # Test that we're trying to configure with apache 1.x |
| | | - PHP_AP_EXTRACT_VERSION($APXS_HTTPD) |
| | | + PHP_AP2_EXTRACT_VERSION($APXS_HTTPD) |
| | | if test "$APACHE_VERSION" -ge 2000000; then |
| | | AC_MSG_ERROR([You have enabled Apache 1.3 support while your server is Apache 2. Please use the appropiate switch --with-apxs2]) |
| | | fi |
| | | --- php-5.2.9/sapi/apache2handler/config.m4.ORIG Wed Mar 11 16:18:06 2009 |
| | | +++ php-5.2.9/sapi/apache2handler/config.m4 Wed Mar 11 16:17:30 2009 |
| | | @@ -6,6 +6,23 @@ |
| | | [ --with-apxs2[=FILE] Build shared Apache 2.0 Handler module. FILE is the optional |
| | | pathname to the Apache apxs tool [apxs]], no, no) |
| | | |
| | | +dnl PHP_AP2_EXTRACT_VERSION(/path/httpd) |
| | | +dnl |
| | | +dnl This macro is used to get a comparable |
| | | +dnl version for apache/2. |
| | | +dnl |
| | | +AC_DEFUN([PHP_AP2_EXTRACT_VERSION],[ |
| | | + ac_output=`env LD_LIBRARY_PATH=$APXS_LIBDIR $1 -v 2>&1 | grep version` |
| | | + ac_IFS=$IFS |
| | | +IFS="- /. |
| | | +" |
| | | + set $ac_output |
| | | + IFS=$ac_IFS |
| | | + |
| | | + APACHE_VERSION=`expr [$]4 \* 1000000 + [$]5 \* 1000 + [$]6` |
| | | +]) |
| | | + |
| | | +dnl |
| | | AC_MSG_CHECKING([for Apache 2.0 handler-module support via DSO through APXS]) |
| | | |
| | | if test "$PHP_APXS2" != "no"; then |
| | | @@ -36,6 +53,7 @@ |
| | | |
| | | APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR` |
| | | APXS_BINDIR=`$APXS -q BINDIR` |
| | | + APXS_LIBDIR=`$APXS -q LIBDIR` |
| | | APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET` |
| | | APXS_CFLAGS=`$APXS -q CFLAGS` |
| | | APXS_MPM=`$APXS -q MPM_NAME` |
| | | @@ -60,7 +78,7 @@ |
| | | APACHE_CFLAGS="$APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $APR_CFLAGS $APU_CFLAGS" |
| | | |
| | | # Test that we're trying to configure with apache 2.x |
| | | - PHP_AP_EXTRACT_VERSION($APXS_HTTPD) |
| | | + PHP_AP2_EXTRACT_VERSION($APXS_HTTPD) |
| | | if test "$APACHE_VERSION" -le 2000000; then |
| | | AC_MSG_ERROR([You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropiate switch --with-apxs (without the 2)]) |
| | | elif test "$APACHE_VERSION" -lt 2000044; then |
| | | --- php-5.2.9/sapi/apache2filter/config.m4.ORIG Wed Mar 11 16:30:32 2009 |
| | | +++ php-5.2.9/sapi/apache2filter/config.m4 Wed Mar 11 16:33:27 2009 |
| | | @@ -9,6 +9,23 @@ |
| | | |
| | | AC_MSG_CHECKING([for Apache 2.0 filter-module support via DSO through APXS]) |
| | | |
| | | +dnl PHP_AP2_EXTRACT_VERSION(/path/httpd) |
| | | +dnl |
| | | +dnl This macro is used to get a comparable |
| | | +dnl version for apache2. |
| | | +dnl |
| | | +AC_DEFUN([PHP_AP2_EXTRACT_VERSION],[ |
| | | + ac_output=`env LD_LIBRARY_PATH=$APXS_LIBDIR $1 -v 2>&1 | grep version` |
| | | + ac_IFS=$IFS |
| | | +IFS="- /. |
| | | +" |
| | | + set $ac_output |
| | | + IFS=$ac_IFS |
| | | + |
| | | + APACHE_VERSION=`expr [$]4 \* 1000000 + [$]5 \* 1000 + [$]6` |
| | | +]) |
| | | + |
| | | +dnl |
| | | if test "$PHP_APXS2FILTER" != "no"; then |
| | | if test "$PHP_APXS2FILTER" = "yes"; then |
| | | APXS=apxs |
| | | @@ -37,6 +54,7 @@ |
| | | |
| | | APXS_INCLUDEDIR=`$APXS -q INCLUDEDIR` |
| | | APXS_BINDIR=`$APXS -q BINDIR` |
| | | + APXS_LIBDIR=`$APXS -q LIBDIR` |
| | | APXS_HTTPD=`$APXS -q SBINDIR`/`$APXS -q TARGET` |
| | | APXS_CFLAGS=`$APXS -q CFLAGS` |
| | | APXS_MPM=`$APXS -q MPM_NAME` |
| | | @@ -61,7 +79,7 @@ |
| | | APACHE_CFLAGS="$APACHE_CPPFLAGS -I$APXS_INCLUDEDIR $APR_CFLAGS $APU_CFLAGS" |
| | | |
| | | # Test that we're trying to configure with apache 2.x |
| | | - PHP_AP_EXTRACT_VERSION($APXS_HTTPD) |
| | | + PHP_AP2_EXTRACT_VERSION($APXS_HTTPD) |
| | | if test "$APACHE_VERSION" -le 2000000; then |
| | | AC_MSG_ERROR([You have enabled Apache 2 support while your server is Apache 1.3. Please use the appropiate switch --with-apxs (without the 2)]) |
| | | elif test "$APACHE_VERSION" -lt 2000040; then |
New file |
| | |
| | | Index: php-5.2.12/Zend/zend_dtrace.d |
| | | =================================================================== |
| | | --- php-5.2.12.orig/Zend/zend_dtrace.d Thu Dec 17 18:45:36 2009 |
| | | +++ php-5.2.12/Zend/zend_dtrace.d Thu Dec 17 18:48:23 2009 |
| | | @@ -0,0 +1,39 @@ |
| | | +/* |
| | | + +----------------------------------------------------------------------+ |
| | | + | Zend Engine | |
| | | + +----------------------------------------------------------------------+ |
| | | + | Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) | |
| | | + +----------------------------------------------------------------------+ |
| | | + | This source file is subject to version 2.00 of the Zend license, | |
| | | + | that is bundled with this package in the file LICENSE, and is | |
| | | + | available through the world-wide-web at the following url: | |
| | | + | http://www.zend.com/license/2_00.txt. | |
| | | + | If you did not receive a copy of the Zend license and are unable to | |
| | | + | obtain it through the world-wide-web, please send a note to | |
| | | + | license@zend.com so we can mail you a copy immediately. | |
| | | + +----------------------------------------------------------------------+ |
| | | + | Authors: David Soria Parra <david.soriaparra@sun.com> | |
| | | + +----------------------------------------------------------------------+ |
| | | +*/ |
| | | + |
| | | +/* $Id: $ */ |
| | | + |
| | | +provider php { |
| | | + probe exception__caught(char *classname); |
| | | + probe exception__thrown(char* classname); |
| | | + probe request__startup(char* request_file, char* request_uri, char* request_method); |
| | | + probe request__shutdown(char* request_file, char* request_uri, char* request_method); |
| | | + probe compile__file__entry(char * compile_file, char *compile_file_translated); |
| | | + probe compile__file__return(char *compile_file, char *compile_file_translated); |
| | | + probe error(char *errormsg, char *request_file, int lineno); |
| | | + probe execute__entry(char* request_file, int lineno); |
| | | + probe execute__return(char* request_file, int lineno); |
| | | + probe function__entry(char* function_name, char* request_file, int lineno, char* classname, char* scope); |
| | | + probe function__return(char* function_name, char* request_file, int lineno, char* classname, char* scope); |
| | | + probe object__create(char *classname, char* request_file, int lineno); |
| | | + probe object__destroy(char *classname, char* request_file, int lineno); |
| | | +}; |
| | | + |
| | | +/*#pragma D attributes Private/Private/Unknown provider php module |
| | | +#pragma D attributes Private/Private/Unknown provider php function |
| | | +#pragma D attributes Evolving/Evolving/Common provider php provider */ |
| | | Index: php-5.2.12/Zend/zend_dtrace.h |
| | | =================================================================== |
| | | --- php-5.2.12.orig/Zend/zend_dtrace.h Thu Dec 17 18:45:36 2009 |
| | | +++ php-5.2.12/Zend/zend_dtrace.h Thu Dec 17 18:48:23 2009 |
| | | @@ -0,0 +1,49 @@ |
| | | +/* |
| | | + +----------------------------------------------------------------------+ |
| | | + | Zend Engine | |
| | | + +----------------------------------------------------------------------+ |
| | | + | Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) | |
| | | + +----------------------------------------------------------------------+ |
| | | + | This source file is subject to version 2.00 of the Zend license, | |
| | | + | that is bundled with this package in the file LICENSE, and is | |
| | | + | available through the world-wide-web at the following url: | |
| | | + | http://www.zend.com/license/2_00.txt. | |
| | | + | If you did not receive a copy of the Zend license and are unable to | |
| | | + | obtain it through the world-wide-web, please send a note to | |
| | | + | license@zend.com so we can mail you a copy immediately. | |
| | | + +----------------------------------------------------------------------+ |
| | | + | Authors: David Soria Parra <david.soriaparra@sun.com> | |
| | | + +----------------------------------------------------------------------+ |
| | | +*/ |
| | | + |
| | | +/* $Id: $ */ |
| | | + |
| | | +#ifndef _ZEND_DTRACE_H |
| | | +#define _ZEND_DTRACE_H |
| | | + |
| | | +#ifndef ZEND_WIN32 |
| | | +# include <unistd.h> |
| | | +#endif |
| | | + |
| | | +#ifdef __cplusplus |
| | | +extern "C" { |
| | | +#endif |
| | | + |
| | | +#ifdef HAVE_DTRACE |
| | | +ZEND_API zend_op_array *(*zend_dtrace_compile_file)(zend_file_handle *file_handle, int type TSRMLS_DC); |
| | | +ZEND_API void (*zend_dtrace_execute)(zend_op_array *op_array TSRMLS_DC); |
| | | +ZEND_API void (*zend_dtrace_execute_internal)(zend_execute_data *execute_data_ptr, int return_value_used TSRMLS_DC); |
| | | + |
| | | +ZEND_API zend_op_array *dtrace_compile_file(zend_file_handle *file_handle, int type TSRMLS_DC); |
| | | +ZEND_API void dtrace_execute(zend_op_array *op_array TSRMLS_DC); |
| | | +ZEND_API void dtrace_execute_internal(zend_execute_data *execute_data_ptr, int return_value_used TSRMLS_DC); |
| | | +ZEND_API char *dtrace_get_executed_filename(TSRMLS_D); |
| | | +#include <zend_dtrace_gen.h> |
| | | + |
| | | +#endif /* HAVE_DTRACE */ |
| | | + |
| | | +#ifdef __cplusplus |
| | | +} |
| | | +#endif |
| | | + |
| | | +#endif /* _ZEND_DTRACE_H */ |
| | | Index: php-5.2.12/Zend/zend_dtrace.c |
| | | =================================================================== |
| | | --- php-5.2.12.orig/Zend/zend_dtrace.c Thu Dec 17 18:45:36 2009 |
| | | +++ php-5.2.12/Zend/zend_dtrace.c Thu Dec 17 18:48:23 2009 |
| | | @@ -0,0 +1,107 @@ |
| | | +/* |
| | | + +----------------------------------------------------------------------+ |
| | | + | Zend Engine | |
| | | + +----------------------------------------------------------------------+ |
| | | + | Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) | |
| | | + +----------------------------------------------------------------------+ |
| | | + | This source file is subject to version 2.00 of the Zend license, | |
| | | + | that is bundled with this package in the file LICENSE, and is | |
| | | + | available through the world-wide-web at the following url: | |
| | | + | http://www.zend.com/license/2_00.txt. | |
| | | + | If you did not receive a copy of the Zend license and are unable to | |
| | | + | obtain it through the world-wide-web, please send a note to | |
| | | + | license@zend.com so we can mail you a copy immediately. | |
| | | + +----------------------------------------------------------------------+ |
| | | + | Authors: David Soria Parra <david.soriaparra@sun.com> | |
| | | + +----------------------------------------------------------------------+ |
| | | +*/ |
| | | + |
| | | +/* $Id: $ */ |
| | | + |
| | | +#include "zend.h" |
| | | +#include "zend_API.h" |
| | | +#include "zend_dtrace.h" |
| | | + |
| | | +#ifdef HAVE_DTRACE |
| | | +/* PHP DTrace probes {{{ */ |
| | | +ZEND_API char *dtrace_get_executed_filename(TSRMLS_D) |
| | | +{ |
| | | + if (EG(current_execute_data) && EG(current_execute_data)->op_array) { |
| | | + return EG(current_execute_data)->op_array->filename; |
| | | + } else { |
| | | + return zend_get_executed_filename(TSRMLS_C); |
| | | + } |
| | | +} |
| | | + |
| | | +ZEND_API zend_op_array *dtrace_compile_file(zend_file_handle *file_handle, int type TSRMLS_DC) |
| | | +{ |
| | | + zend_op_array *res; |
| | | + DTRACE_COMPILE_FILE_ENTRY(file_handle->opened_path, file_handle->filename); |
| | | + res = compile_file(file_handle, type TSRMLS_CC); |
| | | + DTRACE_COMPILE_FILE_RETURN(file_handle->opened_path, file_handle->filename); |
| | | + |
| | | + return res; |
| | | +} |
| | | + |
| | | +/* We wrap the execute function to have fire the execute-entry/return and function-entry/return probes */ |
| | | +ZEND_API void dtrace_execute(zend_op_array *op_array TSRMLS_DC) |
| | | +{ |
| | | + int lineno; |
| | | + char *scope, *filename, *funcname, *classname; |
| | | + scope = filename = funcname = classname = NULL; |
| | | + |
| | | + /* we need filename and lineno for both execute and function probes */ |
| | | + if (DTRACE_EXECUTE_ENTRY_ENABLED() || DTRACE_EXECUTE_RETURN_ENABLED()) { |
| | | + filename = dtrace_get_executed_filename(TSRMLS_C); |
| | | + lineno = zend_get_executed_lineno(TSRMLS_C); |
| | | + } |
| | | + |
| | | + if (DTRACE_FUNCTION_ENTRY_ENABLED() || DTRACE_FUNCTION_RETURN_ENABLED()) { |
| | | + filename = dtrace_get_executed_filename(TSRMLS_C); |
| | | + classname = get_active_class_name(&scope TSRMLS_CC); |
| | | + funcname = get_active_function_name(TSRMLS_C); |
| | | + lineno = zend_get_executed_lineno(TSRMLS_C); |
| | | + } |
| | | + |
| | | + if (DTRACE_EXECUTE_ENTRY_ENABLED()) { |
| | | + DTRACE_EXECUTE_ENTRY(filename, lineno); |
| | | + } |
| | | + |
| | | + if (DTRACE_FUNCTION_ENTRY_ENABLED() && funcname != NULL) { |
| | | + DTRACE_FUNCTION_ENTRY(funcname, filename, lineno, classname, scope); |
| | | + } |
| | | + |
| | | + execute(op_array TSRMLS_CC); |
| | | + |
| | | + if (DTRACE_FUNCTION_RETURN_ENABLED() && funcname != NULL) { |
| | | + DTRACE_FUNCTION_RETURN(funcname, filename, lineno, classname, scope); |
| | | + } |
| | | + |
| | | + if (DTRACE_EXECUTE_RETURN_ENABLED()) { |
| | | + DTRACE_EXECUTE_RETURN(filename, lineno); |
| | | + } |
| | | +} |
| | | + |
| | | +ZEND_API void dtrace_execute_internal(zend_execute_data *execute_data_ptr, int return_value_used TSRMLS_DC) |
| | | +{ |
| | | + int lineno; |
| | | + char *filename; |
| | | + if (DTRACE_EXECUTE_ENTRY_ENABLED() || DTRACE_EXECUTE_RETURN_ENABLED()) { |
| | | + filename = dtrace_get_executed_filename(TSRMLS_C); |
| | | + lineno = zend_get_executed_lineno(TSRMLS_C); |
| | | + } |
| | | + |
| | | + if (DTRACE_EXECUTE_ENTRY_ENABLED()) { |
| | | + DTRACE_EXECUTE_ENTRY(filename, lineno); |
| | | + } |
| | | + |
| | | + execute_internal(execute_data_ptr, return_value_used TSRMLS_CC); |
| | | + |
| | | + if (DTRACE_EXECUTE_RETURN_ENABLED()) { |
| | | + DTRACE_EXECUTE_RETURN(filename, lineno); |
| | | + } |
| | | +} |
| | | + |
| | | +/* }}} */ |
| | | +#endif /* HAVE_DTRACE */ |
| | | + |
| | | Index: php-5.2.9/Zend/zend_dtrace_gen.php |
| | | =================================================================== |
| | | --- php-5.2.9.orig/Zend/zend_dtrace_gen.php Thu Apr 02 22:18:32 2009 +0200 |
| | | +++ php-5.2.9/Zend/zend_dtrace_gen.php Thu Apr 02 22:18:32 2009 +0200 |
| | | @@ -0,0 +1,32 @@ |
| | | +<?php |
| | | +/* |
| | | + +----------------------------------------------------------------------+ |
| | | + | Zend Engine | |
| | | + +----------------------------------------------------------------------+ |
| | | + | Copyright (c) 1998-2009 Zend Technologies Ltd. (http://www.zend.com) | |
| | | + +----------------------------------------------------------------------+ |
| | | + | This source file is subject to version 2.00 of the Zend license, | |
| | | + | that is bundled with this package in the file LICENSE, and is | |
| | | + | available through the world-wide-web at the following url: | |
| | | + | http://www.zend.com/license/2_00.txt. | |
| | | + | If you did not receive a copy of the Zend license and are unable to | |
| | | + | obtain it through the world-wide-web, please send a note to | |
| | | + | license@zend.com so we can mail you a copy immediately. | |
| | | + +----------------------------------------------------------------------+ |
| | | + | Authors: David Soria Parra <david.soriaparra@sun.com> | |
| | | + +----------------------------------------------------------------------+ |
| | | + |
| | | + $Id:$ |
| | | +*/ |
| | | + |
| | | +echo "regenerating zend_dtrace.h\n"; |
| | | +system('dtrace -h -s zend_dtrace.d'); |
| | | + |
| | | +echo "renaming probe definitions\n"; |
| | | +$content = file_get_contents('zend_dtrace.h'); |
| | | +$content = str_replace('#define PHP_', '#define DTRACE_', $content); |
| | | +$content = str_replace('PHP_STABILITY', 'DTRACE_STABILITY', $content); |
| | | +$content = str_replace('PHP_TYPEDEFS', 'DTRACE_TYPEDEFS', $content); |
| | | +$content = str_replace('#if _DTRACE_VERSION', '#if _DTRACE_VERSION && HAVE_SYS_SDT_H', $content); |
| | | +file_put_contents('zend_dtrace.h', $content); |
| | | + |
| | | Index: php-5.2.11/Zend/zend.c |
| | | =================================================================== |
| | | --- php-5.2.11.orig/Zend/zend.c 2009-11-02 02:59:10.971196190 +0100 |
| | | +++ php-5.2.11/Zend/zend.c 2009-11-02 02:59:56.087087949 +0100 |
| | | @@ -28,6 +28,7 @@ |
| | | #include "zend_exceptions.h" |
| | | #include "zend_builtin_functions.h" |
| | | #include "zend_ini.h" |
| | | +#include "zend_dtrace.h" |
| | | |
| | | #ifdef ZTS |
| | | # define GLOBAL_FUNCTION_TABLE global_function_table |
| | | @@ -603,10 +604,17 @@ |
| | | zend_vspprintf = utility_functions->vspprintf_function; |
| | | zend_getenv = utility_functions->getenv_function; |
| | | |
| | | +#if HAVE_DTRACE |
| | | +/* build with dtrace support */ |
| | | + zend_compile_file = dtrace_compile_file; |
| | | + zend_execute = dtrace_execute; |
| | | + zend_execute_internal = dtrace_execute_internal; |
| | | +#else |
| | | zend_compile_file = compile_file; |
| | | - zend_compile_string = compile_string; |
| | | zend_execute = execute; |
| | | zend_execute_internal = NULL; |
| | | +#endif /* HAVE_SYS_SDT_H */ |
| | | + zend_compile_string = compile_string; |
| | | zend_throw_exception_hook = NULL; |
| | | |
| | | zend_init_opcodes_handlers(); |
| | | @@ -961,6 +970,15 @@ |
| | | |
| | | va_start(args, format); |
| | | |
| | | +#ifdef HAVE_DTRACE |
| | | + if(DTRACE_ERROR_ENABLED()) { |
| | | + char *dtrace_error_buffer; |
| | | + zend_vspprintf(&dtrace_error_buffer, 0, format, args); |
| | | + DTRACE_ERROR(dtrace_error_buffer, error_filename, error_lineno); |
| | | + efree(dtrace_error_buffer); |
| | | + } |
| | | +#endif /* HAVE_DTRACE */ |
| | | + |
| | | /* if we don't have a user defined error handler */ |
| | | if (!EG(user_error_handler) |
| | | || !(EG(user_error_handler_error_reporting) & type)) { |
| | | Index: php-5.2.12/Zend/zend_API.c |
| | | =================================================================== |
| | | --- php-5.2.12.orig/Zend/zend_API.c.NEW2 Sat Sep 5 12:01:06 2009 |
| | | +++ php-5.2.12/Zend/zend_API.c Thu Dec 17 18:48:23 2009 |
| | | @@ -25,11 +25,16 @@ |
| | | #include "zend_API.h" |
| | | #include "zend_modules.h" |
| | | #include "zend_constants.h" |
| | | +#include "zend_dtrace.h" |
| | | |
| | | #ifdef HAVE_STDARG_H |
| | | #include <stdarg.h> |
| | | #endif |
| | | |
| | | +#ifdef HAVE_DTRACE |
| | | +extern char* dtrace_get_executed_filename(TSRMLS_D); |
| | | +#endif |
| | | + |
| | | /* these variables are true statics/globals, and have to be mutex'ed on every access */ |
| | | static int module_count=0; |
| | | ZEND_API HashTable module_registry; |
| | | @@ -942,6 +947,17 @@ |
| | | zend_error(E_ERROR, "Cannot instantiate %s %s", what, class_type->name); |
| | | } |
| | | |
| | | +#ifdef HAVE_DTRACE |
| | | + if (DTRACE_OBJECT_CREATE_ENABLED()) { |
| | | + char *filename; |
| | | + int lineno; |
| | | + |
| | | + filename = dtrace_get_executed_filename(TSRMLS_C); |
| | | + lineno = zend_get_executed_lineno(TSRMLS_C); |
| | | + DTRACE_OBJECT_CREATE(class_type->name, filename, lineno); |
| | | + } |
| | | +#endif /* HAVE_DTRACE */ |
| | | + |
| | | zend_update_class_constants(class_type TSRMLS_CC); |
| | | |
| | | Z_TYPE_P(arg) = IS_OBJECT; |
| | | Index: php-5.2.12/Zend/zend_objects.c |
| | | =================================================================== |
| | | --- php-5.2.12.orig/Zend/zend_objects.c Mon Oct 12 10:09:11 2009 |
| | | +++ php-5.2.12/Zend/zend_objects.c Thu Dec 17 18:48:23 2009 |
| | | @@ -25,6 +25,7 @@ |
| | | #include "zend_API.h" |
| | | #include "zend_interfaces.h" |
| | | #include "zend_exceptions.h" |
| | | +#include "zend_dtrace.h" |
| | | |
| | | ZEND_API void zend_object_std_init(zend_object *object, zend_class_entry *ce TSRMLS_DC) |
| | | { |
| | | @@ -51,6 +52,16 @@ |
| | | { |
| | | zend_function *destructor = object ? object->ce->destructor : NULL; |
| | | |
| | | +#ifdef HAVE_DTRACE |
| | | + if (DTRACE_OBJECT_DESTROY_ENABLED()) { |
| | | + char *filename; |
| | | + int lineno; |
| | | + |
| | | + filename = dtrace_get_executed_filename(TSRMLS_C); |
| | | + lineno = zend_get_executed_lineno(TSRMLS_C); |
| | | + DTRACE_OBJECT_DESTROY(object->ce->name, filename, lineno); |
| | | + } |
| | | +#endif /* HAVE_DTRACE */ |
| | | if (destructor) { |
| | | zval *obj; |
| | | zval *old_exception; |
| | | Index: php-5.2.11/Zend/zend_exceptions.c |
| | | =================================================================== |
| | | --- php-5.2.11.orig/Zend/zend_exceptions.c 2009-11-02 02:59:10.970676604 +0100 |
| | | +++ php-5.2.11/Zend/zend_exceptions.c 2009-11-02 02:59:56.084156777 +0100 |
| | | @@ -26,6 +26,7 @@ |
| | | #include "zend_builtin_functions.h" |
| | | #include "zend_interfaces.h" |
| | | #include "zend_exceptions.h" |
| | | +#include "zend_dtrace.h" |
| | | |
| | | zend_class_entry *default_exception_ce; |
| | | zend_class_entry *error_exception_ce; |
| | | @@ -34,6 +35,15 @@ |
| | | |
| | | void zend_throw_exception_internal(zval *exception TSRMLS_DC) /* {{{ */ |
| | | { |
| | | +#ifdef HAVE_DTRACE |
| | | + if (DTRACE_EXCEPTION_THROWN_ENABLED()) { |
| | | + char *classname; |
| | | + int name_len; |
| | | + zend_get_object_classname(exception, &classname, &name_len TSRMLS_CC); |
| | | + DTRACE_EXCEPTION_THROWN(classname); |
| | | + } |
| | | +#endif /* HAVE_DTRACE */ |
| | | + |
| | | if (exception != NULL) { |
| | | if (EG(exception)) { |
| | | /* FIXME: bail out? */ |
| | | Index: php-5.2.11/Zend/zend_execute.c |
| | | =================================================================== |
| | | --- php-5.2.11.orig/Zend/zend_execute.c 2009-11-02 02:59:10.971029046 +0100 |
| | | +++ php-5.2.11/Zend/zend_execute.c 2009-11-02 02:59:56.084688879 +0100 |
| | | @@ -35,6 +35,7 @@ |
| | | #include "zend_exceptions.h" |
| | | #include "zend_interfaces.h" |
| | | #include "zend_vm.h" |
| | | +#include "zend_dtrace.h" |
| | | |
| | | /* Virtual current working directory support */ |
| | | #include "tsrm_virtual_cwd.h" |
| | | Index: php-5.2.11/Zend/zend_vm_def.h |
| | | =================================================================== |
| | | --- php-5.2.17/Zend/zend_vm_def.h.ORIG Mon Jul 5 02:08:35 2010 |
| | | +++ php-5.2.17/Zend/zend_vm_def.h Mon Jan 31 13:46:32 2011 |
| | | @@ -2249,6 +2249,11 @@ |
| | | ZEND_VM_CONTINUE(); /* CHECK_ME */ |
| | | } |
| | | ce = Z_OBJCE_P(EG(exception)); |
| | | + |
| | | +#ifdef HAVE_DTRACE |
| | | + DTRACE_EXCEPTION_CAUGHT(ce->name); |
| | | +#endif /* HAVE_DTRACE */ |
| | | + |
| | | if (ce != EX_T(opline->op1.u.var).class_entry) { |
| | | if (!instanceof_function(ce, EX_T(opline->op1.u.var).class_entry TSRMLS_CC)) { |
| | | if (opline->op1.u.EA.type) { |
| | | Index: php-5.2.11/Zend/zend_vm_execute.h |
| | | =================================================================== |
| | | --- php-5.2.11.orig/Zend/zend_vm_execute.h 2009-11-02 02:59:10.970794327 +0100 |
| | | +++ php-5.2.11/Zend/zend_vm_execute.h 2009-11-02 02:59:56.095206861 +0100 |
| | | @@ -333,6 +333,11 @@ |
| | | ZEND_VM_CONTINUE(); /* CHECK_ME */ |
| | | } |
| | | ce = Z_OBJCE_P(EG(exception)); |
| | | + |
| | | +#ifdef HAVE_DTRACE |
| | | + DTRACE_EXCEPTION_CAUGHT(ce->name); |
| | | +#endif /* HAVE_DTRACE */ |
| | | + |
| | | if (ce != EX_T(opline->op1.u.var).class_entry) { |
| | | if (!instanceof_function(ce, EX_T(opline->op1.u.var).class_entry TSRMLS_CC)) { |
| | | if (opline->op1.u.EA.type) { |
| | | Index: php-5.2.11/main/main.c |
| | | =================================================================== |
| | | --- php-5.2.11.orig/main/main.c 2009-11-02 02:59:10.970427110 +0100 |
| | | +++ php-5.2.11/main/main.c 2009-11-02 02:59:56.083717631 +0100 |
| | | @@ -81,6 +81,7 @@ |
| | | #include "zend_indent.h" |
| | | #include "zend_extensions.h" |
| | | #include "zend_ini.h" |
| | | +#include "zend_dtrace.h" |
| | | |
| | | #include "php_content_types.h" |
| | | #include "php_ticks.h" |
| | | @@ -1260,6 +1261,10 @@ |
| | | { |
| | | int retval = SUCCESS; |
| | | |
| | | +#ifdef HAVE_DTRACE |
| | | + DTRACE_REQUEST_STARTUP(SAFE_FILENAME(SG(request_info).path_translated), SAFE_FILENAME(SG(request_info).request_uri), SAFE_FILENAME(SG(request_info).request_method)); |
| | | +#endif /* HAVE_DTRACE */ |
| | | + |
| | | #ifdef PHP_WIN32 |
| | | PG(com_initialized) = 0; |
| | | #endif |
| | | @@ -1534,6 +1539,10 @@ |
| | | PG(com_initialized) = 0; |
| | | } |
| | | #endif |
| | | + |
| | | +#ifdef HAVE_DTRACE |
| | | + DTRACE_REQUEST_SHUTDOWN(SAFE_FILENAME(SG(request_info).path_translated), SAFE_FILENAME(SG(request_info).request_uri), SAFE_FILENAME(SG(request_info).request_method)); |
| | | +#endif /* HAVE_DTRACE */ |
| | | } |
| | | /* }}} */ |
| | | |
| | | Index: php-5.2.11/main/php_config.h.in |
| | | =================================================================== |
| | | --- php-5.2.17/main/php_config.h.in.ORIG Thu Jan 6 15:04:47 2011 |
| | | +++ php-5.2.17/main/php_config.h.in Mon Jan 31 13:46:34 2011 |
| | | @@ -725,6 +725,9 @@ |
| | | /* Define if you have the <sys/resource.h> header file. */ |
| | | #undef HAVE_SYS_RESOURCE_H |
| | | |
| | | +/* Define to 1 if you have the <sys/sdt.h> header file. */ |
| | | +#undef HAVE_SYS_SDT_H |
| | | + |
| | | /* Define if you have the <sys/select.h> header file. */ |
| | | #undef HAVE_SYS_SELECT_H |
| | | |
| | | Index: php-5.2.12/acinclude.m4 |
| | | =================================================================== |
| | | --- php-5.2.17/acinclude.m4.ORIG Wed May 5 14:55:44 2010 |
| | | +++ php-5.2.17/acinclude.m4 Mon Jan 31 13:46:34 2011 |
| | | @@ -2877,3 +2877,56 @@ |
| | | fi |
| | | ]) |
| | | |
| | | +dnl |
| | | +dnl Generate dtrace targets |
| | | +dnl |
| | | +AC_DEFUN([PHP_GENERATE_DTRACE],[ |
| | | + old_IFS=[$]IFS |
| | | + IFS=. |
| | | + set $ac_src |
| | | + IFS=$old_IFS |
| | | + build_target=$2 |
| | | + PHP_GLOBAL_OBJS="[$]PHP_GLOBAL_OBJS $1.o" |
| | | + for src in $PHP_DTRACE_OBJS; do |
| | | + case [$]build_target in |
| | | + *) |
| | | + obj="$obj `dirname $src`/.libs/`basename $src | sed 's,\.lo$,.o,'` " ;; |
| | | + esac |
| | | + done |
| | | + |
| | | + cat >>Makefile.objects<<EOF |
| | | +$1.o: \$(PHP_DTRACE_OBJS) |
| | | + dtrace -G -o $1.o -s $1 $obj |
| | | +EOF |
| | | + |
| | | +]) |
| | | + |
| | | +dnl |
| | | +dnl Link given source files with dtrace |
| | | +dnl PHP_ADD_DTRACE(providerdesc, sources, module) |
| | | +dnl |
| | | +AC_DEFUN([PHP_ADD_DTRACE],[ |
| | | + case "$3" in |
| | | + ""[)] unset ac_bdir;; |
| | | + /*[)] ac_bdir=$ac_srcdir;; |
| | | + *[)] extdir=PHP_EXT_DIR($3); ac_bdir="$extdir/";; |
| | | + esac |
| | | + old_IFS=[$]IFS |
| | | + for ac_src in $2; do |
| | | + IFS=. |
| | | + set $ac_src |
| | | + ac_obj=[$]1 |
| | | + IFS=$old_IFS |
| | | + |
| | | + PHP_DTRACE_OBJS="[$]PHP_DTRACE_OBJS [$]ac_bdir[$]ac_obj.lo" |
| | | + done; |
| | | +]) |
| | | + |
| | | +dnl |
| | | +dnl Generate platform specific dtrace header |
| | | +dnl |
| | | +AC_DEFUN([PHP_INIT_DTRACE], [ |
| | | + dtrace -h -C -s $1 -o $2 |
| | | + $SED -ibak 's,PHP_,DTRACE_,g' $2 |
| | | +]) |
| | | + |
| | | |
| | | Index: php-5.2.12/configure.in |
| | | =================================================================== |
| | | --- php-5.2.17/configure.in.ORIG Thu Jan 6 15:01:19 2011 |
| | | +++ php-5.2.17/configure.in Mon Jan 31 13:46:34 2011 |
| | | @@ -881,6 +881,23 @@ |
| | | AC_DEFINE(HAVE_IPV6, 1, [Whether to enable IPv6 support]) |
| | | fi |
| | | |
| | | +dnl ## DTRACE CHECHKS |
| | | +dnl ## this needs to be done before SAPI configureation |
| | | +PHP_ARG_ENABLE(dtrace, whether to enable DTrace support, |
| | | +[ --enable-dtrace Enable DTrace support], no, no) |
| | | + |
| | | +dnl ## DTRACE CHECHKS |
| | | +dnl ## this needs to be done before SAPI configureation |
| | | +if test "$PHP_DTRACE" = "yes"; then |
| | | + AC_CHECK_HEADERS([sys/sdt.h], |
| | | + [PHP_ADD_DTRACE([Zend/zend_dtrace.d], [main/main.c, Zend/zend_API.c \ |
| | | + Zend/zend_execute.c Zend/zend_exceptions.c Zend/zend_objects.c \ |
| | | + Zend/zend_dtrace.c Zend/zend.c]) |
| | | + AC_DEFINE(HAVE_DTRACE, 1, [Whether to enable DTrace support]) |
| | | + PHP_INIT_DTRACE([Zend/zend_dtrace.d], [Zend/zend_dtrace_gen.h])], |
| | | + []) |
| | | +fi |
| | | + |
| | | AC_MSG_CHECKING([how big to make fd sets]) |
| | | PHP_ARG_ENABLE(fd-setsize,, |
| | | [ --enable-fd-setsize Set size of descriptor sets], no, no) |
| | | @@ -1211,6 +1228,7 @@ |
| | | PHP_SUBST(PHP_CLI_TARGET) |
| | | PHP_SUBST(PHP_SAPI_OBJS) |
| | | PHP_SUBST(PHP_CLI_OBJS) |
| | | +PHP_SUBST(PHP_DTRACE_OBJS) |
| | | PHP_SUBST(PHP_GLOBAL_OBJS) |
| | | |
| | | PHP_SUBST(PHP_MODULES) |
| | | @@ -1400,7 +1418,7 @@ |
| | | PHP_ADD_SOURCES(Zend, \ |
| | | zend_language_parser.c zend_language_scanner.c \ |
| | | zend_ini_parser.c zend_ini_scanner.c \ |
| | | - zend_alloc.c zend_compile.c zend_constants.c zend_dynamic_array.c \ |
| | | + zend_alloc.c zend_compile.c zend_constants.c zend_dynamic_array.c zend_dtrace.c \ |
| | | zend_execute_API.c zend_highlight.c zend_llist.c \ |
| | | zend_opcode.c zend_operators.c zend_ptr_stack.c zend_stack.c \ |
| | | zend_variables.c zend.c zend_API.c zend_extensions.c zend_hash.c \ |
| | | @@ -1432,6 +1450,13 @@ |
| | | PHP_ADD_MAKEFILE_FRAGMENT($abs_srcdir/Makefile.frag,$abs_srcdir/Zend,Zend) |
| | | PHP_ADD_MAKEFILE_FRAGMENT($abs_srcdir/Zend/Makefile.frag,$abs_srcdir/Zend,Zend) |
| | | |
| | | +if test "$PHP_DTRACE" = "yes"; then |
| | | + case $host_alias in |
| | | + *solaris*) |
| | | + PHP_GENERATE_DTRACE([Zend/zend_dtrace.d],$php_build_target);; |
| | | + esac |
| | | +fi |
| | | + |
| | | PHP_GEN_BUILD_DIRS |
| | | PHP_GEN_GLOBAL_MAKEFILE |
New file |
| | |
| | | --- php-5.2.9/Makefile.global.ORIG Mon Mar 30 09:32:03 2009 |
| | | +++ php-5.2.9/Makefile.global Mon Mar 30 09:31:44 2009 |
| | | @@ -2,7 +2,7 @@ |
| | | INSTALL = $(top_srcdir)/build/shtool install -c |
| | | INSTALL_DATA = $(INSTALL) -m 644 |
| | | |
| | | -DEFS = -DPHP_ATOM_INC -I$(top_builddir)/include -I$(top_builddir)/main -I$(top_srcdir) |
| | | +DEFS = -DPHP_ATOM_INC -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I$(top_builddir)/include -I$(top_builddir)/main -I$(top_srcdir) |
| | | COMMON_FLAGS = $(DEFS) $(INCLUDES) $(EXTRA_INCLUDES) $(CPPFLAGS) $(PHP_FRAMEWORKPATH) |
| | | |
| | | all: $(all_targets) |
| | | @@ -67,7 +67,7 @@ |
| | | done; \ |
| | | fi |
| | | |
| | | -PHP_TEST_SETTINGS = -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' |
| | | +PHP_TEST_SETTINGS = -n -d 'open_basedir=' -d 'output_buffering=0' -d 'memory_limit=-1' |
| | | PHP_TEST_SHARED_EXTENSIONS = ` \ |
| | | if test "x$(PHP_MODULES)" != "x"; then \ |
| | | for i in $(PHP_MODULES)""; do \ |
New file |
| | |
| | | --- php-5.2.9/ext/standard/dl.c.ORIG Fri Jul 18 00:05:31 2008 |
| | | +++ php-5.2.9/ext/standard/dl.c Fri Jul 18 20:17:19 2008 |
| | | @@ -128,7 +128,6 @@ |
| | | } |
| | | |
| | | if (extension_dir && extension_dir[0]){ |
| | | - int extension_dir_len = strlen(extension_dir); |
| | | |
| | | if (type == MODULE_TEMPORARY) { |
| | | if (strchr(Z_STRVAL_P(file), '/') != NULL || strchr(Z_STRVAL_P(file), DEFAULT_SLASH) != NULL) { |
| | | @@ -135,16 +134,35 @@ |
| | | php_error_docref(NULL TSRMLS_CC, E_WARNING, "Temporary module name should contain only filename"); |
| | | RETURN_FALSE; |
| | | } |
| | | - } |
| | | + } |
| | | + /* if extension_dir supports multiple paths, then look for the extension in each of them */ |
| | | + static const char path_sep[] = { ZEND_PATHS_SEPARATOR, 0 }; |
| | | + struct stat filetype; |
| | | + char* extdir = NULL; |
| | | + if ((extdir = strtok_r(extension_dir, path_sep, &extension_dir)) != NULL) { |
| | | + do { |
| | | + int extension_dir_len = strlen(extdir); |
| | | + if (IS_SLASH(extdir[extension_dir_len-1])) { |
| | | + spprintf(&libpath, 0, "%s%s", extdir, Z_STRVAL_P(file)); |
| | | + } else { |
| | | + spprintf(&libpath, 0, "%s%c%s", extdir, DEFAULT_SLASH, Z_STRVAL_P(file)); |
| | | + } |
| | | |
| | | - if (IS_SLASH(extension_dir[extension_dir_len-1])) { |
| | | - spprintf(&libpath, 0, "%s%s", extension_dir, Z_STRVAL_P(file)); |
| | | + if (stat(libpath, &filetype) == 0) { |
| | | + break; |
| | | + } |
| | | + } while (extension_dir && (extdir = strtok_r(NULL, path_sep, &extension_dir)) != NULL); |
| | | } else { |
| | | - spprintf(&libpath, 0, "%s%c%s", extension_dir, DEFAULT_SLASH, Z_STRVAL_P(file)); |
| | | + int extension_dir_len = strlen(extension_dir); |
| | | + if (IS_SLASH(extension_dir[extension_dir_len-1])) { |
| | | + spprintf(&libpath, 0, "%s%s", extension_dir, Z_STRVAL_P(file)); |
| | | + } else { |
| | | + spprintf(&libpath, 0, "%s%c%s", extension_dir, DEFAULT_SLASH, Z_STRVAL_P(file)); |
| | | + } |
| | | } |
| | | } else { |
| | | libpath = estrndup(Z_STRVAL_P(file), Z_STRLEN_P(file)); |
| | | - } |
| | | + } |
| | | |
| | | /* load dynamic symbol */ |
| | | handle = DL_LOAD(libpath); |
New file |
| | |
| | | --- php-5.2.11/ext/zlib/my_zlib.h Thu Jan 25 04:13:36 2007 |
| | | +++ php-5.2.11/ext/zlib/my_zlib.h Tue Oct 20 13:55:01 2009 |
| | | @@ -1180,8 +1180,8 @@ |
| | | degrade compression. |
| | | */ |
| | | |
| | | -ZEXTERN z_off_t ZEXPORT gzseek OF((gzFile file, |
| | | - z_off_t offset, int whence)); |
| | | +ZEXTERN int ZEXPORT gzseek OF((gzFile file, |
| | | + int offset, int whence)); |
| | | /* |
| | | Sets the starting position for the next gzread or gzwrite on the |
| | | given compressed file. The offset represents a number of bytes in the |
| | | @@ -1205,7 +1205,7 @@ |
| | | gzrewind(file) is equivalent to (int)gzseek(file, 0L, SEEK_SET) |
| | | */ |
| | | |
| | | -ZEXTERN z_off_t ZEXPORT gztell OF((gzFile file)); |
| | | +ZEXTERN int ZEXPORT gztell OF((gzFile file)); |
| | | /* |
| | | Returns the starting position for the next gzread or gzwrite on the |
| | | given compressed file. This position represents a number of bytes in the |
| | | @@ -1274,7 +1274,7 @@ |
| | | */ |
| | | |
| | | ZEXTERN uLong ZEXPORT adler32_combine OF((uLong adler1, uLong adler2, |
| | | - z_off_t len2)); |
| | | + int len2)); |
| | | /* |
| | | Combine two Adler-32 checksums into one. For two sequences of bytes, seq1 |
| | | and seq2 with lengths len1 and len2, Adler-32 checksums were calculated for |
| | | @@ -1298,7 +1298,7 @@ |
| | | if (crc != original_crc) error(); |
| | | */ |
| | | |
| | | -ZEXTERN uLong ZEXPORT crc32_combine OF((uLong crc1, uLong crc2, z_off_t len2)); |
| | | +ZEXTERN uLong ZEXPORT crc32_combine OF((uLong crc1, uLong crc2, int len2)); |
| | | |
| | | /* |
| | | Combine two CRC-32 check values into one. For two sequences of bytes, |
| | | --- php-5.2.11/ext/zlib/php_zlib.h.ORIG Tue Oct 20 13:56:27 2009 |
| | | +++ php-5.2.11/ext/zlib/php_zlib.h Tue Oct 20 13:56:38 2009 |
| | | @@ -22,7 +22,7 @@ |
| | | #ifndef PHP_ZLIB_H |
| | | #define PHP_ZLIB_H |
| | | |
| | | -#include <zlib.h> |
| | | +#include "my_zlib.h" |
| | | |
| | | ZEND_BEGIN_MODULE_GLOBALS(zlib) |
| | | /* variables for transparent gzip encoding */ |
New file |
| | |
| | | --- php-5.2.11/ext/gettext/gettext.c.ORIG Fri Oct 30 12:30:53 2009 |
| | | +++ php-5.2.11/ext/gettext/gettext.c Fri Oct 30 12:43:56 2009 |
| | | @@ -126,6 +126,7 @@ |
| | | /* }}} */ |
| | | |
| | | #include <libintl.h> |
| | | +#include <locale.h> |
| | | |
| | | zend_module_entry php_gettext_module_entry = { |
| | | STANDARD_MODULE_HEADER, |
| | | @@ -353,7 +354,13 @@ |
| | | PHP_GETTEXT_LENGTH_CHECK("msgid1", msgid1_len) |
| | | PHP_GETTEXT_LENGTH_CHECK("msgid2", msgid2_len) |
| | | |
| | | - msgstr = dcngettext(domain, msgid1, msgid2, count, category); |
| | | + if (category > LC_ALL || category < 0) { |
| | | + /* if we pass higher value than LC_ALL glibc uses LC_ALL. |
| | | + If not set, this can lead to segfaults on non-gnu systems */ |
| | | + msgstr = dngettext(domain, msgid1, msgid2, count); |
| | | + } else { |
| | | + msgstr = dcngettext(domain, msgid1, msgid2, count, category); |
| | | + } |
| | | |
| | | if (msgstr) { |
| | | RETVAL_STRING(msgstr, 1); |
New file |
| | |
| | | --- php-5.2.11/configure.in.ORIG Sun Nov 8 12:48:27 2009 |
| | | +++ php-5.2.11/configure.in Sun Nov 8 12:47:48 2009 |
| | | @@ -1435,7 +1435,11 @@ |
| | | if test -n "$GCC" && test "$ZEND_INLINE_OPTIMIZATION" != "yes"; then |
| | | flag=-O0 |
| | | else |
| | | - flag= |
| | | + if test "$SUNCC" = "yes"; then |
| | | + flag=-W2,-Ainline:inc=100 |
| | | + else |
| | | + flag= |
| | | + fi |
| | | fi |
| | | |
| | | PHP_ADD_SOURCES_X(Zend, zend_execute.c,,PHP_GLOBAL_OBJS,,$flag) |
New file |
| | |
| | | Index: php-5.2.11/Zend/zend_alloc.c |
| | | =================================================================== |
| | | --- php-5.2.11/Zend/zend_alloc.c (revision 291097) |
| | | +++ php-5.2.11/Zend/zend_alloc.c (working copy) |
| | | @@ -87,6 +87,20 @@ |
| | | # define UNEXPECTED(condition) (condition) |
| | | #endif |
| | | |
| | | +#define HAVE_ZEND_LONG64 |
| | | +#ifdef ZEND_WIN32 |
| | | +typedef __int64 zend_long64; |
| | | +typedef unsigned __int64 zend_ulong64; |
| | | +#elif SIZEOF_LONG_LONG_INT == 8 |
| | | +typedef long long int zend_long64; |
| | | +typedef unsigned long long int zend_ulong64; |
| | | +#elif SIZEOF_LONG_LONG == 8 |
| | | +typedef long long zend_long64; |
| | | +typedef unsigned long long zend_ulong64; |
| | | +#else |
| | | +# undef HAVE_ZEND_LONG64 |
| | | +#endif |
| | | + |
| | | static void zend_mm_panic(const char *message) |
| | | { |
| | | fprintf(stderr, "%s\n", message); |
| | | @@ -2369,6 +2383,19 @@ |
| | | return res; |
| | | } |
| | | |
| | | +#elif SIZEOF_SIZE_T == 4 && defined(HAVE_ZEND_LONG64) |
| | | + |
| | | +static inline size_t safe_address(size_t nmemb, size_t size, size_t offset) |
| | | +{ |
| | | + zend_ulong64 res = (zend_ulong64)nmemb * (zend_ulong64)size + (zend_ulong64)offset; |
| | | + |
| | | + if (UNEXPECTED(res > (zend_ulong64)0xFFFFFFFFL)) { |
| | | + zend_error_noreturn(E_ERROR, "Possible integer overflow in memory allocation (%zu * %zu + %zu)", nmemb, size, offset); |
| | | + return 0; |
| | | + } |
| | | + return (size_t) res; |
| | | +} |
| | | + |
| | | #else |
| | | |
| | | static inline size_t safe_address(size_t nmemb, size_t size, size_t offset) |
New file |
| | |
| | | Index: php-5.2.11/ext/pdo/pdo_stmt.c |
| | | =================================================================== |
| | | --- php-5.2.17/ext/pdo/pdo_stmt.c.ORIG Wed Jun 16 16:13:29 2010 |
| | | +++ php-5.2.17/ext/pdo/pdo_stmt.c Tue Feb 1 11:42:48 2011 |
| | | @@ -2321,6 +2321,54 @@ |
| | | return -1; |
| | | } |
| | | |
| | | +static void init_stmt_properties(pdo_stmt_t* stmt TSRMLS_DC) |
| | | +{ |
| | | + HashTable* ht = &stmt->ce->default_properties; |
| | | + HashTable* target = stmt->properties; |
| | | + |
| | | + HashPosition pos; |
| | | + zend_hash_internal_pointer_reset_ex(ht, &pos); |
| | | + while(zend_hash_has_more_elements_ex(ht, &pos) |
| | | + == SUCCESS) { |
| | | + ulong index; |
| | | + char* key = NULL; |
| | | + uint keylen = 0; |
| | | + int ret = zend_hash_get_current_key_ex(ht, |
| | | + &key, |
| | | + &keylen, |
| | | + &index, 0, |
| | | + &pos); |
| | | + if ((keylen == sizeof("queryString")) |
| | | + && (strncmp(key, "queryString", keylen) == 0)) { |
| | | + zval* qval; |
| | | + /* Since the value for the key queryString in |
| | | + * stmt->ce->default_properties is shared by multiple threads so |
| | | + * we can not add the same zval in stmt->properties. we need to |
| | | + * create a null property object. See Bug 49937 */ |
| | | + ALLOC_INIT_ZVAL(qval); |
| | | + zend_hash_add(stmt->properties, "queryString", |
| | | + sizeof("queryString"), (void**) &qval, sizeof(zval*), NULL); |
| | | + } |
| | | + else { |
| | | + void* data = NULL; |
| | | + zend_hash_get_current_data_ex(ht, |
| | | + (void **) &data, &pos); |
| | | + void *new_entry = NULL; |
| | | + if (data) { |
| | | + /* We expect keylen should be > 0. default_properties hash |
| | | + * should only contain named keys */ |
| | | + if (keylen) { |
| | | + zend_hash_quick_update(target, key, keylen, 0, data, sizeof(void*), &new_entry); |
| | | + } |
| | | + if (new_entry) { |
| | | + zval_add_ref(new_entry); |
| | | + } |
| | | + } |
| | | + } |
| | | + zend_hash_move_forward_ex(ht, &pos); |
| | | + } |
| | | +} |
| | | + |
| | | static zend_object_value dbstmt_clone_obj(zval *zobject TSRMLS_DC) |
| | | { |
| | | zend_object_value retval; |
| | | @@ -2334,7 +2382,7 @@ |
| | | stmt->refcount = 1; |
| | | ALLOC_HASHTABLE(stmt->properties); |
| | | zend_hash_init(stmt->properties, 0, NULL, ZVAL_PTR_DTOR, 0); |
| | | - zend_hash_copy(stmt->properties, &stmt->ce->default_properties, (copy_ctor_func_t) zval_add_ref, (void *) &tmp, sizeof(zval *)); |
| | | + init_stmt_properties(stmt TSRMLS_CC); |
| | | |
| | | old_stmt = (pdo_stmt_t *)zend_object_store_get_object(zobject TSRMLS_CC); |
| | | |
| | | @@ -2463,7 +2511,7 @@ |
| | | stmt->refcount = 1; |
| | | ALLOC_HASHTABLE(stmt->properties); |
| | | zend_hash_init(stmt->properties, 0, NULL, ZVAL_PTR_DTOR, 0); |
| | | - zend_hash_copy(stmt->properties, &ce->default_properties, (copy_ctor_func_t) zval_add_ref, (void *) &tmp, sizeof(zval *)); |
| | | + init_stmt_properties(stmt TSRMLS_CC); |
| | | |
| | | retval.handle = zend_objects_store_put(stmt, (zend_objects_store_dtor_t)zend_objects_destroy_object, (zend_objects_free_object_storage_t)pdo_dbstmt_free_storage, (zend_objects_store_clone_t)dbstmt_clone_obj TSRMLS_CC); |
| | | retval.handlers = &pdo_dbstmt_object_handlers; |
New file |
| | |
| | | Index: php-5.2.11/sapi/nsapi/nsapi.c |
| | | =================================================================== |
| | | --- php-5.2.11/sapi/nsapi/nsapi.c (revision 291216) |
| | | +++ php-5.2.11/sapi/nsapi/nsapi.c (working copy) |
| | | @@ -131,14 +131,6 @@ |
| | | /* this parameters to "Service"/"Error" are NSAPI ones which should not be php.ini keys and are excluded */ |
| | | static char *nsapi_exclude_from_ini_entries[] = { "fn", "type", "method", "directive", "code", "reason", "script", "bucket", NULL }; |
| | | |
| | | -static char *nsapi_strdup(char *str) |
| | | -{ |
| | | - if (str != NULL) { |
| | | - return STRDUP(str); |
| | | - } |
| | | - return NULL; |
| | | -} |
| | | - |
| | | static void nsapi_free(void *addr) |
| | | { |
| | | if (addr != NULL) { |
| | | @@ -485,7 +477,7 @@ |
| | | char *header_name, *header_content, *p; |
| | | nsapi_request_context *rc = (nsapi_request_context *)SG(server_context); |
| | | |
| | | - header_name = nsapi_strdup(sapi_header->header); |
| | | + header_name = pool_strdup(rc->sn->pool, sapi_header->header); |
| | | header_content = p = strchr(header_name, ':'); |
| | | if (p == NULL) { |
| | | efree(sapi_header->header); |
| | | @@ -509,7 +501,7 @@ |
| | | pblock_nvinsert(header_name, header_content, rc->rq->srvhdrs); |
| | | } |
| | | |
| | | - nsapi_free(header_name); |
| | | + pool_free(rc->sn->pool, header_name); |
| | | |
| | | return SAPI_HEADER_ADD; |
| | | } |
| | | @@ -679,8 +671,8 @@ |
| | | |
| | | /* DOCUMENT_ROOT */ |
| | | if (value = request_translate_uri("/", rc->sn)) { |
| | | - value[strlen(value) - 1] = '\0'; |
| | | - php_register_variable("DOCUMENT_ROOT", value, track_vars_array TSRMLS_CC); |
| | | + pos = strlen(value); |
| | | + php_register_variable_safe("DOCUMENT_ROOT", value, pos-1, track_vars_array TSRMLS_CC); |
| | | nsapi_free(value); |
| | | } |
| | | |
| | | @@ -695,6 +687,8 @@ |
| | | |
| | | /* Create full Request-URI & Script-Name */ |
| | | if (SG(request_info).request_uri) { |
| | | + pos = strlen(SG(request_info).request_uri); |
| | | + |
| | | if (SG(request_info).query_string) { |
| | | spprintf(&value, 0, "%s?%s", SG(request_info).request_uri, SG(request_info).query_string); |
| | | if (value) { |
| | | @@ -702,21 +696,16 @@ |
| | | efree(value); |
| | | } |
| | | } else { |
| | | - php_register_variable("REQUEST_URI", SG(request_info).request_uri, track_vars_array TSRMLS_CC); |
| | | + php_register_variable_safe("REQUEST_URI", SG(request_info).request_uri, pos, track_vars_array TSRMLS_CC); |
| | | } |
| | | |
| | | - if (value = nsapi_strdup(SG(request_info).request_uri)) { |
| | | - if (rc->path_info) { |
| | | - pos = strlen(SG(request_info).request_uri) - strlen(rc->path_info); |
| | | - if (pos>=0) { |
| | | - value[pos] = '\0'; |
| | | - } else { |
| | | - value[0]='\0'; |
| | | - } |
| | | + if (rc->path_info) { |
| | | + pos -= strlen(rc->path_info); |
| | | + if (pos<0) { |
| | | + pos = 0; |
| | | } |
| | | - php_register_variable("SCRIPT_NAME", value, track_vars_array TSRMLS_CC); |
| | | - nsapi_free(value); |
| | | } |
| | | + php_register_variable_safe("SCRIPT_NAME", SG(request_info).request_uri, pos, track_vars_array TSRMLS_CC); |
| | | } |
| | | php_register_variable("SCRIPT_FILENAME", SG(request_info).path_translated, track_vars_array TSRMLS_CC); |
| | | |
| | | @@ -958,21 +947,25 @@ |
| | | } |
| | | } |
| | | |
| | | - request_context = (nsapi_request_context *)MALLOC(sizeof(nsapi_request_context)); |
| | | + request_context = (nsapi_request_context *)pool_malloc(sn->pool, sizeof(nsapi_request_context)); |
| | | + if (!request_context) { |
| | | + log_error(LOG_CATASTROPHE, pblock_findval("fn", pb), sn, rq, "Insufficient memory to process PHP request!"); |
| | | + return REQ_ABORTED; |
| | | + } |
| | | request_context->pb = pb; |
| | | request_context->sn = sn; |
| | | request_context->rq = rq; |
| | | request_context->read_post_bytes = 0; |
| | | request_context->fixed_script = fixed_script; |
| | | request_context->http_error = (error_directive) ? rq->status_num : 0; |
| | | - request_context->path_info = nsapi_strdup(path_info); |
| | | + request_context->path_info = path_info; |
| | | |
| | | SG(server_context) = request_context; |
| | | - SG(request_info).query_string = nsapi_strdup(query_string); |
| | | - SG(request_info).request_uri = nsapi_strdup(uri); |
| | | - SG(request_info).request_method = nsapi_strdup(request_method); |
| | | - SG(request_info).path_translated = nsapi_strdup(path_translated); |
| | | - SG(request_info).content_type = nsapi_strdup(content_type); |
| | | + SG(request_info).query_string = query_string; |
| | | + SG(request_info).request_uri = uri; |
| | | + SG(request_info).request_method = request_method; |
| | | + SG(request_info).path_translated = path_translated; |
| | | + SG(request_info).content_type = content_type; |
| | | SG(request_info).content_length = (content_length == NULL) ? 0 : strtoul(content_length, 0, 0); |
| | | SG(sapi_headers).http_response_code = (error_directive) ? rq->status_num : 200; |
| | | |
| | | @@ -1012,14 +1005,7 @@ |
| | | } |
| | | } |
| | | |
| | | - nsapi_free(request_context->path_info); |
| | | - nsapi_free(SG(request_info).query_string); |
| | | - nsapi_free(SG(request_info).request_uri); |
| | | - nsapi_free((void*)(SG(request_info).request_method)); |
| | | - nsapi_free(SG(request_info).path_translated); |
| | | - nsapi_free((void*)(SG(request_info).content_type)); |
| | | - |
| | | - FREE(request_context); |
| | | + pool_free(sn->pool, request_context); |
| | | SG(server_context) = NULL; |
| | | |
| | | return retval; |
New file |
| | |
| | | --- php-5.2.9/run-tests.php.ORIG Mon Sep 15 17:35:05 2008 |
| | | +++ php-5.2.9/run-tests.php Mon Sep 15 17:35:12 2008 |
| | | @@ -1,4 +1,4 @@ |
| | | -#!/usr/bin/php |
| | | +#!/usr/php/5.2/bin/php |
| | | <?php |
| | | /* |
| | | +----------------------------------------------------------------------+ |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | COMPONENT_PRE_INSTALL_ACTION += ( \ |
| | | $(MKDIR) $(INSTALL_ROOT)/$(PHP_PEAR_CACHE_DIR) ) |
| | | |
| | | COMPONENT_POST_UNPACK_ACTION += ( \ |
| | | echo $(PATH); \ |
| | | cp /usr/include/zlib.h $(COMPONENT_SRC)/ext/zlib/my_zlib.h ) |
| | | |
| | | COMPONENT_PRE_CONFIGURE_ACTION = ( \ |
| | | cd $(COMPONENT_SRC); $(ENV) -i PATH=/usr/gnu/bin:$(PATH) \ |
| | | MAKE="$(GMAKE)" \ |
| | | $(CONFIG_SHELL) ./buildconf --force ; \ |
| | | $(MV) configure configure.orig; \ |
| | | $(GSED) -e "s\#-i -a -n php5\#-i -n php5\#" \ |
| | | < configure.orig > configure; \ |
| | | $(CHMOD) 755 configure; \ |
| | | $(CLONEY) $(SOURCE_DIR) $(@D) ) |
New file |
| | |
| | | /* |
| | | * -------------------------------------------------------------------- |
| | | * The PHP License, version 3.01 |
| | | * Copyright (c) 1999 - 2010 The PHP Group. All rights reserved. |
| | | * -------------------------------------------------------------------- |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, is permitted provided that the following conditions |
| | | * are met: |
| | | * |
| | | * 1. Redistributions of source code must retain the above copyright |
| | | * notice, this list of conditions and the following disclaimer. |
| | | * |
| | | * 2. Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in |
| | | * the documentation and/or other materials provided with the |
| | | * distribution. |
| | | * |
| | | * 3. The name "PHP" must not be used to endorse or promote products |
| | | * derived from this software without prior written permission. For |
| | | * written permission, please contact group@php.net. |
| | | * |
| | | * 4. Products derived from this software may not be called "PHP", nor |
| | | * may "PHP" appear in their name, without prior written permission |
| | | * from group@php.net. You may indicate that your software works in |
| | | * conjunction with PHP by saying "Foo for PHP" instead of calling |
| | | * it "PHP Foo" or "phpfoo" |
| | | * |
| | | * 5. The PHP Group may publish revised and/or new versions of the |
| | | * license from time to time. Each version will be given a |
| | | * distinguishing version number. |
| | | * Once covered code has been published under a particular version |
| | | * of the license, you may always continue to use it under the terms |
| | | * of that version. You may also choose to use such covered code |
| | | * under the terms of any subsequent version of the license |
| | | * published by the PHP Group. No one other than the PHP Group has |
| | | * the right to modify the terms applicable to covered code created |
| | | * under this License. |
| | | * |
| | | * 6. Redistributions of any form whatsoever must retain the following |
| | | * acknowledgment: |
| | | * "This product includes PHP software, freely available from |
| | | * <http://www.php.net/software/>". |
| | | * |
| | | * THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND |
| | | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| | | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
| | | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP |
| | | * DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
| | | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| | | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| | | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| | | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| | | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| | | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| | | * OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | * |
| | | * -------------------------------------------------------------------- |
| | | * |
| | | * This software consists of voluntary contributions made by many |
| | | * individuals on behalf of the PHP Group. |
| | | * |
| | | * The PHP Group can be contacted via Email at group@php.net. |
| | | * |
| | | * For more information on the PHP Group and the PHP project, |
| | | * please see <http://www.php.net>. |
| | | * |
| | | * PHP includes the Zend Engine, freely available at |
| | | * <http://www.zend.com>. |
| | | */ |
| | | |
| | | /* |
| | | * +----------------------------------------------------------------------+ |
| | | * | PHP Version 4 | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Copyright (c) 1997-2003 The PHP Group | |
| | | * +----------------------------------------------------------------------+ |
| | | * | This source file is subject to version 2.02 of the PHP license, | |
| | | * | that is bundled with this package in the file LICENSE, and is | |
| | | * | available at through the world-wide-web at | |
| | | * | http://www.php.net/license/2_02.txt. | |
| | | * | If you did not receive a copy of the PHP license and are unable to | |
| | | * | obtain it through the world-wide-web, please send a note to | |
| | | * | license@php.net so we can mail you a copy immediately. | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Author: Marcin Gibula <mg@iceni.pl> | |
| | | * +----------------------------------------------------------------------+ |
| | | * |
| | | * |
| | | */ |
| | | |
| | | /* |
| | | * +----------------------------------------------------------------------+ |
| | | * | PHP Version 5 | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Copyright (c) 1997-2005 The PHP Group | |
| | | * +----------------------------------------------------------------------+ |
| | | * | This source file is subject to version 3.0 of the PHP license, | |
| | | * | that is bundled with this package in the file LICENSE, and is | |
| | | * | available through the world-wide-web at the following url: | |
| | | * | http://www.php.net/license/3_0.txt. | |
| | | * | If you did not receive a copy of the PHP license and are unable to | |
| | | * | obtain it through the world-wide-web, please send a note to | |
| | | * | license@php.net so we can mail you a copy immediately. | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Author: Wez Furlong <wez@omniti.com> | |
| | | * +----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | For Suhosin extension (covered under multiple licenses): |
| | | /* |
| | | * +----------------------------------------------------------------------+ |
| | | * | Suhosin Version 1 | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Copyright (c) 2006 The Hardened-PHP Project | |
| | | * | Copyright (c) 2007 SektionEins GmbH | |
| | | * +----------------------------------------------------------------------+ |
| | | * | This source file is subject to version 3.01 of the PHP license, | |
| | | * | that is bundled with this package in the file LICENSE, and is | |
| | | * | available through the world-wide-web at the following url: | |
| | | * | http://www.php.net/license/3_01.txt | |
| | | * | If you did not receive a copy of the PHP license and are unable to | |
| | | * | obtain it through the world-wide-web, please send a note to | |
| | | * | license@php.net so we can mail you a copy immediately. | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Author: Stefan Esser <sesser@hardened-php.net> | |
| | | * +----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | /* |
| | | * +----------------------------------------------------------------------+ |
| | | * | PHP Version 5 | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Copyright (c) 1997-2005 The PHP Group | |
| | | * +----------------------------------------------------------------------+ |
| | | * | This source file is subject to version 3.0 of the PHP license, | |
| | | * | that is bundled with this package in the file LICENSE, and is | |
| | | * | available through the world-wide-web at the following url: | |
| | | * | http://www.php.net/license/3_0.txt. | |
| | | * | If you did not receive a copy of the PHP license and are unable to | |
| | | * | obtain it through the world-wide-web, please send a note to | |
| | | * | license@php.net so we can mail you a copy immediately. | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Author: Wez Furlong <wez@omniti.com> | |
| | | * +----------------------------------------------------------------------+ |
| | | */ |
| | | /* |
| | | * ---------------------------------------------------------------------------- |
| | | * "THE BEER-WARE LICENSE" (Revision 42): |
| | | * <phk@login.dknet.dk> wrote this file. As long as you retain this notice you |
| | | * can do whatever you want with this stuff. If we meet some day, and you think |
| | | * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp |
| | | * ---------------------------------------------------------------------------- |
| | | * |
| | | * from FreeBSD: crypt.c,v 1.5 1996/10/14 08:34:02 phk Exp |
| | | * via OpenBSD: md5crypt.c,v 1.9 1997/07/23 20:58:27 kstailey Exp |
| | | * via NetBSD: md5crypt.c,v 1.4.2.1 2002/01/22 19:31:59 he Exp |
| | | * |
| | | */ |
| | | |
| | | /* |
| | | +----------------------------------------------------------------------+ |
| | | | PHP Version 4 | |
| | | +----------------------------------------------------------------------+ |
| | | | Copyright (c) 1997-2003 The PHP Group | |
| | | +----------------------------------------------------------------------+ |
| | | | This source file is subject to version 2.02 of the PHP license, | |
| | | | that is bundled with this package in the file LICENSE, and is | |
| | | | available at through the world-wide-web at | |
| | | | http://www.php.net/license/2_02.txt. | |
| | | | If you did not receive a copy of the PHP license and are unable to | |
| | | | obtain it through the world-wide-web, please send a note to | |
| | | | license@php.net so we can mail you a copy immediately. | |
| | | +----------------------------------------------------------------------+ |
| | | | Author: | |
| | | +----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | /* ==================================================================== |
| | | * Copyright (c) 1995-1998 The Apache Group. All rights reserved. |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, are permitted provided that the following conditions |
| | | * are met: |
| | | * |
| | | * 1. Redistributions of source code must retain the above copyright |
| | | * notice, this list of conditions and the following disclaimer. |
| | | * |
| | | * 2. Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in |
| | | * the documentation and/or other materials provided with the |
| | | * distribution. |
| | | * |
| | | * 3. All advertising materials mentioning features or use of this |
| | | * software must display the following acknowledgment: |
| | | * "This product includes software developed by the Apache Group |
| | | * for use in the Apache HTTP server project (http://www.apache.org/)." |
| | | * |
| | | * 4. The names "Apache Server" and "Apache Group" must not be used to |
| | | * endorse or promote products derived from this software without |
| | | * prior written permission. |
| | | * |
| | | * 5. Redistributions of any form whatsoever must retain the following |
| | | * acknowledgment: |
| | | * "This product includes software developed by the Apache Group |
| | | * for use in the Apache HTTP server project (http://www.apache.org/)." |
| | | * |
| | | * THIS SOFTWARE IS PROVIDED BY THE APACHE GROUP ``AS IS'' AND ANY |
| | | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| | | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| | | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE APACHE GROUP OR |
| | | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| | | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
| | | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| | | * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| | | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| | | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| | | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| | | * OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | * ==================================================================== |
| | | * |
| | | * This software consists of voluntary contributions made by many |
| | | * individuals on behalf of the Apache Group and was originally based |
| | | * on public domain software written at the National Center for |
| | | * Supercomputing Applications, University of Illinois, Urbana-Champaign. |
| | | * For more information on the Apache Group and the Apache HTTP server |
| | | * project, please see <http://www.apache.org/>. |
| | | * |
| | | * This code is based on, and used with the permission of, the |
| | | * SIO stdio-replacement strx_* functions by Panos Tsirigotis |
| | | * <panos@alumni.cs.colorado.edu> for xinetd. |
| | | */ |
| | | |
| | | |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | set name=pkg.fmri value=pkg:/web/php-52/extension/php-suhosin@0.9.29,$(BUILD_VERSION) |
| | | set name=pkg.description value="PHP-Suhosin extension to secure PHP" |
| | | set name=pkg.summary value="Suhosin extension module for PHP" |
| | | set name=info.classification value="org.opensolaris.category.2008:Development/PHP" |
| | | set name=info.source_url value=http://download.suhosin.org/suhosin-0.9.29.tgz |
| | | set name=info.upstream_url value=http://www.hardened-php.net/suhosin/index.html |
| | | set name=opensolaris.arc_url \ |
| | | value=http://arc.opensolaris.org/caselog/LSARC/2008/538 |
| | | set name=org.opensolaris.consolidation value=$(CONSOLIDATION) |
| | | |
| | | license php-suhosin.license license='PHP, Apache v2.0' |
| | | |
| | | dir path=etc |
| | | dir path=etc/php |
| | | dir path=etc/php/5.2 |
| | | dir path=etc/php/5.2/conf.d |
| | | dir path=etc/php/5.2/zts-conf.d |
| | | dir path=usr |
| | | dir path=usr/php |
| | | dir path=usr/php/5.2 |
| | | dir path=usr/php/5.2/modules |
| | | dir path=usr/php/5.2/zts-modules |
| | | file path=etc/php/5.2/conf.d/suhosin.ini mode=0644 \ |
| | | original_name=SUNWphp52-suhosin:etc/php/5.2/conf.d/suhosin.ini \ |
| | | preserve=renamenew |
| | | file path=etc/php/5.2/zts-conf.d/suhosin.ini mode=0644 \ |
| | | original_name=SUNWphp52-suhosin:etc/php/5.2/zts-conf.d/suhosin.ini \ |
| | | preserve=renamenew |
| | | file path=usr/php/5.2/modules/suhosin.so |
| | | file path=usr/php/5.2/zts-modules/suhosin.so |
| | | |
| | | legacy pkg=SUNWphp52r-suhosin \ |
| | | desc="PHP-Suhosin(0.9.29) extension to secure PHP(5.2) (Root)" \ |
| | | name="Suhosin extension module for PHP (Root)" |
| | | legacy pkg=SUNWphp52u-suhosin \ |
| | | desc="PHP-Suhosin(0.9.29) extension to secure PHP(5.2)" \ |
| | | name="Suhosin extension module for PHP" |
| | | |
| | | depend fmri=web/php-52@5.2.17 type=require |
New file |
| | |
| | | /* |
| | | * -------------------------------------------------------------------- |
| | | * The PHP License, version 3.01 |
| | | * Copyright (c) 1999 - 2010 The PHP Group. All rights reserved. |
| | | * -------------------------------------------------------------------- |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, is permitted provided that the following conditions |
| | | * are met: |
| | | * |
| | | * 1. Redistributions of source code must retain the above copyright |
| | | * notice, this list of conditions and the following disclaimer. |
| | | * |
| | | * 2. Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in |
| | | * the documentation and/or other materials provided with the |
| | | * distribution. |
| | | * |
| | | * 3. The name "PHP" must not be used to endorse or promote products |
| | | * derived from this software without prior written permission. For |
| | | * written permission, please contact group@php.net. |
| | | * |
| | | * 4. Products derived from this software may not be called "PHP", nor |
| | | * may "PHP" appear in their name, without prior written permission |
| | | * from group@php.net. You may indicate that your software works in |
| | | * conjunction with PHP by saying "Foo for PHP" instead of calling |
| | | * it "PHP Foo" or "phpfoo" |
| | | * |
| | | * 5. The PHP Group may publish revised and/or new versions of the |
| | | * license from time to time. Each version will be given a |
| | | * distinguishing version number. |
| | | * Once covered code has been published under a particular version |
| | | * of the license, you may always continue to use it under the terms |
| | | * of that version. You may also choose to use such covered code |
| | | * under the terms of any subsequent version of the license |
| | | * published by the PHP Group. No one other than the PHP Group has |
| | | * the right to modify the terms applicable to covered code created |
| | | * under this License. |
| | | * |
| | | * 6. Redistributions of any form whatsoever must retain the following |
| | | * acknowledgment: |
| | | * "This product includes PHP software, freely available from |
| | | * <http://www.php.net/software/>". |
| | | * |
| | | * THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND |
| | | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| | | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
| | | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP |
| | | * DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
| | | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| | | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| | | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| | | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| | | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| | | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| | | * OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | * |
| | | * -------------------------------------------------------------------- |
| | | * |
| | | * This software consists of voluntary contributions made by many |
| | | * individuals on behalf of the PHP Group. |
| | | * |
| | | * The PHP Group can be contacted via Email at group@php.net. |
| | | * |
| | | * For more information on the PHP Group and the PHP project, |
| | | * please see <http://www.php.net>. |
| | | * |
| | | * PHP includes the Zend Engine, freely available at |
| | | * <http://www.zend.com>. |
| | | */ |
| | | |
| | | /* |
| | | * +----------------------------------------------------------------------+ |
| | | * | PHP Version 4 | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Copyright (c) 1997-2003 The PHP Group | |
| | | * +----------------------------------------------------------------------+ |
| | | * | This source file is subject to version 2.02 of the PHP license, | |
| | | * | that is bundled with this package in the file LICENSE, and is | |
| | | * | available at through the world-wide-web at | |
| | | * | http://www.php.net/license/2_02.txt. | |
| | | * | If you did not receive a copy of the PHP license and are unable to | |
| | | * | obtain it through the world-wide-web, please send a note to | |
| | | * | license@php.net so we can mail you a copy immediately. | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Author: Marcin Gibula <mg@iceni.pl> | |
| | | * +----------------------------------------------------------------------+ |
| | | * |
| | | * |
| | | */ |
| | | |
| | | /* |
| | | * +----------------------------------------------------------------------+ |
| | | * | PHP Version 5 | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Copyright (c) 1997-2005 The PHP Group | |
| | | * +----------------------------------------------------------------------+ |
| | | * | This source file is subject to version 3.0 of the PHP license, | |
| | | * | that is bundled with this package in the file LICENSE, and is | |
| | | * | available through the world-wide-web at the following url: | |
| | | * | http://www.php.net/license/3_0.txt. | |
| | | * | If you did not receive a copy of the PHP license and are unable to | |
| | | * | obtain it through the world-wide-web, please send a note to | |
| | | * | license@php.net so we can mail you a copy immediately. | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Author: Wez Furlong <wez@omniti.com> | |
| | | * +----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | For tcpwrap extension: |
| | | /* |
| | | * +----------------------------------------------------------------------+ |
| | | * | PHP Version 4 | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Copyright (c) 1997-2003 The PHP Group | |
| | | * +----------------------------------------------------------------------+ |
| | | * | This source file is subject to version 2.02 of the PHP license, | |
| | | * | that is bundled with this package in the file LICENSE, and is | |
| | | * | available at through the world-wide-web at | |
| | | * | http://www.php.net/license/2_02.txt. | |
| | | * | If you did not receive a copy of the PHP license and are unable to | |
| | | * | obtain it through the world-wide-web, please send a note to | |
| | | * | license@php.net so we can mail you a copy immediately. | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Author: Marcin Gibula <mg@iceni.pl> | |
| | | * +----------------------------------------------------------------------+ |
| | | * |
| | | * |
| | | */ |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | set name=pkg.fmri value=pkg:/web/php-52/extension/php-tcpwrap@1.1.3,$(BUILD_VERSION) |
| | | set name=pkg.summary value="Tcpwrap extension module for PHP" |
| | | set name=info.classification \ |
| | | value="org.opensolaris.category.2008:Development/PHP" |
| | | set name=info.source_url value=http://pecl.php.net/get/tcpwrap-1.1.3.tgz |
| | | set name=info.upstream_url value=http://pecl.php.net/package/tcpwrap |
| | | set name=opensolaris.arc_url \ |
| | | value=http://arc.opensolaris.org/caselog/LSARC/2008/538 |
| | | set name=org.opensolaris.consolidation value=$(CONSOLIDATION) |
| | | |
| | | license php-tcpwrap.license license='PHP' |
| | | |
| | | dir path=etc |
| | | dir path=etc/php |
| | | dir path=etc/php/5.2 |
| | | dir path=etc/php/5.2/conf.d |
| | | dir path=etc/php/5.2/zts-conf.d |
| | | dir path=usr |
| | | dir path=usr/php |
| | | dir path=usr/php/5.2 |
| | | dir path=usr/php/5.2/modules |
| | | dir path=usr/php/5.2/zts-modules |
| | | file path=etc/php/5.2/conf.d/tcpwrap.ini mode=0644 \ |
| | | original_name=SUNWphp52-tcpwrap:etc/php/5.2/conf.d/tcpwrap.ini \ |
| | | preserve=renamenew |
| | | file path=etc/php/5.2/zts-conf.d/tcpwrap.ini mode=0644 \ |
| | | original_name=SUNWphp52-tcpwrap:etc/php/5.2/zts-conf.d/tcpwrap.ini \ |
| | | preserve=renamenew |
| | | file path=usr/php/5.2/modules/tcpwrap.so |
| | | file path=usr/php/5.2/zts-modules/tcpwrap.so |
| | | |
| | | legacy pkg=SUNWphp52r-tcpwrap \ |
| | | desc="PHP-Tcpwrap(1.1.3) extension module for PHP(5.2) (Root)" \ |
| | | name="Tcpwrap extension module for PHP (Root)" |
| | | legacy pkg=SUNWphp52u-tcpwrap \ |
| | | desc="PHP-Tcpwrap(1.1.3) extension module for PHP(5.2)" \ |
| | | name="Tcpwrap extension module for PHP" |
| | | |
| | | depend fmri=web/php-52@5.2.17 type=require |
New file |
| | |
| | | /* |
| | | * -------------------------------------------------------------------- |
| | | * The PHP License, version 3.01 |
| | | * Copyright (c) 1999 - 2010 The PHP Group. All rights reserved. |
| | | * -------------------------------------------------------------------- |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, is permitted provided that the following conditions |
| | | * are met: |
| | | * |
| | | * 1. Redistributions of source code must retain the above copyright |
| | | * notice, this list of conditions and the following disclaimer. |
| | | * |
| | | * 2. Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in |
| | | * the documentation and/or other materials provided with the |
| | | * distribution. |
| | | * |
| | | * 3. The name "PHP" must not be used to endorse or promote products |
| | | * derived from this software without prior written permission. For |
| | | * written permission, please contact group@php.net. |
| | | * |
| | | * 4. Products derived from this software may not be called "PHP", nor |
| | | * may "PHP" appear in their name, without prior written permission |
| | | * from group@php.net. You may indicate that your software works in |
| | | * conjunction with PHP by saying "Foo for PHP" instead of calling |
| | | * it "PHP Foo" or "phpfoo" |
| | | * |
| | | * 5. The PHP Group may publish revised and/or new versions of the |
| | | * license from time to time. Each version will be given a |
| | | * distinguishing version number. |
| | | * Once covered code has been published under a particular version |
| | | * of the license, you may always continue to use it under the terms |
| | | * of that version. You may also choose to use such covered code |
| | | * under the terms of any subsequent version of the license |
| | | * published by the PHP Group. No one other than the PHP Group has |
| | | * the right to modify the terms applicable to covered code created |
| | | * under this License. |
| | | * |
| | | * 6. Redistributions of any form whatsoever must retain the following |
| | | * acknowledgment: |
| | | * "This product includes PHP software, freely available from |
| | | * <http://www.php.net/software/>". |
| | | * |
| | | * THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND |
| | | * ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| | | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
| | | * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP |
| | | * DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
| | | * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES |
| | | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR |
| | | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) |
| | | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| | | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| | | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| | | * OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | * |
| | | * -------------------------------------------------------------------- |
| | | * |
| | | * This software consists of voluntary contributions made by many |
| | | * individuals on behalf of the PHP Group. |
| | | * |
| | | * The PHP Group can be contacted via Email at group@php.net. |
| | | * |
| | | * For more information on the PHP Group and the PHP project, |
| | | * please see <http://www.php.net>. |
| | | * |
| | | * PHP includes the Zend Engine, freely available at |
| | | * <http://www.zend.com>. |
| | | */ |
| | | |
| | | /* |
| | | * +----------------------------------------------------------------------+ |
| | | * | PHP Version 4 | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Copyright (c) 1997-2003 The PHP Group | |
| | | * +----------------------------------------------------------------------+ |
| | | * | This source file is subject to version 2.02 of the PHP license, | |
| | | * | that is bundled with this package in the file LICENSE, and is | |
| | | * | available at through the world-wide-web at | |
| | | * | http://www.php.net/license/2_02.txt. | |
| | | * | If you did not receive a copy of the PHP license and are unable to | |
| | | * | obtain it through the world-wide-web, please send a note to | |
| | | * | license@php.net so we can mail you a copy immediately. | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Author: Marcin Gibula <mg@iceni.pl> | |
| | | * +----------------------------------------------------------------------+ |
| | | * |
| | | * |
| | | */ |
| | | |
| | | /* |
| | | * +----------------------------------------------------------------------+ |
| | | * | PHP Version 5 | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Copyright (c) 1997-2005 The PHP Group | |
| | | * +----------------------------------------------------------------------+ |
| | | * | This source file is subject to version 3.0 of the PHP license, | |
| | | * | that is bundled with this package in the file LICENSE, and is | |
| | | * | available through the world-wide-web at the following url: | |
| | | * | http://www.php.net/license/3_0.txt. | |
| | | * | If you did not receive a copy of the PHP license and are unable to | |
| | | * | obtain it through the world-wide-web, please send a note to | |
| | | * | license@php.net so we can mail you a copy immediately. | |
| | | * +----------------------------------------------------------------------+ |
| | | * | Author: Wez Furlong <wez@omniti.com> | |
| | | * +----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | For Xdebug extension: |
| | | /* |
| | | * -------------------------------------------------------------------- |
| | | * The Xdebug License, version 1.01 |
| | | * (Based on "The PHP License", version 3.0) |
| | | * Copyright (c) 2003-2007 Derick Rethans. All rights reserved. |
| | | * -------------------------------------------------------------------- |
| | | * |
| | | * Redistribution and use in source and binary forms, with or without |
| | | * modification, is permitted provided that the following conditions |
| | | * are met: |
| | | * |
| | | * 1. Redistributions of source code must retain the above copyright |
| | | * notice, this list of conditions and the following disclaimer. |
| | | * |
| | | * 2. Redistributions in binary form must reproduce the above copyright |
| | | * notice, this list of conditions and the following disclaimer in |
| | | * the documentation and/or other materials provided with the |
| | | * distribution. |
| | | * |
| | | * 3. The name "Xdebug" must not be used to endorse or promote products |
| | | * derived from this software without prior written permission. For |
| | | * written permission, please contact derick@xdebug.org. |
| | | * |
| | | * 4. Products derived from this software may not be called "Xdebug", nor |
| | | * may "Xdebug" appear in their name, without prior written permission |
| | | * from derick@xdebug.org. |
| | | * |
| | | * 5. Derick Rethans may publish revised and/or new versions of the |
| | | * license from time to time. Each version will be given a |
| | | * distinguishing version number. Once covered code has been |
| | | * published under a particular version of the license, you may |
| | | * always continue to use it under the terms of that version. You |
| | | * may also choose to use such covered code under the terms of any |
| | | * subsequent version of the license published by Derick Rethans. No |
| | | * one other than Derick Rethans has the right to modify the terms |
| | | * applicable to covered code created under this License. |
| | | * |
| | | * 6. Redistributions of any form whatsoever must retain the following |
| | | * acknowledgment: "This product includes Xdebug, freely available |
| | | * from <http://xdebug.org/>". |
| | | * |
| | | * THIS SOFTWARE IS PROVIDED BY DERICK RETHANS ``AS IS'' AND ANY |
| | | * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| | | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| | | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP DEVELOPMENT TEAM OR |
| | | * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| | | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| | | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| | | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| | | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| | | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| | | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| | | * |
| | | * -------------------------------------------------------------------- |
| | | * |
| | | * This software consists of voluntary contributions made by some |
| | | * individuals on behalf of Derick Rethans. |
| | | * |
| | | * Derick Rethans can be contacted via e-mail at derick@xdebug.org. |
| | | * |
| | | * For more information Xdebug, please see <http://xdebug.org>. |
| | | */ |
| | | |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | set name=pkg.fmri value=pkg:/web/php-52/extension/php-xdebug@2.0.5,$(BUILD_VERSION) |
| | | set name=pkg.description \ |
| | | value="PHP-XDebug extension for debugging PHP" |
| | | set name=pkg.summary value="XDebug extension module for PHP" |
| | | set name=info.classification \ |
| | | value="org.opensolaris.category.2008:Development/PHP" |
| | | set name=info.source_url value=http://xdebug.org/files/xdebug-2.0.5.tgz |
| | | set name=info.upstream_url value=http://xdebug.org/ |
| | | set name=opensolaris.arc_url \ |
| | | value=http://arc.opensolaris.org/caselog/LSARC/2008/538 |
| | | set name=org.opensolaris.consolidation value=$(CONSOLIDATION) |
| | | |
| | | license php-xdebug.license license='PHP, Xdebug' |
| | | |
| | | dir path=etc |
| | | dir path=etc/php |
| | | dir path=etc/php/5.2 |
| | | dir path=etc/php/5.2/conf.d |
| | | dir path=etc/php/5.2/zts-conf.d |
| | | dir path=usr |
| | | dir path=usr/php |
| | | dir path=usr/php/5.2 |
| | | dir path=usr/php/5.2/modules |
| | | dir path=usr/php/5.2/zts-modules |
| | | file path=etc/php/5.2/conf.d/xdebug.ini mode=0644 \ |
| | | original_name=SUNWphp52-xdebug:etc/php/5.2/conf.d/xdebug.ini \ |
| | | preserve=renamenew |
| | | file path=etc/php/5.2/zts-conf.d/xdebug.ini mode=0644 \ |
| | | original_name=SUNWphp52-xdebug:etc/php/5.2/zts-conf.d/xdebug.ini \ |
| | | preserve=renamenew |
| | | file path=usr/php/5.2/modules/xdebug.so |
| | | file path=usr/php/5.2/zts-modules/xdebug.so |
| | | |
| | | legacy pkg=SUNWphp52r-xdebug \ |
| | | desc="PHP-XDebug(2.0.5) extension for debugging PHP(5.2) (Root)" \ |
| | | name="XDebug extension module for PHP (Root)" |
| | | legacy pkg=SUNWphp52u-xdebug \ |
| | | desc="PHP-XDebug(2.0.5) extension for debugging PHP(5.2)" \ |
| | | name="XDebug extension module for PHP" |
| | | |
| | | depend fmri=web/php-52@5.2.17 type=require |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | include ../../../make-rules/shared-macros.mk |
| | | |
| | | COMPONENT_NAME= suhosin |
| | | COMPONENT_VERSION= 0.9.29 |
| | | COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
| | | COMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz |
| | | COMPONENT_ARCHIVE_HASH= sha1:2fa7c716a32e71fbb577fc3a9feaf46d783a501b |
| | | COMPONENT_ARCHIVE_URL= http://download.suhosin.org/$(COMPONENT_ARCHIVE) |
| | | COMPONENT_PROJECT_URL= http://www.hardened-php.net/suhosin/index.html |
| | | |
| | | include ../extensions-zts.mk |
| | | |
| | | CONFIGURE_OPTIONS += --enable-suhosin |
New file |
| | |
| | | php-5_2/suhosin-zts: php-5_2/php-sapi php-5_2/php-nsapi |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | include ../../../make-rules/shared-macros.mk |
| | | |
| | | COMPONENT_NAME= suhosin |
| | | COMPONENT_VERSION= 0.9.29 |
| | | COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
| | | COMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz |
| | | COMPONENT_ARCHIVE_HASH= sha1:2fa7c716a32e71fbb577fc3a9feaf46d783a501b |
| | | COMPONENT_ARCHIVE_URL= http://download.suhosin.org/$(COMPONENT_ARCHIVE) |
| | | COMPONENT_PROJECT_URL= http://www.hardened-php.net/suhosin/index.html |
| | | |
| | | include ../extensions.mk |
| | | |
| | | CONFIGURE_OPTIONS += --enable-suhosin |
| | | |
| | | COMPONENT_POST_INSTALL_ACTION = ( \ |
| | | $(FIX_CONFIG_FILES); \ |
| | | ) |
| | | |
| | | PKG_PROTO_DIRS += $(COMPONENT_DIR)/../suhosin-zts/build/prototype/$(MACH) |
New file |
| | |
| | | extension=suhosin.so |
| | | |
| | | ;For detailed Suhosin configurations, please visit |
| | | ;http://www.hardened-php.net/suhosin/configuration.html |
| | | |
| | | suhosin.post.max_array_index_length = 256 |
| | | suhosin.post.max_totalname_length = 65535 |
| | | suhosin.post.max_vars = 1024 |
| | | suhosin.request.max_array_index_length = 256 |
| | | suhosin.request.max_totalname_length = 65535 |
| | | suhosin.request.max_vars = 1024 |
New file |
| | |
| | | php-5_2/suhosin: php-5_2/php-sapi |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | include ../../../make-rules/shared-macros.mk |
| | | |
| | | COMPONENT_NAME= tcpwrap |
| | | COMPONENT_VERSION= 1.1.3 |
| | | COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
| | | COMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz |
| | | COMPONENT_ARCHIVE_HASH= sha1:23cbfdc8ea9ff1e64814d52a14bbd365b1e16cf7 |
| | | COMPONENT_ARCHIVE_URL= http://pecl.php.net/get/$(COMPONENT_ARCHIVE) |
| | | COMPONENT_PROJECT_URL= http://pecl.php.net/package/tcpwrap |
| | | |
| | | PATCH_DIR = ../tcpwrap/patches |
| | | |
| | | include ../extensions-zts.mk |
| | | |
| | | CONFIGURE_OPTIONS += --with-tcpwrap=/usr/sfw |
New file |
| | |
| | | php-5_2/tcpwrap-zts: php-5_2/php-sapi php-5_2/php-nsapi |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | include ../../../make-rules/shared-macros.mk |
| | | |
| | | COMPONENT_NAME= tcpwrap |
| | | COMPONENT_VERSION= 1.1.3 |
| | | COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
| | | COMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz |
| | | COMPONENT_ARCHIVE_HASH= sha1:23cbfdc8ea9ff1e64814d52a14bbd365b1e16cf7 |
| | | COMPONENT_ARCHIVE_URL= http://pecl.php.net/get/$(COMPONENT_ARCHIVE) |
| | | COMPONENT_PROJECT_URL= http://pecl.php.net/package/tcpwrap |
| | | |
| | | include ../extensions.mk |
| | | |
| | | CONFIGURE_OPTIONS += --with-tcpwrap=/usr/sfw |
| | | |
| | | COMPONENT_POST_INSTALL_ACTION = ( \ |
| | | $(FIX_CONFIG_FILES_2); \ |
| | | ) |
| | | |
| | | PKG_PROTO_DIRS += $(COMPONENT_DIR)/../tcpwrap-zts/build/prototype/$(MACH) |
New file |
| | |
| | | php-5_2/tcpwrap: php-5_2/php-sapi |
New file |
| | |
| | | --- tcpwrap-1.1.3/config.m4.ORIG Tue Jul 15 10:41:11 2008 |
| | | +++ tcpwrap-1.1.3/config.m4 Tue Jul 15 10:41:36 2008 |
| | | @@ -30,15 +30,7 @@ |
| | | LIBNAME=wrap |
| | | LIBSYMBOL=request_init |
| | | |
| | | - PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL, |
| | | - [ |
| | | - PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $TCPWRAP_DIR/lib, TCPWRAP_SHARED_LIBADD) |
| | | - AC_DEFINE(HAVE_TCPWRAPLIB,1,[ ]) |
| | | - ],[ |
| | | - AC_MSG_ERROR([wrong tcpwrappers lib version or lib not found]) |
| | | - ],[ |
| | | - -L$TCPWRAP_DIR/lib -lm -ldl |
| | | - ]) |
| | | + PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $TCPWRAP_DIR/lib, TCPWRAP_SHARED_LIBADD) |
| | | |
| | | AC_CHECK_FUNC(gethostbyname_r, [have_gethostbyname_r=yes], [have_gethostbyname_r=no]) |
| | | if test "$have_gethostbyname_r" = "no"; then |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | include ../../../make-rules/shared-macros.mk |
| | | |
| | | COMPONENT_NAME= xdebug |
| | | COMPONENT_VERSION= 2.0.5 |
| | | COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
| | | COMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz |
| | | COMPONENT_ARCHIVE_HASH= sha1:77e6a8fd56641d8b37be68ea3c4a5c52b7511114 |
| | | COMPONENT_ARCHIVE_URL= http://xdebug.org/files/$(COMPONENT_ARCHIVE) |
| | | COMPONENT_PROJECT_URL= http://xdebug.org/ |
| | | |
| | | include ../extensions-zts.mk |
| | | |
| | | CONFIGURE_OPTIONS += --enable-xdebug |
New file |
| | |
| | | php-5_2/xdebug-zts: php-5_2/php-sapi php-5_2/php-nsapi |
New file |
| | |
| | | # |
| | | # CDDL HEADER START |
| | | # |
| | | # The contents of this file are subject to the terms of the |
| | | # Common Development and Distribution License (the "License"). |
| | | # You may not use this file except in compliance with the License. |
| | | # |
| | | # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
| | | # or http://www.opensolaris.org/os/licensing. |
| | | # See the License for the specific language governing permissions |
| | | # and limitations under the License. |
| | | # |
| | | # When distributing Covered Code, include this CDDL HEADER in each |
| | | # file and include the License file at usr/src/OPENSOLARIS.LICENSE. |
| | | # If applicable, add the following below this CDDL HEADER, with the |
| | | # fields enclosed by brackets "[]" replaced with your own identifying |
| | | # information: Portions Copyright [yyyy] [name of copyright owner] |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | include ../../../make-rules/shared-macros.mk |
| | | |
| | | COMPONENT_NAME= xdebug |
| | | COMPONENT_VERSION= 2.0.5 |
| | | COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
| | | COMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz |
| | | COMPONENT_ARCHIVE_HASH= sha1:77e6a8fd56641d8b37be68ea3c4a5c52b7511114 |
| | | COMPONENT_ARCHIVE_URL= http://xdebug.org/files/$(COMPONENT_ARCHIVE) |
| | | COMPONENT_PROJECT_URL= http://xdebug.org/ |
| | | |
| | | include ../extensions.mk |
| | | |
| | | CONFIGURE_OPTIONS += --enable-xdebug |
| | | |
| | | COMPONENT_POST_INSTALL_ACTION = ( \ |
| | | $(FIX_CONFIG_FILES); \ |
| | | ) |
| | | |
| | | PKG_PROTO_DIRS += $(COMPONENT_DIR)/../xdebug-zts/build/prototype/$(MACH) |
New file |
| | |
| | | zend_extension=/usr/php/5.2/modules/xdebug.so |
| | | |
| | | ;For detailed Xdebug configurations, please visit |
| | | ;http://xdebug.org/docs/ |
| | | |
| | | ;Below configuration directives enables debugging with |
| | | ;IDE's like Netbeans, Eclipse. |
| | | xdebug.remote_enable=1 |
| | | xdebug.remote_handler=dbgp |
| | | |
| | | ;Provide approriate values to below configuration directives |
| | | ;if you are running your IDE from another machine. |
| | | xdebug.remote_host=localhost |
| | | xdebug.remote_port=9000 |
New file |
| | |
| | | php-5_2/xdebug: php-5_2/php-sapi |
| | |
| | | $(SOURCE_DIR)/.unpacked: download Makefile $(PATCHES) |
| | | $(RM) -r $(SOURCE_DIR) |
| | | $(UNPACK) $(UNPACK_ARGS) $(USERLAND_ARCHIVES)$(COMPONENT_ARCHIVE) |
| | | $(COMPONENT_POST_UNPACK_ACTION) |
| | | $(TOUCH) $@ |
| | | |
| | | $(SOURCE_DIR)/.patched: $(SOURCE_DIR)/.unpacked $(STAMPS) |