├── README.markdown ├── binaries └── Release │ ├── BuildLog.htm │ ├── mt.dep │ ├── php_threading.dll │ ├── php_threading.dll.intermediate.manifest │ └── php_threads.dll.intermediate.manifest ├── deps ├── include │ ├── TSRM │ │ ├── LICENSE │ │ ├── Makefile.am │ │ ├── TODO │ │ ├── TSRM.c │ │ ├── TSRM.dsp │ │ ├── TSRM.h │ │ ├── acconfig.h │ │ ├── acinclude.m4 │ │ ├── build.mk │ │ ├── buildconf │ │ ├── config.w32 │ │ ├── configure.in │ │ ├── readdir.h │ │ ├── threads.m4 │ │ ├── tsrm.m4 │ │ ├── tsrm_config.w32.h │ │ ├── tsrm_config_common.h │ │ ├── tsrm_nw.c │ │ ├── tsrm_nw.h │ │ ├── tsrm_strtok_r.c │ │ ├── tsrm_strtok_r.h │ │ ├── tsrm_virtual_cwd.c │ │ ├── tsrm_virtual_cwd.h │ │ ├── tsrm_win32.c │ │ └── tsrm_win32.h │ ├── Zend │ │ ├── LICENSE │ │ ├── Makefile.am │ │ ├── Makefile.frag │ │ ├── OBJECTS2_HOWTO │ │ ├── README.ZEND_MM │ │ ├── README.ZEND_VM │ │ ├── RFCs │ │ │ ├── 001.txt │ │ │ ├── 002.txt │ │ │ └── 003.txt │ │ ├── ZEND_CHANGES │ │ ├── Zend.dsp │ │ ├── Zend.m4 │ │ ├── ZendCore.dep │ │ ├── ZendTS.dsp │ │ ├── acconfig.h │ │ ├── acinclude.m4 │ │ ├── bench.php │ │ ├── build.mk │ │ ├── buildconf │ │ ├── configure.in │ │ ├── header │ │ ├── zend.c │ │ ├── zend.h │ │ ├── zend.ico │ │ ├── zend_API.c │ │ ├── zend_API.h │ │ ├── zend_alloc.c │ │ ├── zend_alloc.h │ │ ├── zend_build.h │ │ ├── zend_builtin_functions.c │ │ ├── zend_builtin_functions.h │ │ ├── zend_closures.c │ │ ├── zend_closures.h │ │ ├── zend_compile.c │ │ ├── zend_compile.h │ │ ├── zend_config.nw.h │ │ ├── zend_config.w32.h │ │ ├── zend_constants.c │ │ ├── zend_constants.h │ │ ├── zend_default_classes.c │ │ ├── zend_dynamic_array.c │ │ ├── zend_dynamic_array.h │ │ ├── zend_errors.h │ │ ├── zend_exceptions.c │ │ ├── zend_exceptions.h │ │ ├── zend_execute.c │ │ ├── zend_execute.h │ │ ├── zend_execute_API.c │ │ ├── zend_extensions.c │ │ ├── zend_extensions.h │ │ ├── zend_fast_cache.h │ │ ├── zend_float.c │ │ ├── zend_float.h │ │ ├── zend_gc.c │ │ ├── zend_gc.h │ │ ├── zend_globals.h │ │ ├── zend_globals_macros.h │ │ ├── zend_hash.c │ │ ├── zend_hash.h │ │ ├── zend_highlight.c │ │ ├── zend_highlight.h │ │ ├── zend_indent.c │ │ ├── zend_indent.h │ │ ├── zend_ini.c │ │ ├── zend_ini.h │ │ ├── zend_ini_parser.c │ │ ├── zend_ini_parser.h │ │ ├── zend_ini_parser.output │ │ ├── zend_ini_parser.y │ │ ├── zend_ini_scanner.c │ │ ├── zend_ini_scanner.h │ │ ├── zend_ini_scanner.l │ │ ├── zend_ini_scanner_defs.h │ │ ├── zend_interfaces.c │ │ ├── zend_interfaces.h │ │ ├── zend_istdiostream.h │ │ ├── zend_iterators.c │ │ ├── zend_iterators.h │ │ ├── zend_language_parser.c │ │ ├── zend_language_parser.h │ │ ├── zend_language_parser.output │ │ ├── zend_language_parser.y │ │ ├── zend_language_scanner.c │ │ ├── zend_language_scanner.h │ │ ├── zend_language_scanner.l │ │ ├── zend_language_scanner_defs.h │ │ ├── zend_list.c │ │ ├── zend_list.h │ │ ├── zend_llist.c │ │ ├── zend_llist.h │ │ ├── zend_modules.h │ │ ├── zend_multibyte.c │ │ ├── zend_multibyte.h │ │ ├── zend_multiply.h │ │ ├── zend_object_handlers.c │ │ ├── zend_object_handlers.h │ │ ├── zend_objects.c │ │ ├── zend_objects.h │ │ ├── zend_objects_API.c │ │ ├── zend_objects_API.h │ │ ├── zend_opcode.c │ │ ├── zend_operators.c │ │ ├── zend_operators.h │ │ ├── zend_ptr_stack.c │ │ ├── zend_ptr_stack.h │ │ ├── zend_qsort.c │ │ ├── zend_qsort.h │ │ ├── zend_sprintf.c │ │ ├── zend_stack.c │ │ ├── zend_stack.h │ │ ├── zend_static_allocator.c │ │ ├── zend_static_allocator.h │ │ ├── zend_stream.c │ │ ├── zend_stream.h │ │ ├── zend_strtod.c │ │ ├── zend_strtod.h │ │ ├── zend_ts_hash.c │ │ ├── zend_ts_hash.h │ │ ├── zend_types.h │ │ ├── zend_variables.c │ │ ├── zend_variables.h │ │ ├── zend_vm.h │ │ ├── zend_vm_def.h │ │ ├── zend_vm_execute.h │ │ ├── zend_vm_execute.skl │ │ ├── zend_vm_gen.php │ │ └── zend_vm_opcodes.h │ ├── acconfig.h │ ├── ext │ │ └── standard │ │ │ ├── Makefile.frag │ │ │ ├── array.c │ │ │ ├── assert.c │ │ │ ├── base64.c │ │ │ ├── base64.h │ │ │ ├── basic_functions.c │ │ │ ├── basic_functions.h │ │ │ ├── browscap.c │ │ │ ├── config.m4 │ │ │ ├── config.w32 │ │ │ ├── crc32.c │ │ │ ├── crc32.h │ │ │ ├── credits.c │ │ │ ├── credits.h │ │ │ ├── credits_ext.h │ │ │ ├── credits_sapi.h │ │ │ ├── crypt.c │ │ │ ├── crypt_blowfish.c │ │ │ ├── crypt_freesec.c │ │ │ ├── crypt_freesec.h │ │ │ ├── crypt_sha256.c │ │ │ ├── crypt_sha512.c │ │ │ ├── css.c │ │ │ ├── css.h │ │ │ ├── cyr_convert.c │ │ │ ├── cyr_convert.h │ │ │ ├── datetime.c │ │ │ ├── datetime.h │ │ │ ├── dir.c │ │ │ ├── dl.c │ │ │ ├── dl.h │ │ │ ├── dns.c │ │ │ ├── dns_win32.c │ │ │ ├── exec.c │ │ │ ├── exec.h │ │ │ ├── file.c │ │ │ ├── file.h │ │ │ ├── filestat.c │ │ │ ├── filters.c │ │ │ ├── flock_compat.c │ │ │ ├── flock_compat.h │ │ │ ├── formatted_print.c │ │ │ ├── fsock.c │ │ │ ├── fsock.h │ │ │ ├── ftok.c │ │ │ ├── ftp_fopen_wrapper.c │ │ │ ├── head.c │ │ │ ├── head.h │ │ │ ├── html.c │ │ │ ├── html.h │ │ │ ├── http.c │ │ │ ├── http_fopen_wrapper.c │ │ │ ├── image.c │ │ │ ├── incomplete_class.c │ │ │ ├── info.c │ │ │ ├── info.h │ │ │ ├── iptc.c │ │ │ ├── lcg.c │ │ │ ├── levenshtein.c │ │ │ ├── link.c │ │ │ ├── link_win32.c │ │ │ ├── mail.c │ │ │ ├── math.c │ │ │ ├── md5.c │ │ │ ├── md5.h │ │ │ ├── metaphone.c │ │ │ ├── microtime.c │ │ │ ├── microtime.h │ │ │ ├── pack.c │ │ │ ├── pack.h │ │ │ ├── pageinfo.c │ │ │ ├── pageinfo.h │ │ │ ├── php_array.h │ │ │ ├── php_assert.h │ │ │ ├── php_browscap.h │ │ │ ├── php_crypt.h │ │ │ ├── php_crypt_r.c │ │ │ ├── php_crypt_r.h │ │ │ ├── php_dir.h │ │ │ ├── php_dns.h │ │ │ ├── php_ext_syslog.h │ │ │ ├── php_filestat.h │ │ │ ├── php_fopen_wrapper.c │ │ │ ├── php_fopen_wrappers.h │ │ │ ├── php_ftok.h │ │ │ ├── php_http.h │ │ │ ├── php_image.h │ │ │ ├── php_incomplete_class.h │ │ │ ├── php_iptc.h │ │ │ ├── php_lcg.h │ │ │ ├── php_link.h │ │ │ ├── php_mail.h │ │ │ ├── php_math.h │ │ │ ├── php_metaphone.h │ │ │ ├── php_rand.h │ │ │ ├── php_smart_str.h │ │ │ ├── php_smart_str_public.h │ │ │ ├── php_standard.h │ │ │ ├── php_string.h │ │ │ ├── php_type.h │ │ │ ├── php_uuencode.h │ │ │ ├── php_var.h │ │ │ ├── php_versioning.h │ │ │ ├── proc_open.c │ │ │ ├── proc_open.h │ │ │ ├── quot_print.c │ │ │ ├── quot_print.h │ │ │ ├── rand.c │ │ │ ├── scanf.c │ │ │ ├── scanf.h │ │ │ ├── sha1.c │ │ │ ├── sha1.h │ │ │ ├── soundex.c │ │ │ ├── streamsfuncs.c │ │ │ ├── streamsfuncs.h │ │ │ ├── string.c │ │ │ ├── strnatcmp.c │ │ │ ├── syslog.c │ │ │ ├── type.c │ │ │ ├── uniqid.c │ │ │ ├── uniqid.h │ │ │ ├── url.c │ │ │ ├── url.h │ │ │ ├── url_scanner_ex.c │ │ │ ├── url_scanner_ex.c.orig │ │ │ ├── url_scanner_ex.h │ │ │ ├── url_scanner_ex.re │ │ │ ├── user_filters.c │ │ │ ├── uuencode.c │ │ │ ├── var.c │ │ │ ├── var_unserializer.c │ │ │ ├── var_unserializer.c.orig │ │ │ ├── var_unserializer.re │ │ │ ├── versioning.c │ │ │ └── winver.h │ ├── main │ │ ├── SAPI.c │ │ ├── SAPI.h │ │ ├── alloca.c │ │ ├── build-defs.h.in │ │ ├── config.w32.h │ │ ├── fopen_wrappers.c │ │ ├── fopen_wrappers.h │ │ ├── getopt.c │ │ ├── internal_functions.c │ │ ├── internal_functions.c.in │ │ ├── internal_functions_nw.c │ │ ├── internal_functions_win32.c │ │ ├── logos.h │ │ ├── main.c │ │ ├── mergesort.c │ │ ├── network.c │ │ ├── output.c │ │ ├── php.h │ │ ├── php3_compat.h │ │ ├── php_compat.h │ │ ├── php_config.h.in │ │ ├── php_content_types.c │ │ ├── php_content_types.h │ │ ├── php_getopt.h │ │ ├── php_globals.h │ │ ├── php_ini.c │ │ ├── php_ini.h │ │ ├── php_logos.c │ │ ├── php_logos.h │ │ ├── php_main.h │ │ ├── php_memory_streams.h │ │ ├── php_network.h │ │ ├── php_open_temporary_file.c │ │ ├── php_open_temporary_file.h │ │ ├── php_output.h │ │ ├── php_reentrancy.h │ │ ├── php_scandir.c │ │ ├── php_scandir.h │ │ ├── php_sprintf.c │ │ ├── php_streams.h │ │ ├── php_syslog.h │ │ ├── php_ticks.c │ │ ├── php_ticks.h │ │ ├── php_variables.c │ │ ├── php_variables.h │ │ ├── php_version.h │ │ ├── reentrancy.c │ │ ├── rfc1867.c │ │ ├── rfc1867.h │ │ ├── safe_mode.c │ │ ├── safe_mode.h │ │ ├── snprintf.c │ │ ├── snprintf.h │ │ ├── spprintf.c │ │ ├── spprintf.h │ │ ├── streams │ │ │ ├── cast.c │ │ │ ├── filter.c │ │ │ ├── glob_wrapper.c │ │ │ ├── memory.c │ │ │ ├── mmap.c │ │ │ ├── php_stream_context.h │ │ │ ├── php_stream_filter_api.h │ │ │ ├── php_stream_glob_wrapper.h │ │ │ ├── php_stream_mmap.h │ │ │ ├── php_stream_plain_wrapper.h │ │ │ ├── php_stream_transport.h │ │ │ ├── php_stream_userspace.h │ │ │ ├── php_streams_int.h │ │ │ ├── plain_wrapper.c │ │ │ ├── streams.c │ │ │ ├── transports.c │ │ │ ├── userspace.c │ │ │ └── xp_socket.c │ │ ├── strlcat.c │ │ ├── strlcpy.c │ │ ├── win32_internal_function_disabled.h │ │ └── win95nt.h │ ├── pthreads-win32 │ │ ├── md5.sum │ │ ├── pthread.h │ │ ├── sched.h │ │ └── semaphore.h │ ├── stub.c │ └── win32 │ │ ├── EngineSelect.bat │ │ ├── EngineSelect.dsp │ │ ├── build │ │ ├── DSP.README │ │ ├── Makefile │ │ ├── block.template.dsw │ │ ├── buildconf.js │ │ ├── config.w32 │ │ ├── config.w32.h.in │ │ ├── configure.bat │ │ ├── configure.tail │ │ ├── confutils.js │ │ ├── cvsclean.js │ │ ├── deplister.c │ │ ├── mkdist.php │ │ ├── php.ico │ │ ├── projectgen.js │ │ ├── registersyslog.php │ │ ├── svnclean.js │ │ ├── template.dsp │ │ ├── template.dsw │ │ ├── template.rc │ │ └── wsyslog.mc │ │ ├── builddef.bat │ │ ├── flock.c │ │ ├── flock.h │ │ ├── fnmatch.c │ │ ├── fnmatch.h │ │ ├── glob.c │ │ ├── glob.h │ │ ├── globals.c │ │ ├── grp.h │ │ ├── inet.c │ │ ├── inet.h │ │ ├── install.txt │ │ ├── param.h │ │ ├── php5.dsp │ │ ├── php5.dsw │ │ ├── php5dll.dsp │ │ ├── php5dllts.dsp │ │ ├── php5dllts.rc │ │ ├── php5dllts.rc2 │ │ ├── php5ts.dsp │ │ ├── php5ts.dsw │ │ ├── php5ts.rc │ │ ├── php5ts.rc2 │ │ ├── php5ts_cli.dsp │ │ ├── php5ts_cli.rc │ │ ├── php5ts_cli.rc2 │ │ ├── php_modules.dsw │ │ ├── php_registry.h │ │ ├── php_stdbool.h │ │ ├── php_stdint.h │ │ ├── php_strtoi64.h │ │ ├── php_win32_globals.h │ │ ├── pws-php5cgi.reg │ │ ├── pws-php5isapi.reg │ │ ├── readdir.c │ │ ├── readdir.h │ │ ├── registry.c │ │ ├── resource.h │ │ ├── select.c │ │ ├── select.h │ │ ├── sendmail.c │ │ ├── sendmail.h │ │ ├── signal.h │ │ ├── sockets.c │ │ ├── sockets.h │ │ ├── strtoi64.c │ │ ├── syslog.h │ │ ├── syslog.reg │ │ ├── testsuite.dsp │ │ ├── time.c │ │ ├── time.h │ │ ├── unistd.h │ │ ├── wfile.c │ │ ├── wfile.h │ │ ├── winutil.c │ │ ├── winutil.h │ │ └── wsyslog.c └── lib │ ├── php5ts.lib │ ├── pthreadVC2.dll │ └── pthreadVC2.lib └── source ├── CREDITS ├── EXPERIMENTAL ├── Release ├── php_threading.exp ├── php_threading.lib ├── php_threads.exp ├── php_threads.lib ├── threading.obj └── vc90.idb ├── config.m4 ├── config.w32 ├── php_threading.h ├── php_threading.sln ├── php_threading.suo ├── php_threads.sln ├── php_threads.vcproj ├── samples ├── example01.php ├── example02.php ├── example03.php ├── example04.php ├── example05.php ├── example06.php └── example07.php ├── tests └── 001.phpt ├── threading.c └── threading.php /binaries/Release/BuildLog.htm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/binaries/Release/BuildLog.htm -------------------------------------------------------------------------------- /binaries/Release/mt.dep: -------------------------------------------------------------------------------- 1 | Manifest resource last updated at 22:13:49.27 on Tue 09/28/2010 2 | -------------------------------------------------------------------------------- /binaries/Release/php_threading.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/binaries/Release/php_threading.dll -------------------------------------------------------------------------------- /binaries/Release/php_threading.dll.intermediate.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /binaries/Release/php_threads.dll.intermediate.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /deps/include/TSRM/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 1999-2006, Andi Gutmans, Sascha Schumann, Zeev Suraski. 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without 5 | modification, are permitted provided that the following conditions are 6 | met: 7 | 8 | - Redistributions of source code must retain the above copyright notice, 9 | this list of conditions and the following disclaimer. 10 | 11 | - Neither name of the copyright holders nor the names of their contributors 12 | may be used to endorse or promote products derived from this software 13 | without specific prior written permission. 14 | 15 | 16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS 17 | IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 18 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19 | PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR 20 | CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 21 | EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 22 | PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 23 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 24 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 25 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 26 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 | -------------------------------------------------------------------------------- /deps/include/TSRM/Makefile.am: -------------------------------------------------------------------------------- 1 | ## process this file with automake to produce Makefile.am 2 | AUTOMAKE_OPTIONS=foreign 3 | noinst_LTLIBRARIES=libtsrm.la 4 | libtsrm_la_SOURCES = TSRM.c tsrm_strtok_r.c tsrm_virtual_cwd.c 5 | 6 | depend: 7 | -------------------------------------------------------------------------------- /deps/include/TSRM/TODO: -------------------------------------------------------------------------------- 1 | - Improve the lock in ts_resource_ex() in order to cover less code. 2 | This can probably be done by more careful hash table access 3 | -------------------------------------------------------------------------------- /deps/include/TSRM/acconfig.h: -------------------------------------------------------------------------------- 1 | #undef PTHREADS 2 | -------------------------------------------------------------------------------- /deps/include/TSRM/acinclude.m4: -------------------------------------------------------------------------------- 1 | 2 | AC_DEFUN([AM_SET_LIBTOOL_VARIABLE],[ 3 | LIBTOOL='$(SHELL) $(top_builddir)/libtool $1' 4 | ]) 5 | 6 | -------------------------------------------------------------------------------- /deps/include/TSRM/build.mk: -------------------------------------------------------------------------------- 1 | # Makefile to generate build tools 2 | # 3 | # Standard usage: 4 | # make -f build.mk 5 | # 6 | # Written by Sascha Schumann 7 | # 8 | # $Id: build.mk 14329 1999-10-10 02:02:13Z sascha $ 9 | 10 | 11 | LT_TARGETS = ltmain.sh ltconfig 12 | 13 | config_h_in = tsrm_config.h.in 14 | 15 | makefile_am_files = Makefile.am 16 | makefile_in_files = $(makefile_am_files:.am=.in) 17 | makefile_files = $(makefile_am_files:e.am=e) 18 | 19 | targets = $(makefile_in_files) $(LT_TARGETS) configure $(config_h_in) 20 | 21 | all: $(targets) 22 | 23 | clean: 24 | rm -f $(targets) 25 | 26 | $(LT_TARGETS): 27 | rm -f $(LT_TARGETS) 28 | libtoolize --automake $(AMFLAGS) -f 29 | 30 | $(makefile_in_files): $(makefile_am_files) 31 | automake -a -i $(AMFLAGS) $(makefile_files) 32 | 33 | aclocal.m4: configure.in acinclude.m4 34 | aclocal 35 | 36 | $(config_h_in): configure.in acconfig.h 37 | # explicitly remove target since autoheader does not seem to work 38 | # correctly otherwise (timestamps are not updated) 39 | @rm -f $@ 40 | autoheader 41 | 42 | configure: aclocal.m4 configure.in 43 | autoconf 44 | -------------------------------------------------------------------------------- /deps/include/TSRM/buildconf: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | case "$1" in 4 | --copy) 5 | automake_flags=--copy 6 | shift 7 | ;; 8 | esac 9 | 10 | libtoolize --force --automake $automake_flags 11 | 12 | mv aclocal.m4 aclocal.m4.old 2>/dev/null 13 | aclocal 14 | if cmp aclocal.m4.old aclocal.m4 > /dev/null 2>&1; then 15 | echo "buildconf: keeping ${1}aclocal.m4" 16 | mv aclocal.m4.old aclocal.m4 17 | else 18 | echo "buildconf: created or modified ${1}aclocal.m4" 19 | fi 20 | 21 | autoheader 22 | 23 | automake --add-missing --include-deps $automake_flags 24 | 25 | mv configure configure.old 2>/dev/null 26 | autoconf 27 | if cmp configure.old configure > /dev/null 2>&1; then 28 | echo "buildconf: keeping ${1}configure" 29 | mv configure.old configure 30 | else 31 | echo "buildconf: created or modified ${1}configure" 32 | fi 33 | 34 | -------------------------------------------------------------------------------- /deps/include/TSRM/config.w32: -------------------------------------------------------------------------------- 1 | // vim:ft=javascript 2 | // $Id: config.w32 298737 2010-04-28 22:25:31Z pajoye $ 3 | 4 | ADD_SOURCES("TSRM", "TSRM.c tsrm_strtok_r.c tsrm_virtual_cwd.c tsrm_win32.c"); 5 | 6 | -------------------------------------------------------------------------------- /deps/include/TSRM/configure.in: -------------------------------------------------------------------------------- 1 | dnl $Id: configure.in 53832 2001-08-08 10:26:21Z zeev $ 2 | dnl 3 | dnl Minimalistic configure.in for TSRM. 4 | dnl 5 | 6 | AC_INIT(TSRM.c) 7 | AM_INIT_AUTOMAKE(TSRM, 1.0, nodefine) 8 | AM_CONFIG_HEADER(tsrm_config.h) 9 | 10 | sinclude(tsrm.m4) 11 | 12 | TSRM_BASIC_CHECKS 13 | TSRM_THREADS_CHECKS 14 | 15 | AM_PROG_LIBTOOL 16 | if test "$enable_debug" != "yes"; then 17 | AM_SET_LIBTOOL_VARIABLE([--silent]) 18 | fi 19 | 20 | dnl TSRM_PTHREAD 21 | 22 | AC_CHECK_HEADERS( 23 | utime.h \ 24 | dirent.h \ 25 | stdarg.h \ 26 | alloca.h \ 27 | unistd.h \ 28 | limits.h 29 | ) 30 | 31 | AC_OUTPUT(Makefile) 32 | -------------------------------------------------------------------------------- /deps/include/TSRM/readdir.h: -------------------------------------------------------------------------------- 1 | #ifndef READDIR_H 2 | #define READDIR_H 3 | 4 | 5 | /* 6 | * Structures and types used to implement opendir/readdir/closedir 7 | * on Windows 95/NT. 8 | */ 9 | 10 | #include 11 | 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | 18 | /* struct dirent - same as Unix */ 19 | 20 | struct dirent { 21 | long d_ino; /* inode (always 1 in WIN32) */ 22 | off_t d_off; /* offset to this dirent */ 23 | unsigned short d_reclen; /* length of d_name */ 24 | char d_name[_MAX_FNAME + 1]; /* filename (null terminated) */ 25 | }; 26 | 27 | 28 | /* typedef DIR - not the same as Unix */ 29 | typedef struct { 30 | HANDLE handle; /* _findfirst/_findnext handle */ 31 | short offset; /* offset into directory */ 32 | short finished; /* 1 if there are not more files */ 33 | WIN32_FIND_DATA fileinfo; /* from _findfirst/_findnext */ 34 | char *dir; /* the dir we are reading */ 35 | struct dirent dent; /* the dirent to return */ 36 | } DIR; 37 | 38 | /* Function prototypes */ 39 | DIR *opendir(const char *); 40 | struct dirent *readdir(DIR *); 41 | int readdir_r(DIR *, struct dirent *, struct dirent **); 42 | int closedir(DIR *); 43 | int rewinddir(DIR *); 44 | 45 | #endif /* READDIR_H */ 46 | -------------------------------------------------------------------------------- /deps/include/TSRM/tsrm_config.w32.h: -------------------------------------------------------------------------------- 1 | #ifndef TSRM_CONFIG_W32_H 2 | #define TSRM_CONFIG_W32_H 3 | 4 | #include <../main/config.w32.h> 5 | 6 | #define HAVE_UTIME 1 7 | #define HAVE_ALLOCA 1 8 | #define HAVE_REALPATH 1 9 | 10 | #include 11 | #include 12 | #include 13 | 14 | #undef inline 15 | #ifdef ZEND_WIN32_FORCE_INLINE 16 | # define inline __forceinline 17 | #else 18 | # define inline 19 | #endif 20 | 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /deps/include/TSRM/tsrm_config_common.h: -------------------------------------------------------------------------------- 1 | #ifndef TSRM_CONFIG_COMMON_H 2 | #define TSRM_CONFIG_COMMON_H 3 | 4 | #ifndef __CYGWIN__ 5 | # if WINNT|WIN32 6 | # define TSRM_WIN32 7 | # endif 8 | #endif 9 | 10 | #ifdef TSRM_WIN32 11 | # include "tsrm_config.w32.h" 12 | #else 13 | # include 14 | # include 15 | #endif 16 | 17 | #if HAVE_ALLOCA_H && !defined(_ALLOCA_H) 18 | # include 19 | #endif 20 | 21 | /* AIX requires this to be the first thing in the file. */ 22 | #ifndef __GNUC__ 23 | # ifndef HAVE_ALLOCA_H 24 | # ifdef _AIX 25 | #pragma alloca 26 | # else 27 | # ifndef alloca /* predefined by HP cc +Olibcalls */ 28 | # ifndef NETWARE 29 | char *alloca (); 30 | # endif 31 | # endif 32 | # endif 33 | # endif 34 | #endif 35 | 36 | #if HAVE_UNISTD_H 37 | #include 38 | #endif 39 | 40 | #if HAVE_LIMITS_H 41 | #include 42 | #endif 43 | 44 | #ifndef MAXPATHLEN 45 | # ifdef PATH_MAX 46 | # define MAXPATHLEN PATH_MAX 47 | # elif defined(MAX_PATH) 48 | # define MAXPATHLEN MAX_PATH 49 | # else 50 | # define MAXPATHLEN 256 51 | # endif 52 | #endif 53 | 54 | #if (HAVE_ALLOCA || (defined (__GNUC__) && __GNUC__ >= 2)) 55 | # define TSRM_ALLOCA_MAX_SIZE 4096 56 | # define TSRM_ALLOCA_FLAG(name) \ 57 | int name; 58 | # define tsrm_do_alloca_ex(size, limit, use_heap) \ 59 | ((use_heap = ((size) > (limit))) ? malloc(size) : alloca(size)) 60 | # define tsrm_do_alloca(size, use_heap) \ 61 | tsrm_do_alloca_ex(size, TSRM_ALLOCA_MAX_SIZE, use_heap) 62 | # define tsrm_free_alloca(p, use_heap) \ 63 | do { if (use_heap) free(p); } while (0) 64 | #else 65 | # define TSRM_ALLOCA_FLAG(name) 66 | # define tsrm_do_alloca(p, use_heap) malloc(p) 67 | # define tsrm_free_alloca(p, use_heap) free(p) 68 | #endif 69 | 70 | #endif /* TSRM_CONFIG_COMMON_H */ 71 | -------------------------------------------------------------------------------- /deps/include/TSRM/tsrm_nw.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: Venkat Raghavan S | 16 | | Anantha Kesari H Y | 17 | +----------------------------------------------------------------------+ 18 | */ 19 | 20 | 21 | #ifndef TSRM_NW_H 22 | #define TSRM_NW_H 23 | 24 | #include "TSRM.h" 25 | 26 | TSRM_API FILE* popen(const char *command, const char *type); 27 | TSRM_API int pclose(FILE* stream); 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /deps/include/TSRM/tsrm_strtok_r.c: -------------------------------------------------------------------------------- 1 | #include 2 | 3 | #include "tsrm_config_common.h" 4 | #include "tsrm_strtok_r.h" 5 | 6 | static inline int in_character_class(char ch, const char *delim) 7 | { 8 | while (*delim) { 9 | if (*delim == ch) { 10 | return 1; 11 | } 12 | delim++; 13 | } 14 | return 0; 15 | } 16 | 17 | char *tsrm_strtok_r(char *s, const char *delim, char **last) 18 | { 19 | char *token; 20 | 21 | if (s == NULL) { 22 | s = *last; 23 | } 24 | 25 | while (*s && in_character_class(*s, delim)) { 26 | s++; 27 | } 28 | if (!*s) { 29 | return NULL; 30 | } 31 | 32 | token = s; 33 | 34 | while (*s && !in_character_class(*s, delim)) { 35 | s++; 36 | } 37 | if (!*s) { 38 | *last = s; 39 | } else { 40 | *s = '\0'; 41 | *last = s + 1; 42 | } 43 | return token; 44 | } 45 | 46 | #if 0 47 | 48 | main() 49 | { 50 | char foo[] = "/foo/bar//\\barbara"; 51 | char *last; 52 | char *token; 53 | 54 | token = tsrm_strtok_r(foo, "/\\", &last); 55 | while (token) { 56 | printf ("Token = '%s'\n", token); 57 | token = tsrm_strtok_r(NULL, "/\\", &last); 58 | } 59 | 60 | return 0; 61 | } 62 | 63 | #endif 64 | -------------------------------------------------------------------------------- /deps/include/TSRM/tsrm_strtok_r.h: -------------------------------------------------------------------------------- 1 | #ifndef TSRM_STRTOK_R 2 | #define TSRM_STRTOK_R 3 | 4 | char *tsrm_strtok_r(char *s, const char *delim, char **last); 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /deps/include/Zend/Makefile.am: -------------------------------------------------------------------------------- 1 | ## Process this file with automake to produce Makefile.in -*- makefile -*- 2 | 3 | #CLEANFILES = zend_language_parser.c zend_language_parser.h zend_language_scanner.c zend_language_parser.output zend_ini_parser.c zend_ini_parser.h zend_ini_scanner.c zend_ini_parser.output 4 | 5 | AUTOMAKE_OPTIONS=foreign 6 | noinst_LTLIBRARIES=libZend.la 7 | 8 | libZend_la_SOURCES=\ 9 | zend_language_parser.y zend_language_scanner.l \ 10 | zend_ini_parser.y zend_ini_scanner.l \ 11 | zend_alloc.c zend_compile.c zend_constants.c zend_dynamic_array.c \ 12 | zend_execute.c zend_execute_API.c zend_highlight.c zend_llist.c \ 13 | zend_opcode.c zend_operators.c zend_ptr_stack.c zend_stack.c \ 14 | zend_variables.c zend.c zend_API.c zend_extensions.c zend_hash.c \ 15 | zend_list.c zend_indent.c zend_builtin_functions.c zend_sprintf.c \ 16 | zend_ini.c zend_qsort.c zend_objects.c zend_object_handlers.c \ 17 | zend_objects_API.c zend_ts_hash.c zend_stream.c \ 18 | zend_default_classes.c \ 19 | zend_iterators.c zend_interfaces.c zend_exceptions.c \ 20 | zend_strtod.c zend_closures.c zend_float.c 21 | 22 | libZend_la_LDFLAGS = 23 | libZend_la_LIBADD = @ZEND_EXTRA_LIBS@ 24 | 25 | # automake isn't too clever about "non-standard" use of lex and yacc 26 | 27 | $(libZend_la_OBJECTS): zend_language_parser.h 28 | 29 | zend_ini_scanner.lo: zend_ini_parser.h 30 | 31 | # Language parser/scanner rules 32 | 33 | zend_language_scanner.c: $(srcdir)/zend_language_scanner.l 34 | $(RE2C) $(RE2C_FLAGS) --case-inverted -cbdFt $(srcdir)/zend_language_scanner_defs.h -o$@ $(srcdir)/zend_language_scanner.l 35 | 36 | zend_language_parser.h: zend_language_parser.c 37 | zend_language_parser.c: $(srcdir)/zend_language_parser.y 38 | $(YACC) -p zend -v -d $(srcdir)/zend_language_parser.y -o zend_language_parser.c 39 | 40 | # INI parser/scanner rules 41 | 42 | zend_ini_parser.c: $(srcdir)/zend_ini_parser.y 43 | $(YACC) -p ini_ -v -d $(srcdir)/zend_ini_parser.y -o zend_ini_parser.c 44 | 45 | zend_ini_scanner.c: $(srcdir)/zend_ini_scanner.l 46 | $(RE2C) $(RE2C_FLAGS) --case-inverted -cbdFt $(srcdir)/zend_ini_scanner_defs.h -o$@ $(srcdir)/zend_ini_scanner.l 47 | 48 | zend_ini_parser.h: zend_ini_parser.c 49 | 50 | depend: 51 | 52 | zend_execute.lo: $(srcdir)/zend_execute.c 53 | $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(CPPFLAGS) $(INLINE_CFLAGS) -c $(srcdir)/zend_execute.c 54 | 55 | -------------------------------------------------------------------------------- /deps/include/Zend/Makefile.frag: -------------------------------------------------------------------------------- 1 | Zend/zend_execute.lo: $(srcdir)/zend_vm_execute.h $(srcdir)/zend_vm_opcodes.h 2 | -------------------------------------------------------------------------------- /deps/include/Zend/README.ZEND_MM: -------------------------------------------------------------------------------- 1 | Zend Memory Manager 2 | =================== 3 | 4 | General: 5 | -------- 6 | 7 | The goal of the new memory manager (available since PHP 5.2) is to reduce memory 8 | allocation overhead and speedup memory management. 9 | 10 | The new manager's "configure" has no "--disable-zend-memory-manager" option, 11 | but it has "--enable-malloc-mm" instead. It is enabled by default in DEBUG 12 | build and disabled by default in RELEASE build. when enabled it allows selecting 13 | between malloc and emalloc at runtime so you can use internal and external memory 14 | debuggers without recompilation. 15 | 16 | Debugging: 17 | ---------- 18 | 19 | Normal: 20 | 21 | $ sapi/cli/php -r 'leak();' 22 | 23 | Zend MM disabled: 24 | 25 | $ USE_ZEND_ALLOC=0 valgrind --leak-check=full sapi/cli/php -r 'leak();' 26 | 27 | Tweaking: 28 | --------- 29 | 30 | The Zend MM can be tweaked using ZEND_MM_MEM_TYPE and ZEND_MM_SEG_SIZE environment 31 | variables. Default values are "malloc" and "256K". Dependent on target system you 32 | can also use "mmap_anon", "mmap_zero" and "win32" storage managers. 33 | 34 | $ ZEND_MM_MEM_TYPE=mmap_anon ZEND_MM_SEG_SIZE=1M sapi/cli/php ..etc. 35 | -------------------------------------------------------------------------------- /deps/include/Zend/RFCs/003.txt: -------------------------------------------------------------------------------- 1 | Title: Loose type requirements for functions 2 | Version: $Revision: 57685 $ 3 | Status: draft 4 | Maintainer: Brian Moon 5 | Created: 2001-09-17 6 | Modified: 2001-09-17 7 | 8 | 9 | 1. Background/Need 10 | ================== 11 | 12 | Many internal function of PHP will reject parameters because of their 13 | type (the array and variable function come to mind). For userland 14 | this is not an easy task as there is no uniform way to do it. An 15 | addition to the engine for requiring loose types would allow 16 | delevopers to know that the data passed to their functions is of the 17 | correct type and reduce the need for duplicating the same code in 18 | every function to check for the type of data. 19 | 20 | 21 | 2. Overview 22 | =========== 23 | 24 | Loose typing mostly means evaluating the contents of the variable and 25 | not the type of the variable itself. The requirements for this would 26 | and should work much like several of the is_* functions do now. 27 | 28 | The typing of parameters would be optional and those not typed would 29 | simply continue to be treated as they are now. 30 | 31 | 3. Functionality 32 | ================ 33 | 34 | 3.1. Allowed Types 35 | ================== 36 | 37 | Only loose types should be needed to ensure the data is usable by the 38 | function. Duplicating the functionallity of is_scalar, is_resource, 39 | is_array and is_object should give developers all the information they 40 | need to use a variable correctly. 41 | 42 | 3.2. Syntax 43 | =========== 44 | 45 | The current function syntax should be expanded to allow typing of 46 | variables inline in a C style. 47 | 48 | function foo ($var){ 49 | } 50 | 51 | could be changed to require an array such as: 52 | 53 | function foo (array $var){ 54 | } 55 | 56 | 3.3. Errors 57 | =========== 58 | 59 | Mis-matches in type should be reported as fatal errors and should halt 60 | the execution of a script as that function can not be run and code 61 | following could not reliably run. 62 | 63 | 64 | 4. Compatibility Notes 65 | ====================== 66 | 67 | Old code that does not take advantage of this will run without 68 | modifications. 69 | 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /deps/include/Zend/build.mk: -------------------------------------------------------------------------------- 1 | # Makefile to generate build tools 2 | # 3 | # Standard usage: 4 | # make -f build.mk 5 | # 6 | # Written by Sascha Schumann 7 | # 8 | # $Id: build.mk 242949 2007-09-26 15:44:16Z cvs2svn $ 9 | 10 | 11 | LT_TARGETS = ltmain.sh ltconfig 12 | 13 | config_h_in = zend_config.h.in 14 | 15 | makefile_am_files = Makefile.am 16 | makefile_in_files = $(makefile_am_files:.am=.in) 17 | makefile_files = $(makefile_am_files:e.am=e) 18 | 19 | targets = $(makefile_in_files) $(LT_TARGETS) configure $(config_h_in) 20 | 21 | all: $(targets) 22 | 23 | clean: 24 | rm -f $(targets) 25 | 26 | $(LT_TARGETS): 27 | rm -f $(LT_TARGETS) 28 | libtoolize --automake $(AMFLAGS) -f 29 | 30 | $(makefile_in_files): $(makefile_am_files) 31 | automake -a -i $(AMFLAGS) $(makefile_files) 32 | 33 | aclocal.m4: configure.in acinclude.m4 34 | aclocal 35 | 36 | $(config_h_in): configure.in acconfig.h 37 | # explicitly remove target since autoheader does not seem to work 38 | # correctly otherwise (timestamps are not updated) 39 | @rm -f $@ 40 | autoheader 41 | 42 | configure: aclocal.m4 configure.in 43 | autoconf 44 | -------------------------------------------------------------------------------- /deps/include/Zend/buildconf: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | case "$1" in 4 | --copy) 5 | automake_flags=--copy 6 | shift 7 | ;; 8 | esac 9 | 10 | libtoolize --force --automake $automake_flags 11 | 12 | mv aclocal.m4 aclocal.m4.old 2>/dev/null 13 | aclocal 14 | if cmp aclocal.m4.old aclocal.m4 > /dev/null 2>&1; then 15 | echo "buildconf: keeping ${1}aclocal.m4" 16 | mv aclocal.m4.old aclocal.m4 17 | else 18 | echo "buildconf: created or modified ${1}aclocal.m4" 19 | fi 20 | 21 | autoheader 22 | 23 | automake --add-missing --include-deps $automake_flags 24 | 25 | mv configure configure.old 2>/dev/null 26 | autoconf 27 | if cmp configure.old configure > /dev/null 2>&1; then 28 | echo "buildconf: keeping ${1}configure" 29 | mv configure.old configure 30 | else 31 | echo "buildconf: created or modified ${1}configure" 32 | fi 33 | 34 | -------------------------------------------------------------------------------- /deps/include/Zend/configure.in: -------------------------------------------------------------------------------- 1 | dnl $Id: configure.in 255174 2008-03-16 21:06:55Z helly $ 2 | dnl Process this file with autoconf to produce a configure script. 3 | 4 | AC_INIT(zend.c) 5 | AM_INIT_AUTOMAKE(zend, 0.80A, nodefine) 6 | AM_CONFIG_HEADER(zend_config.h) 7 | AM_SANITY_CHECK 8 | AM_MAINTAINER_MODE 9 | AC_PROG_CC 10 | AM_PROG_CC_STDC 11 | ZEND_VERSION=$VERSION 12 | AC_ZEND_C_BIGENDIAN 13 | 14 | dnl We want this one before the checks, so the checks can modify CFLAGS. 15 | test -z "$CFLAGS" && auto_cflags=1 16 | 17 | AC_CHECK_SIZEOF(long, 8) 18 | AC_CHECK_SIZEOF(int, 4) 19 | 20 | sinclude(Zend.m4) 21 | 22 | LIBZEND_BASIC_CHECKS 23 | LIBZEND_LIBDL_CHECKS 24 | LIBZEND_DLSYM_CHECK 25 | 26 | AM_PROG_LIBTOOL 27 | if test "$enable_debug" != "yes"; then 28 | AM_SET_LIBTOOL_VARIABLE([--silent]) 29 | fi 30 | 31 | dnl 32 | dnl Check for /usr/pkg/{lib,include} which is where NetBSD puts binary 33 | dnl and source packages. This should be harmless on other OSs. 34 | dnl 35 | if test -d /usr/pkg/include -a -d /usr/pkg/lib ; then 36 | CFLAGS="$CFLAGS -I/usr/pkg/include" 37 | LDFLAGS="$LDFLAGS -L/usr/pkg/lib" 38 | fi 39 | 40 | LIBZEND_ENABLE_DEBUG 41 | LIBZEND_OTHER_CHECKS 42 | 43 | ZEND_EXTRA_LIBS="$LIBS" 44 | LIBS="" 45 | AC_SUBST(ZEND_EXTRA_LIBS) 46 | AC_OUTPUT(Makefile) 47 | 48 | # Local Variables: 49 | # tab-width: 4 50 | # End: 51 | -------------------------------------------------------------------------------- /deps/include/Zend/header: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | Zend Engine | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1998-2010 Zend Technologies Ltd. (http://www.zend.com) | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 2.00 of the Zend license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.zend.com/license/2_00.txt. | 11 | | If you did not receive a copy of the Zend license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@zend.com so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: header 293380 2010-01-11 03:01:19Z iliaa $ */ 20 | -------------------------------------------------------------------------------- /deps/include/Zend/zend.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/deps/include/Zend/zend.ico -------------------------------------------------------------------------------- /deps/include/Zend/zend_build.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | Zend Engine | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1998-2010 Zend Technologies Ltd. (http://www.zend.com) | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 2.00 of the Zend license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.zend.com/license/2_00.txt. | 11 | | If you did not receive a copy of the Zend license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@zend.com so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: Stanislav Malyshev | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | #ifndef ZEND_BUILD_H 20 | #define ZEND_BUILD_H 21 | 22 | #define ZEND_TOSTR_(x) #x 23 | #define ZEND_TOSTR(x) ZEND_TOSTR_(x) 24 | 25 | #ifdef ZTS 26 | #define ZEND_BUILD_TS ",TS" 27 | #else 28 | #define ZEND_BUILD_TS ",NTS" 29 | #endif 30 | 31 | #if ZEND_DEBUG 32 | #define ZEND_BUILD_DEBUG ",debug" 33 | #else 34 | #define ZEND_BUILD_DEBUG 35 | #endif 36 | 37 | #if defined(ZEND_WIN32) && defined(PHP_COMPILER_ID) 38 | #define ZEND_BUILD_SYSTEM "," PHP_COMPILER_ID 39 | #else 40 | #define ZEND_BUILD_SYSTEM 41 | #endif 42 | 43 | /* for private applications */ 44 | #define ZEND_BUILD_EXTRA 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /deps/include/Zend/zend_builtin_functions.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | Zend Engine | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1998-2010 Zend Technologies Ltd. (http://www.zend.com) | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 2.00 of the Zend license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.zend.com/license/2_00.txt. | 11 | | If you did not receive a copy of the Zend license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@zend.com so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: Andi Gutmans | 16 | | Zeev Suraski | 17 | +----------------------------------------------------------------------+ 18 | */ 19 | 20 | /* $Id: zend_builtin_functions.h 293155 2010-01-05 20:46:53Z sebastian $ */ 21 | 22 | #ifndef ZEND_BUILTIN_FUNCTIONS_H 23 | #define ZEND_BUILTIN_FUNCTIONS_H 24 | 25 | int zend_startup_builtin_functions(TSRMLS_D); 26 | 27 | BEGIN_EXTERN_C() 28 | ZEND_API void zend_fetch_debug_backtrace(zval *return_value, int skip_last, int provide_object TSRMLS_DC); 29 | END_EXTERN_C() 30 | 31 | #endif /* ZEND_BUILTIN_FUNCTIONS_H */ 32 | 33 | /* 34 | * Local variables: 35 | * tab-width: 4 36 | * c-basic-offset: 4 37 | * indent-tabs-mode: t 38 | * End: 39 | */ 40 | -------------------------------------------------------------------------------- /deps/include/Zend/zend_closures.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | Zend Engine | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1998-2010 Zend Technologies Ltd. (http://www.zend.com) | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 2.00 of the Zend license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.zend.com/license/2_00.txt. | 11 | | If you did not receive a copy of the Zend license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@zend.com so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: Christian Seiler | 16 | | Dmitry Stogov | 17 | +----------------------------------------------------------------------+ 18 | */ 19 | 20 | /* $Id: zend_closures.h 293155 2010-01-05 20:46:53Z sebastian $ */ 21 | 22 | #ifndef ZEND_CLOSURES_H 23 | #define ZEND_CLOSURES_H 24 | 25 | BEGIN_EXTERN_C() 26 | 27 | #define ZEND_INVOKE_FUNC_NAME "__invoke" 28 | 29 | void zend_register_closure_ce(TSRMLS_D); 30 | 31 | extern ZEND_API zend_class_entry *zend_ce_closure; 32 | 33 | ZEND_API void zend_create_closure(zval *res, zend_function *op_array TSRMLS_DC); 34 | ZEND_API zend_function *zend_get_closure_invoke_method(zval *obj TSRMLS_DC); 35 | ZEND_API const zend_function *zend_get_closure_method_def(zval *obj TSRMLS_DC); 36 | 37 | END_EXTERN_C() 38 | 39 | #endif 40 | 41 | /* 42 | * Local variables: 43 | * tab-width: 4 44 | * c-basic-offset: 4 45 | * indent-tabs-mode: t 46 | * End: 47 | */ 48 | -------------------------------------------------------------------------------- /deps/include/Zend/zend_default_classes.c: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | Zend Engine | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1998-2010 Zend Technologies Ltd. (http://www.zend.com) | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 2.00 of the Zend license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.zend.com/license/2_00.txt. | 11 | | If you did not receive a copy of the Zend license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@zend.com so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: Sterling Hughes | 16 | | Marcus Boerger | 17 | +----------------------------------------------------------------------+ 18 | */ 19 | 20 | /* $Id: zend_default_classes.c 293155 2010-01-05 20:46:53Z sebastian $ */ 21 | 22 | #include "zend.h" 23 | #include "zend_API.h" 24 | #include "zend_builtin_functions.h" 25 | #include "zend_interfaces.h" 26 | #include "zend_exceptions.h" 27 | #include "zend_closures.h" 28 | 29 | 30 | ZEND_API void zend_register_default_classes(TSRMLS_D) 31 | { 32 | zend_register_interfaces(TSRMLS_C); 33 | zend_register_default_exception(TSRMLS_C); 34 | zend_register_iterator_wrapper(TSRMLS_C); 35 | zend_register_closure_ce(TSRMLS_C); 36 | } 37 | 38 | /* 39 | * Local variables: 40 | * tab-width: 4 41 | * c-basic-offset: 4 42 | * indent-tabs-mode: t 43 | * End: 44 | */ 45 | -------------------------------------------------------------------------------- /deps/include/Zend/zend_dynamic_array.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | Zend Engine | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1998-2010 Zend Technologies Ltd. (http://www.zend.com) | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 2.00 of the Zend license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.zend.com/license/2_00.txt. | 11 | | If you did not receive a copy of the Zend license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@zend.com so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: Andi Gutmans | 16 | | Zeev Suraski | 17 | +----------------------------------------------------------------------+ 18 | */ 19 | 20 | /* $Id: zend_dynamic_array.h 293155 2010-01-05 20:46:53Z sebastian $ */ 21 | 22 | #ifndef ZEND_DYNAMIC_ARRAY_H 23 | #define ZEND_DYNAMIC_ARRAY_H 24 | 25 | typedef struct _dynamic_array { 26 | char *array; 27 | unsigned int element_size; 28 | unsigned int last_used; 29 | unsigned int allocated; 30 | } dynamic_array; 31 | 32 | BEGIN_EXTERN_C() 33 | ZEND_API int zend_dynamic_array_init(dynamic_array *da, unsigned int element_size, unsigned int size); 34 | ZEND_API void *zend_dynamic_array_push(dynamic_array *da); 35 | ZEND_API void *zend_dynamic_array_pop(dynamic_array *da); 36 | ZEND_API void *zend_dynamic_array_get_element(dynamic_array *da, unsigned int index); 37 | END_EXTERN_C() 38 | 39 | #endif /* ZEND_DYNAMIC_ARRAY_H */ 40 | 41 | /* 42 | * Local variables: 43 | * tab-width: 4 44 | * c-basic-offset: 4 45 | * indent-tabs-mode: t 46 | * End: 47 | */ 48 | -------------------------------------------------------------------------------- /deps/include/Zend/zend_errors.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | Zend Engine | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1998-2010 Zend Technologies Ltd. (http://www.zend.com) | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 2.00 of the Zend license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.zend.com/license/2_00.txt. | 11 | | If you did not receive a copy of the Zend license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@zend.com so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: Andi Gutmans | 16 | | Zeev Suraski | 17 | +----------------------------------------------------------------------+ 18 | */ 19 | 20 | /* $Id: zend_errors.h 293155 2010-01-05 20:46:53Z sebastian $ */ 21 | 22 | #ifndef ZEND_ERRORS_H 23 | #define ZEND_ERRORS_H 24 | 25 | #define E_ERROR (1<<0L) 26 | #define E_WARNING (1<<1L) 27 | #define E_PARSE (1<<2L) 28 | #define E_NOTICE (1<<3L) 29 | #define E_CORE_ERROR (1<<4L) 30 | #define E_CORE_WARNING (1<<5L) 31 | #define E_COMPILE_ERROR (1<<6L) 32 | #define E_COMPILE_WARNING (1<<7L) 33 | #define E_USER_ERROR (1<<8L) 34 | #define E_USER_WARNING (1<<9L) 35 | #define E_USER_NOTICE (1<<10L) 36 | #define E_STRICT (1<<11L) 37 | #define E_RECOVERABLE_ERROR (1<<12L) 38 | #define E_DEPRECATED (1<<13L) 39 | #define E_USER_DEPRECATED (1<<14L) 40 | 41 | #define E_ALL (E_ERROR | E_WARNING | E_PARSE | E_NOTICE | E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_COMPILE_WARNING | E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE | E_RECOVERABLE_ERROR | E_DEPRECATED | E_USER_DEPRECATED) 42 | #define E_CORE (E_CORE_ERROR | E_CORE_WARNING) 43 | 44 | #endif /* ZEND_ERRORS_H */ 45 | 46 | /* 47 | * Local variables: 48 | * tab-width: 4 49 | * c-basic-offset: 4 50 | * indent-tabs-mode: t 51 | * End: 52 | */ 53 | -------------------------------------------------------------------------------- /deps/include/Zend/zend_float.c: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | Zend Engine | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1998-2010 Zend Technologies Ltd. (http://www.zend.com) | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 2.00 of the Zend license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.zend.com/license/2_00.txt. | 11 | | If you did not receive a copy of the Zend license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@zend.com so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: Christian Seiler | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: zend_float.c 293155 2010-01-05 20:46:53Z sebastian $ */ 20 | 21 | #include "zend.h" 22 | #include "zend_compile.h" 23 | #include "zend_float.h" 24 | 25 | ZEND_API void zend_init_fpu(TSRMLS_D) /* {{{ */ 26 | { 27 | #if XPFPA_HAVE_CW 28 | XPFPA_DECLARE 29 | 30 | if (!EG(saved_fpu_cw)) { 31 | EG(saved_fpu_cw) = emalloc(sizeof(XPFPA_CW_DATATYPE)); 32 | } 33 | XPFPA_STORE_CW(EG(saved_fpu_cw)); 34 | XPFPA_SWITCH_DOUBLE(); 35 | #else 36 | if (EG(saved_fpu_cw)) { 37 | efree(EG(saved_fpu_cw)); 38 | } 39 | EG(saved_fpu_cw) = NULL; 40 | #endif 41 | } 42 | /* }}} */ 43 | 44 | ZEND_API void zend_shutdown_fpu(TSRMLS_D) /* {{{ */ 45 | { 46 | #if XPFPA_HAVE_CW 47 | if (EG(saved_fpu_cw)) { 48 | XPFPA_RESTORE_CW(EG(saved_fpu_cw)); 49 | } 50 | #endif 51 | if (EG(saved_fpu_cw)) { 52 | efree(EG(saved_fpu_cw)); 53 | EG(saved_fpu_cw) = NULL; 54 | } 55 | } 56 | /* }}} */ 57 | 58 | ZEND_API void zend_ensure_fpu_mode(TSRMLS_D) /* {{{ */ 59 | { 60 | XPFPA_DECLARE 61 | 62 | XPFPA_SWITCH_DOUBLE(); 63 | } 64 | /* }}} */ 65 | -------------------------------------------------------------------------------- /deps/include/Zend/zend_indent.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | Zend Engine | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1998-2010 Zend Technologies Ltd. (http://www.zend.com) | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 2.00 of the Zend license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.zend.com/license/2_00.txt. | 11 | | If you did not receive a copy of the Zend license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@zend.com so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: Andi Gutmans | 16 | | Zeev Suraski | 17 | +----------------------------------------------------------------------+ 18 | */ 19 | 20 | /* $Id: zend_indent.h 293155 2010-01-05 20:46:53Z sebastian $ */ 21 | 22 | #ifndef ZEND_INDENT_H 23 | #define ZEND_INDENT_H 24 | 25 | BEGIN_EXTERN_C() 26 | ZEND_API void zend_indent(void); 27 | END_EXTERN_C() 28 | 29 | #endif /* ZEND_INDENT_H */ 30 | 31 | /* 32 | * Local variables: 33 | * tab-width: 4 34 | * c-basic-offset: 4 35 | * indent-tabs-mode: t 36 | * End: 37 | */ 38 | -------------------------------------------------------------------------------- /deps/include/Zend/zend_ini_scanner.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | Zend Engine | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1998-2010 Zend Technologies Ltd. (http://www.zend.com) | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 2.00 of the Zend license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.zend.com/license/2_00.txt. | 11 | | If you did not receive a copy of the Zend license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@zend.com so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: Andi Gutmans | 16 | | Zeev Suraski | 17 | +----------------------------------------------------------------------+ 18 | */ 19 | 20 | /* $Id: zend_ini_scanner.h 293155 2010-01-05 20:46:53Z sebastian $ */ 21 | 22 | #ifndef _ZEND_INI_SCANNER_H 23 | #define _ZEND_INI_SCANNER_H 24 | 25 | /* Scanner modes */ 26 | #define ZEND_INI_SCANNER_NORMAL 0 /* Normal mode. [DEFAULT] */ 27 | #define ZEND_INI_SCANNER_RAW 1 /* Raw mode. Option values are not parsed */ 28 | 29 | BEGIN_EXTERN_C() 30 | int zend_ini_scanner_get_lineno(TSRMLS_D); 31 | char *zend_ini_scanner_get_filename(TSRMLS_D); 32 | int zend_ini_open_file_for_scanning(zend_file_handle *fh, int scanner_mode TSRMLS_DC); 33 | int zend_ini_prepare_string_for_scanning(char *str, int scanner_mode TSRMLS_DC); 34 | int ini_lex(zval *ini_lval TSRMLS_DC); 35 | void shutdown_ini_scanner(TSRMLS_D); 36 | END_EXTERN_C() 37 | 38 | #endif /* _ZEND_INI_SCANNER_H */ 39 | 40 | /* 41 | * Local variables: 42 | * tab-width: 4 43 | * c-basic-offset: 4 44 | * indent-tabs-mode: t 45 | * End: 46 | */ 47 | -------------------------------------------------------------------------------- /deps/include/Zend/zend_ini_scanner_defs.h: -------------------------------------------------------------------------------- 1 | /* Generated by re2c 0.13.5 on Tue May 25 22:53:58 2010 */ 2 | #line 3 "Zend/zend_ini_scanner_defs.h" 3 | 4 | enum YYCONDTYPE { 5 | yycINITIAL, 6 | yycST_OFFSET, 7 | yycST_SECTION_VALUE, 8 | yycST_VALUE, 9 | yycST_SECTION_RAW, 10 | yycST_DOUBLE_QUOTES, 11 | yycST_VARNAME, 12 | yycST_RAW, 13 | }; 14 | -------------------------------------------------------------------------------- /deps/include/Zend/zend_istdiostream.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | Zend Engine | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1998-2010 Zend Technologies Ltd. (http://www.zend.com) | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 2.00 of the Zend license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.zend.com/license/2_00.txt. | 11 | | If you did not receive a copy of the Zend license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@zend.com so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: Andi Gutmans | 16 | | Zeev Suraski | 17 | +----------------------------------------------------------------------+ 18 | */ 19 | 20 | /* $Id: zend_istdiostream.h 293155 2010-01-05 20:46:53Z sebastian $ */ 21 | 22 | #ifndef _ZEND_STDIOSTREAM 23 | #define _ZEND_STDIOSTREAM 24 | 25 | #if defined(ZTS) && !defined(HAVE_CLASS_ISTDIOSTREAM) 26 | class istdiostream : public istream 27 | { 28 | private: 29 | stdiobuf _file; 30 | public: 31 | istdiostream (FILE* __f) : istream(), _file(__f) { init(&_file); } 32 | stdiobuf* rdbuf()/* const */ { return &_file; } 33 | }; 34 | #endif 35 | 36 | #endif 37 | 38 | /* 39 | * Local variables: 40 | * tab-width: 4 41 | * c-basic-offset: 4 42 | * indent-tabs-mode: t 43 | * End: 44 | */ 45 | -------------------------------------------------------------------------------- /deps/include/Zend/zend_language_scanner_defs.h: -------------------------------------------------------------------------------- 1 | /* Generated by re2c 0.13.5 on Tue Jun 29 08:18:52 2010 */ 2 | #line 3 "Zend/zend_language_scanner_defs.h" 3 | 4 | enum YYCONDTYPE { 5 | yycST_IN_SCRIPTING, 6 | yycST_LOOKING_FOR_PROPERTY, 7 | yycST_BACKQUOTE, 8 | yycST_DOUBLE_QUOTES, 9 | yycST_HEREDOC, 10 | yycST_LOOKING_FOR_VARNAME, 11 | yycST_VAR_OFFSET, 12 | yycINITIAL, 13 | yycST_END_HEREDOC, 14 | yycST_NOWDOC, 15 | }; 16 | -------------------------------------------------------------------------------- /deps/include/Zend/zend_objects.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | Zend Engine | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1998-2010 Zend Technologies Ltd. (http://www.zend.com) | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 2.00 of the Zend license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.zend.com/license/2_00.txt. | 11 | | If you did not receive a copy of the Zend license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@zend.com so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: Andi Gutmans | 16 | | Zeev Suraski | 17 | +----------------------------------------------------------------------+ 18 | */ 19 | 20 | /* $Id: zend_objects.h 293155 2010-01-05 20:46:53Z sebastian $ */ 21 | 22 | #ifndef ZEND_OBJECTS_H 23 | #define ZEND_OBJECTS_H 24 | 25 | #include "zend.h" 26 | 27 | BEGIN_EXTERN_C() 28 | ZEND_API void zend_object_std_init(zend_object *object, zend_class_entry *ce TSRMLS_DC); 29 | ZEND_API void zend_object_std_dtor(zend_object *object TSRMLS_DC); 30 | ZEND_API zend_object_value zend_objects_new(zend_object **object, zend_class_entry *class_type TSRMLS_DC); 31 | ZEND_API void zend_objects_destroy_object(zend_object *object, zend_object_handle handle TSRMLS_DC); 32 | ZEND_API zend_object *zend_objects_get_address(const zval *object TSRMLS_DC); 33 | ZEND_API void zend_objects_clone_members(zend_object *new_object, zend_object_value new_obj_val, zend_object *old_object, zend_object_handle handle TSRMLS_DC); 34 | ZEND_API zend_object_value zend_objects_clone_obj(zval *object TSRMLS_DC); 35 | ZEND_API void zend_objects_free_object_storage(zend_object *object TSRMLS_DC); 36 | END_EXTERN_C() 37 | 38 | #endif /* ZEND_OBJECTS_H */ 39 | 40 | /* 41 | * Local variables: 42 | * tab-width: 4 43 | * c-basic-offset: 4 44 | * indent-tabs-mode: t 45 | * End: 46 | */ 47 | -------------------------------------------------------------------------------- /deps/include/Zend/zend_qsort.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | Zend Engine | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1998-2010 Zend Technologies Ltd. (http://www.zend.com) | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 2.00 of the Zend license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.zend.com/license/2_00.txt. | 11 | | If you did not receive a copy of the Zend license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@zend.com so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: Sterling Hughes | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: zend_qsort.h 293155 2010-01-05 20:46:53Z sebastian $ */ 20 | 21 | #ifndef ZEND_QSORT_H 22 | #define ZEND_QSORT_H 23 | 24 | BEGIN_EXTERN_C() 25 | ZEND_API void zend_qsort(void *base, size_t nmemb, size_t siz, compare_func_t compare TSRMLS_DC); 26 | END_EXTERN_C() 27 | 28 | #endif /* ZEND_QSORT_H */ 29 | 30 | /* 31 | * Local variables: 32 | * tab-width: 4 33 | * c-basic-offset: 4 34 | * indent-tabs-mode: t 35 | * End: 36 | */ 37 | -------------------------------------------------------------------------------- /deps/include/Zend/zend_sprintf.c: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | Zend Engine | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1998-2010 Zend Technologies Ltd. (http://www.zend.com) | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 2.00 of the Zend license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.zend.com/license/2_00.txt. | 11 | | If you did not receive a copy of the Zend license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@zend.com so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: Andi Gutmans | 16 | | Zeev Suraski | 17 | +----------------------------------------------------------------------+ 18 | */ 19 | 20 | /* $Id: zend_sprintf.c 293155 2010-01-05 20:46:53Z sebastian $ */ 21 | 22 | #include 23 | 24 | #include "zend.h" 25 | 26 | #ifdef HAVE_STDARG_H 27 | # include 28 | #endif 29 | 30 | #if ZEND_BROKEN_SPRINTF 31 | int zend_sprintf(char *buffer, const char *format, ...) 32 | { 33 | va_list args; 34 | 35 | va_start(args, format); 36 | vsprintf(buffer, format, args); 37 | va_end(args); 38 | 39 | return strlen(buffer); 40 | } 41 | #endif 42 | 43 | /* 44 | * Local variables: 45 | * tab-width: 4 46 | * c-basic-offset: 4 47 | * indent-tabs-mode: t 48 | * End: 49 | */ 50 | -------------------------------------------------------------------------------- /deps/include/Zend/zend_static_allocator.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | Zend Engine | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1998-2010 Zend Technologies Ltd. (http://www.zend.com) | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 2.00 of the Zend license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.zend.com/license/2_00.txt. | 11 | | If you did not receive a copy of the Zend license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@zend.com so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: Andi Gutmans | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: zend_static_allocator.h 293155 2010-01-05 20:46:53Z sebastian $ */ 20 | 21 | #ifndef ZEND_STATIC_ALLOCATOR_H 22 | #define ZEND_STATIC_ALLOCATOR_H 23 | 24 | #define ALLOCATOR_BLOCK_SIZE 400000 25 | 26 | /* Temporary */ 27 | typedef unsigned int zend_uint; 28 | #define emalloc(s) malloc(s) 29 | #define efree(p) free(p) 30 | 31 | typedef struct _Block { 32 | char *bp; 33 | char *pos; 34 | char *end; 35 | } Block; 36 | 37 | typedef struct _StaticAllocator { 38 | Block *Blocks; 39 | zend_uint num_blocks; 40 | zend_uint current_block; 41 | } StaticAllocator; 42 | 43 | void static_allocator_init(StaticAllocator *sa); 44 | char *static_allocator_allocate(StaticAllocator *sa, zend_uint size); 45 | void static_allocator_destroy(StaticAllocator *sa); 46 | 47 | #endif /* ZEND_STATIC_ALLOCATOR_H */ 48 | 49 | /* 50 | * Local variables: 51 | * tab-width: 4 52 | * c-basic-offset: 4 53 | * indent-tabs-mode: t 54 | * End: 55 | */ 56 | -------------------------------------------------------------------------------- /deps/include/Zend/zend_strtod.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | Zend Engine | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1998-2010 Zend Technologies Ltd. (http://www.zend.com) | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 2.00 of the Zend license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.zend.com/license/2_00.txt. | 11 | | If you did not receive a copy of the Zend license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@zend.com so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: Derick Rethans | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: zend_strtod.h 293155 2010-01-05 20:46:53Z sebastian $ */ 20 | 21 | /* This is a header file for the strtod implementation by David M. Gay which 22 | * can be found in zend_strtod.c */ 23 | #ifndef ZEND_STRTOD_H 24 | #define ZEND_STRTOD_H 25 | #include 26 | 27 | BEGIN_EXTERN_C() 28 | ZEND_API void zend_freedtoa(char *s); 29 | ZEND_API char * zend_dtoa(double _d, int mode, int ndigits, int *decpt, int *sign, char **rve); 30 | ZEND_API double zend_strtod(const char *s00, char **se); 31 | ZEND_API double zend_hex_strtod(const char *str, char **endptr); 32 | ZEND_API double zend_oct_strtod(const char *str, char **endptr); 33 | ZEND_API int zend_startup_strtod(void); 34 | ZEND_API int zend_shutdown_strtod(void); 35 | END_EXTERN_C() 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /deps/include/Zend/zend_vm.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | Zend Engine | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1998-2010 Zend Technologies Ltd. (http://www.zend.com) | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 2.00 of the Zend license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.zend.com/license/2_00.txt. | 11 | | If you did not receive a copy of the Zend license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@zend.com so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: Dmitry Stogov | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: zend_vm.h 293155 2010-01-05 20:46:53Z sebastian $ */ 20 | 21 | #ifndef ZEND_VM_H 22 | #define ZEND_VM_H 23 | 24 | ZEND_API void zend_vm_use_old_executor(void); 25 | ZEND_API void zend_vm_set_opcode_handler(zend_op* opcode); 26 | 27 | #define ZEND_VM_SET_OPCODE_HANDLER(opline) zend_vm_set_opcode_handler(opline) 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /deps/include/ext/standard/Makefile.frag: -------------------------------------------------------------------------------- 1 | 2 | $(srcdir)/var_unserializer.c: $(srcdir)/var_unserializer.re 3 | @(cd $(top_srcdir); $(RE2C) -b -o ext/standard/var_unserializer.c ext/standard/var_unserializer.re) 4 | 5 | $(srcdir)/url_scanner_ex.c: $(srcdir)/url_scanner_ex.re 6 | @(cd $(top_srcdir); $(RE2C) -b -o ext/standard/url_scanner_ex.c ext/standard/url_scanner_ex.re) 7 | 8 | $(builddir)/info.lo: $(builddir)/../../main/build-defs.h 9 | 10 | $(builddir)/basic_functions.lo: $(top_srcdir)/Zend/zend_language_parser.h 11 | -------------------------------------------------------------------------------- /deps/include/ext/standard/base64.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Jim Winstead | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: base64.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef BASE64_H 22 | #define BASE64_H 23 | 24 | PHP_FUNCTION(base64_decode); 25 | PHP_FUNCTION(base64_encode); 26 | 27 | PHPAPI extern unsigned char *php_base64_encode(const unsigned char *, int, int *); 28 | PHPAPI extern unsigned char *php_base64_decode_ex(const unsigned char *, int, int *, zend_bool); 29 | PHPAPI extern unsigned char *php_base64_decode(const unsigned char *, int, int *); 30 | 31 | #endif /* BASE64_H */ 32 | 33 | /* 34 | * Local variables: 35 | * tab-width: 4 36 | * c-basic-offset: 4 37 | * End: 38 | */ 39 | -------------------------------------------------------------------------------- /deps/include/ext/standard/browscap.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/deps/include/ext/standard/browscap.c -------------------------------------------------------------------------------- /deps/include/ext/standard/config.w32: -------------------------------------------------------------------------------- 1 | // vim:ft=javascript 2 | // $Id: config.w32 291899 2009-12-09 00:20:14Z pajoye $ 3 | 4 | ARG_WITH("config-file-scan-dir", "Dir to check for additional php ini files", ""); 5 | 6 | AC_DEFINE("PHP_CONFIG_FILE_SCAN_DIR", PHP_CONFIG_FILE_SCAN_DIR); 7 | AC_DEFINE("PHP_USE_PHP_CRYPT_R", 1); 8 | 9 | CHECK_HEADER_ADD_INCLUDE("timelib_config.h", "CFLAGS_STANDARD", "ext/date/lib"); 10 | 11 | EXTENSION("standard", "array.c base64.c basic_functions.c browscap.c \ 12 | crc32.c crypt.c crypt_freesec.c crypt_blowfish.c crypt_sha256.c \ 13 | crypt_sha512.c php_crypt_r.c \ 14 | cyr_convert.c datetime.c dir.c dl.c dns.c dns_win32.c exec.c \ 15 | file.c filestat.c formatted_print.c fsock.c head.c html.c image.c \ 16 | info.c iptc.c lcg.c link_win32.c mail.c math.c md5.c metaphone.c microtime.c \ 17 | pack.c pageinfo.c quot_print.c rand.c soundex.c \ 18 | string.c scanf.c syslog.c type.c uniqid.c url.c var.c \ 19 | versioning.c assert.c strnatcmp.c levenshtein.c incomplete_class.c \ 20 | url_scanner_ex.c ftp_fopen_wrapper.c http_fopen_wrapper.c \ 21 | php_fopen_wrapper.c credits.c css.c var_unserializer.c ftok.c sha1.c \ 22 | user_filters.c uuencode.c filters.c proc_open.c \ 23 | streamsfuncs.c http.c flock_compat.c", false /* never shared */); 24 | 25 | if (PHP_MBREGEX != "no") { 26 | CHECK_HEADER_ADD_INCLUDE("oniguruma.h", "CFLAGS_STANDARD", PHP_MBREGEX + ";ext\\mbstring\\oniguruma") 27 | } 28 | -------------------------------------------------------------------------------- /deps/include/ext/standard/crc32.c: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Rasmus Lerdorf | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: crc32.c 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #include "php.h" 22 | #include "basic_functions.h" 23 | #include "crc32.h" 24 | 25 | /* {{{ proto string crc32(string str) 26 | Calculate the crc32 polynomial of a string */ 27 | PHP_NAMED_FUNCTION(php_if_crc32) 28 | { 29 | char *p; 30 | int len, nr; 31 | php_uint32 crcinit = 0; 32 | register php_uint32 crc; 33 | 34 | if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &p, &nr) == FAILURE) { 35 | return; 36 | } 37 | crc = crcinit^0xFFFFFFFF; 38 | 39 | for (len =+nr; nr--; ++p) { 40 | crc = ((crc >> 8) & 0x00FFFFFF) ^ crc32tab[(crc ^ (*p)) & 0xFF ]; 41 | } 42 | RETVAL_LONG(crc^0xFFFFFFFF); 43 | } 44 | /* }}} */ 45 | 46 | /* 47 | * Local variables: 48 | * tab-width: 4 49 | * c-basic-offset: 4 50 | * End: 51 | * vim600: sw=4 ts=4 fdm=marker 52 | * vim<600: sw=4 ts=4 53 | */ 54 | -------------------------------------------------------------------------------- /deps/include/ext/standard/credits.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: Rasmus Lerdorf | 16 | | Zeev Suraski | 17 | +----------------------------------------------------------------------+ 18 | */ 19 | 20 | /* $Id: credits.h 293036 2010-01-03 09:23:27Z sebastian $ */ 21 | 22 | #ifndef CREDITS_H 23 | #define CREDITS_H 24 | 25 | #ifndef HAVE_CREDITS_DEFS 26 | #define HAVE_CREDITS_DEFS 27 | 28 | #define PHP_CREDITS_GROUP (1<<0) 29 | #define PHP_CREDITS_GENERAL (1<<1) 30 | #define PHP_CREDITS_SAPI (1<<2) 31 | #define PHP_CREDITS_MODULES (1<<3) 32 | #define PHP_CREDITS_DOCS (1<<4) 33 | #define PHP_CREDITS_FULLPAGE (1<<5) 34 | #define PHP_CREDITS_QA (1<<6) 35 | #define PHP_CREDITS_WEB (1<<7) 36 | #define PHP_CREDITS_ALL 0xFFFFFFFF 37 | 38 | #endif /* HAVE_CREDITS_DEFS */ 39 | 40 | PHPAPI void php_print_credits(int flag TSRMLS_DC); 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /deps/include/ext/standard/credits_sapi.h: -------------------------------------------------------------------------------- 1 | /* 2 | DO NOT EDIT THIS FILE! 3 | 4 | it has been automaticaly created by php5/scripts/credits from 5 | the information found in the various php5/ext/.../CREDITS and 6 | php5/sapi/.../CREDITS files 7 | 8 | if you want to change an entry you have to edit the appropriate 9 | CREDITS file instead 10 | 11 | */ 12 | 13 | CREDIT_LINE("AOLserver", "Sascha Schumann"); 14 | CREDIT_LINE("Apache 1.3 (apache_hooks)", "Rasmus Lerdorf, Zeev Suraski, Stig Bakken, David Sklar, George Schlossnagle, Lukas Schroeder"); 15 | CREDIT_LINE("Apache 1.3", "Rasmus Lerdorf, Zeev Suraski, Stig Bakken, David Sklar"); 16 | CREDIT_LINE("Apache 2.0 Filter", "Sascha Schumann, Aaron Bannert"); 17 | CREDIT_LINE("Apache 2.0 Handler", "Ian Holsman, Justin Erenkrantz (based on Apache 2.0 Filter code)"); 18 | CREDIT_LINE("Caudium / Roxen", "David Hedbor"); 19 | CREDIT_LINE("CGI / FastCGI", "Rasmus Lerdorf, Stig Bakken, Shane Caraveo, Dmitry Stogov"); 20 | CREDIT_LINE("CLI", "Edin Kadribasic, Marcus Boerger, Johannes Schlueter"); 21 | CREDIT_LINE("Continuity", "Alex Leigh (based on nsapi code)"); 22 | CREDIT_LINE("Embed", "Edin Kadribasic"); 23 | CREDIT_LINE("FastCGI Process Manager", "Andrei Nigmatulin, dreamcat4, Antony Dovgal, Jerome Loyet"); 24 | CREDIT_LINE("ISAPI", "Andi Gutmans, Zeev Suraski"); 25 | CREDIT_LINE("litespeed", "George Wang"); 26 | CREDIT_LINE("NSAPI", "Jayakumar Muthukumarasamy, Uwe Schindler"); 27 | CREDIT_LINE("phttpd", "Thies C. Arntzen"); 28 | CREDIT_LINE("pi3web", "Holger Zimmermann"); 29 | CREDIT_LINE("Sendmail Milter", "Harald Radi"); 30 | CREDIT_LINE("thttpd", "Sascha Schumann"); 31 | CREDIT_LINE("tux", "Sascha Schumann"); 32 | CREDIT_LINE("WebJames", "Alex Waugh"); 33 | -------------------------------------------------------------------------------- /deps/include/ext/standard/crypt_freesec.h: -------------------------------------------------------------------------------- 1 | /* $Id: crypt_freesec.h 265472 2008-08-25 14:37:07Z pajoye $ */ 2 | 3 | #ifndef _CRYPT_FREESEC_H 4 | #define _CRYPT_FREESEC_H 5 | 6 | #if PHP_WIN32 7 | # include "win32/php_stdint.h" 8 | # ifndef inline 9 | # define inline __inline 10 | # endif 11 | #else 12 | # include "php_config.h" 13 | # if HAVE_INTTYPES_H 14 | # include 15 | # elif HAVE_STDINT_H 16 | # include 17 | # endif 18 | # ifndef HAVE_UINT32_T 19 | # if SIZEOF_INT == 4 20 | typedef unsigned int uint32_t; 21 | # elif SIZEOF_LONG == 4 22 | typedef unsigned long int uint32_t; 23 | # endif 24 | # endif 25 | #endif 26 | 27 | #define MD5_HASH_MAX_LEN 120 28 | 29 | struct php_crypt_extended_data { 30 | int initialized; 31 | uint32_t saltbits; 32 | uint32_t old_salt; 33 | uint32_t en_keysl[16], en_keysr[16]; 34 | uint32_t de_keysl[16], de_keysr[16]; 35 | uint32_t old_rawkey0, old_rawkey1; 36 | char output[21]; 37 | }; 38 | 39 | /* 40 | * _crypt_extended_init() must be called explicitly before first use of 41 | * _crypt_extended_r(). 42 | */ 43 | 44 | void _crypt_extended_init(void); 45 | 46 | char *_crypt_extended_r(const char *key, const char *setting, 47 | struct php_crypt_extended_data *data); 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /deps/include/ext/standard/css.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: Colin Viebrock | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: css.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef CSS_H 22 | #define CSS_H 23 | 24 | PHPAPI void php_info_print_css(TSRMLS_D); 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /deps/include/ext/standard/cyr_convert.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Kirill Maximov | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: cyr_convert.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef CYR_CONVERT_H 22 | #define CYR_CONVERT_H 23 | 24 | PHP_FUNCTION(convert_cyr_string); 25 | 26 | #endif /* CYR_CONVERT_H */ 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /deps/include/ext/standard/datetime.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: Andi Gutmans | 16 | | Zeev Suraski | 17 | +----------------------------------------------------------------------+ 18 | */ 19 | 20 | /* $Id: datetime.h 293036 2010-01-03 09:23:27Z sebastian $ */ 21 | 22 | #ifndef DATETIME_H 23 | #define DATETIME_H 24 | 25 | #if HAVE_STRPTIME 26 | PHP_FUNCTION(strptime); 27 | #endif 28 | 29 | PHPAPI char *php_std_date(time_t t TSRMLS_DC); 30 | 31 | #endif /* DATETIME_H */ 32 | -------------------------------------------------------------------------------- /deps/include/ext/standard/dl.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: Brian Schaffner | 16 | | Shane Caraveo | 17 | | Zeev Suraski | 18 | +----------------------------------------------------------------------+ 19 | */ 20 | 21 | /* $Id: dl.h 293036 2010-01-03 09:23:27Z sebastian $ */ 22 | 23 | #ifndef DL_H 24 | #define DL_H 25 | 26 | PHPAPI int php_load_extension(char *filename, int type, int start_now TSRMLS_DC); 27 | PHPAPI void php_dl(char *file, int type, zval *return_value, int start_now TSRMLS_DC); 28 | 29 | /* dynamic loading functions */ 30 | PHPAPI PHP_FUNCTION(dl); 31 | 32 | PHP_MINFO_FUNCTION(dl); 33 | 34 | #endif /* DL_H */ 35 | -------------------------------------------------------------------------------- /deps/include/ext/standard/exec.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Rasmus Lerdorf | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: exec.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef EXEC_H 22 | #define EXEC_H 23 | 24 | PHP_FUNCTION(system); 25 | PHP_FUNCTION(exec); 26 | PHP_FUNCTION(escapeshellcmd); 27 | PHP_FUNCTION(escapeshellarg); 28 | PHP_FUNCTION(passthru); 29 | PHP_FUNCTION(shell_exec); 30 | PHP_FUNCTION(proc_open); 31 | PHP_FUNCTION(proc_get_status); 32 | PHP_FUNCTION(proc_close); 33 | PHP_FUNCTION(proc_terminate); 34 | PHP_FUNCTION(proc_nice); 35 | PHP_MINIT_FUNCTION(proc_open); 36 | 37 | PHPAPI char *php_escape_shell_cmd(char *); 38 | PHPAPI char *php_escape_shell_arg(char *); 39 | PHPAPI int php_exec(int type, char *cmd, zval *array, zval *return_value TSRMLS_DC); 40 | 41 | #endif /* EXEC_H */ 42 | -------------------------------------------------------------------------------- /deps/include/ext/standard/flock_compat.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Sascha Schumann | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: flock_compat.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef FLOCK_COMPAT_H 22 | #define FLOCK_COMPAT_H 23 | 24 | /* php_flock internally uses fcntl whther or not flock is available 25 | * This way our php_flock even works on NFS files. 26 | * More info: /usr/src/linux/Documentation 27 | */ 28 | PHPAPI int php_flock(int fd, int operation); 29 | 30 | #ifndef HAVE_FLOCK 31 | # define LOCK_SH 1 32 | # define LOCK_EX 2 33 | # define LOCK_NB 4 34 | # define LOCK_UN 8 35 | PHPAPI int flock(int fd, int operation); 36 | #endif 37 | 38 | /* Userland LOCK_* constants */ 39 | #define PHP_LOCK_SH 1 40 | #define PHP_LOCK_EX 2 41 | #define PHP_LOCK_UN 3 42 | #define PHP_LOCK_NB 4 43 | 44 | #ifdef PHP_WIN32 45 | # ifdef EWOULDBLOCK 46 | # undef EWOULDBLOCK 47 | # endif 48 | # define EWOULDBLOCK WSAEWOULDBLOCK 49 | # define fsync _commit 50 | # define ftruncate(a, b) chsize(a, b) 51 | #endif /* defined(PHP_WIN32) */ 52 | 53 | #if !HAVE_INET_ATON 54 | #if HAVE_NETINET_IN_H 55 | #include 56 | #endif 57 | #if HAVE_ARPA_INET_H 58 | #include 59 | #endif 60 | 61 | #ifndef PHP_WIN32 62 | extern int inet_aton(const char *, struct in_addr *); 63 | #endif 64 | #endif 65 | 66 | #endif /* FLOCK_COMPAT_H */ 67 | -------------------------------------------------------------------------------- /deps/include/ext/standard/formatted_print.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/deps/include/ext/standard/formatted_print.c -------------------------------------------------------------------------------- /deps/include/ext/standard/fsock.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: Paul Panotzki - Bunyip Information Systems | 16 | | Jim Winstead | 17 | | Wez Furlong | 18 | +----------------------------------------------------------------------+ 19 | */ 20 | 21 | /* $Id: fsock.h 293036 2010-01-03 09:23:27Z sebastian $ */ 22 | 23 | /* Synced with php 3.0 revision 1.24 1999-06-18 [ssb] */ 24 | 25 | #ifndef FSOCK_H 26 | #define FSOCK_H 27 | 28 | #include "file.h" 29 | 30 | #include "php_network.h" 31 | 32 | PHP_FUNCTION(fsockopen); 33 | PHP_FUNCTION(pfsockopen); 34 | 35 | /* 36 | * Local variables: 37 | * tab-width: 4 38 | * c-basic-offset: 4 39 | * End: 40 | * vim: sw=4 ts=4 41 | */ 42 | #endif /* FSOCK_H */ 43 | -------------------------------------------------------------------------------- /deps/include/ext/standard/head.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Rasmus Lerdorf | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: head.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef HEAD_H 22 | #define HEAD_H 23 | 24 | extern PHP_RINIT_FUNCTION(head); 25 | PHP_FUNCTION(header); 26 | PHP_FUNCTION(header_remove); 27 | PHP_FUNCTION(setcookie); 28 | PHP_FUNCTION(setrawcookie); 29 | PHP_FUNCTION(headers_sent); 30 | PHP_FUNCTION(headers_list); 31 | 32 | PHPAPI int php_header(TSRMLS_D); 33 | PHPAPI int php_setcookie(char *name, int name_len, char *value, int value_len, time_t expires, char *path, int path_len, char *domain, int domain_len, int secure, int url_encode, int httponly TSRMLS_DC); 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /deps/include/ext/standard/html.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/deps/include/ext/standard/html.c -------------------------------------------------------------------------------- /deps/include/ext/standard/html.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Rasmus Lerdorf | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: html.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef HTML_H 22 | #define HTML_H 23 | 24 | #define ENT_HTML_QUOTE_NONE 0 25 | #define ENT_HTML_QUOTE_SINGLE 1 26 | #define ENT_HTML_QUOTE_DOUBLE 2 27 | #define ENT_HTML_IGNORE_ERRORS 4 28 | 29 | #define ENT_COMPAT ENT_HTML_QUOTE_DOUBLE 30 | #define ENT_QUOTES (ENT_HTML_QUOTE_DOUBLE | ENT_HTML_QUOTE_SINGLE) 31 | #define ENT_NOQUOTES ENT_HTML_QUOTE_NONE 32 | #define ENT_IGNORE ENT_HTML_IGNORE_ERRORS 33 | 34 | void register_html_constants(INIT_FUNC_ARGS); 35 | 36 | PHP_FUNCTION(htmlspecialchars); 37 | PHP_FUNCTION(htmlentities); 38 | PHP_FUNCTION(htmlspecialchars_decode); 39 | PHP_FUNCTION(html_entity_decode); 40 | PHP_FUNCTION(get_html_translation_table); 41 | 42 | PHPAPI char *php_escape_html_entities(unsigned char *old, int oldlen, int *newlen, int all, int quote_style, char *hint_charset TSRMLS_DC); 43 | PHPAPI char *php_escape_html_entities_ex(unsigned char *old, int oldlen, int *newlen, int all, int quote_style, char *hint_charset, zend_bool double_encode TSRMLS_DC); 44 | PHPAPI char *php_unescape_html_entities(unsigned char *old, int oldlen, int *newlen, int all, int quote_style, char *hint_charset TSRMLS_DC); 45 | 46 | #endif /* HTML_H */ 47 | -------------------------------------------------------------------------------- /deps/include/ext/standard/math.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/deps/include/ext/standard/math.c -------------------------------------------------------------------------------- /deps/include/ext/standard/md5.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Alexander Peslyak (Solar Designer) | 16 | | Rasmus Lerdorf | 17 | +----------------------------------------------------------------------+ 18 | */ 19 | 20 | /* $Id: md5.h 293036 2010-01-03 09:23:27Z sebastian $ */ 21 | 22 | #ifndef MD5_H 23 | #define MD5_H 24 | 25 | PHPAPI void make_digest(char *md5str, const unsigned char *digest); 26 | PHPAPI void make_digest_ex(char *md5str, const unsigned char *digest, int len); 27 | 28 | PHP_NAMED_FUNCTION(php_if_md5); 29 | PHP_NAMED_FUNCTION(php_if_md5_file); 30 | 31 | #include "ext/standard/basic_functions.h" 32 | 33 | /* 34 | * This is an OpenSSL-compatible implementation of the RSA Data Security, 35 | * Inc. MD5 Message-Digest Algorithm (RFC 1321). 36 | * 37 | * Written by Solar Designer in 2001, and placed 38 | * in the public domain. There's absolutely no warranty. 39 | * 40 | * See md5.c for more information. 41 | */ 42 | 43 | /* MD5 context. */ 44 | typedef struct { 45 | php_uint32 lo, hi; 46 | php_uint32 a, b, c, d; 47 | unsigned char buffer[64]; 48 | php_uint32 block[16]; 49 | } PHP_MD5_CTX; 50 | 51 | PHPAPI void PHP_MD5Init(PHP_MD5_CTX *ctx); 52 | PHPAPI void PHP_MD5Update(PHP_MD5_CTX *ctx, const void *data, size_t size); 53 | PHPAPI void PHP_MD5Final(unsigned char *result, PHP_MD5_CTX *ctx); 54 | 55 | #endif 56 | -------------------------------------------------------------------------------- /deps/include/ext/standard/microtime.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Paul Panotzki - Bunyip Information Systems | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: microtime.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef MICROTIME_H 22 | #define MICROTIME_H 23 | 24 | #ifdef HAVE_GETTIMEOFDAY 25 | PHP_FUNCTION(microtime); 26 | PHP_FUNCTION(gettimeofday); 27 | #endif 28 | #ifdef HAVE_GETRUSAGE 29 | PHP_FUNCTION(getrusage); 30 | #endif 31 | 32 | #endif /* MICROTIME_H */ 33 | -------------------------------------------------------------------------------- /deps/include/ext/standard/pack.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Rasmus Lerdorf | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: pack.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef PACK_H 22 | #define PACK_H 23 | 24 | PHP_MINIT_FUNCTION(pack); 25 | PHP_FUNCTION(pack); 26 | PHP_FUNCTION(unpack); 27 | 28 | #endif /* PACK_H */ 29 | -------------------------------------------------------------------------------- /deps/include/ext/standard/pageinfo.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Jim Winstead | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: pageinfo.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef PAGEINFO_H 22 | #define PAGEINFO_H 23 | 24 | PHP_FUNCTION(getmyuid); 25 | PHP_FUNCTION(getmygid); 26 | PHP_FUNCTION(getmypid); 27 | PHP_FUNCTION(getmyinode); 28 | PHP_FUNCTION(getlastmod); 29 | 30 | PHPAPI void php_statpage(TSRMLS_D); 31 | PHPAPI long php_getlastmod(TSRMLS_D); 32 | extern long php_getuid(void); 33 | extern long php_getgid(void); 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /deps/include/ext/standard/php_assert.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Thies C. Arntzen | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: php_assert.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef PHP_ASSERT_H 22 | #define PHP_ASSERT_H 23 | 24 | PHP_MINIT_FUNCTION(assert); 25 | PHP_MSHUTDOWN_FUNCTION(assert); 26 | PHP_RINIT_FUNCTION(assert); 27 | PHP_RSHUTDOWN_FUNCTION(assert); 28 | PHP_MINFO_FUNCTION(assert); 29 | PHP_FUNCTION(assert); 30 | PHP_FUNCTION(assert_options); 31 | 32 | #endif /* PHP_ASSERT_H */ 33 | -------------------------------------------------------------------------------- /deps/include/ext/standard/php_browscap.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Zeev Suraski | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: php_browscap.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef PHP_BROWSCAP_H 22 | #define PHP_BROWSCAP_H 23 | 24 | PHP_MINIT_FUNCTION(browscap); 25 | PHP_MSHUTDOWN_FUNCTION(browscap); 26 | 27 | PHP_FUNCTION(get_browser); 28 | 29 | #endif /* PHP_BROWSCAP_H */ 30 | -------------------------------------------------------------------------------- /deps/include/ext/standard/php_crypt.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: Stig Bakken | 16 | | Zeev Suraski | 17 | | Rasmus Lerdorf | 18 | +----------------------------------------------------------------------+ 19 | */ 20 | 21 | /* $Id: php_crypt.h 293036 2010-01-03 09:23:27Z sebastian $ */ 22 | 23 | #ifndef PHP_CRYPT_H 24 | #define PHP_CRYPT_H 25 | 26 | PHP_FUNCTION(crypt); 27 | #if HAVE_CRYPT 28 | PHP_MINIT_FUNCTION(crypt); 29 | PHP_MSHUTDOWN_FUNCTION(crypt); 30 | PHP_RINIT_FUNCTION(crypt); 31 | #endif 32 | 33 | #endif 34 | 35 | /* 36 | * Local variables: 37 | * tab-width: 4 38 | * c-basic-offset: 4 39 | * End: 40 | */ 41 | -------------------------------------------------------------------------------- /deps/include/ext/standard/php_crypt_r.h: -------------------------------------------------------------------------------- 1 | /* $Id: php_crypt_r.h 293036 2010-01-03 09:23:27Z sebastian $ */ 2 | /* 3 | +----------------------------------------------------------------------+ 4 | | PHP Version 5 | 5 | +----------------------------------------------------------------------+ 6 | | Copyright (c) 1997-2010 The PHP Group | 7 | +----------------------------------------------------------------------+ 8 | | This source file is subject to version 3.01 of the PHP license, | 9 | | that is bundled with this package in the file LICENSE, and is | 10 | | available through the world-wide-web at the following url: | 11 | | http://www.php.net/license/3_01.txt | 12 | | If you did not receive a copy of the PHP license and are unable to | 13 | | obtain it through the world-wide-web, please send a note to | 14 | | license@php.net so we can mail you a copy immediately. | 15 | +----------------------------------------------------------------------+ 16 | | Authors: Pierre Alain Joye | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: php_dir.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef PHP_DIR_H 22 | #define PHP_DIR_H 23 | 24 | /* directory functions */ 25 | PHP_MINIT_FUNCTION(dir); 26 | PHP_RINIT_FUNCTION(dir); 27 | PHP_FUNCTION(opendir); 28 | PHP_FUNCTION(closedir); 29 | PHP_FUNCTION(chdir); 30 | #if defined(HAVE_CHROOT) && !defined(ZTS) && ENABLE_CHROOT_FUNC 31 | PHP_FUNCTION(chroot); 32 | #endif 33 | PHP_FUNCTION(getcwd); 34 | PHP_FUNCTION(rewinddir); 35 | PHP_NAMED_FUNCTION(php_if_readdir); 36 | PHP_FUNCTION(getdir); 37 | PHP_FUNCTION(glob); 38 | PHP_FUNCTION(scandir); 39 | 40 | #endif /* PHP_DIR_H */ 41 | -------------------------------------------------------------------------------- /deps/include/ext/standard/php_ext_syslog.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/deps/include/ext/standard/php_ext_syslog.h -------------------------------------------------------------------------------- /deps/include/ext/standard/php_fopen_wrappers.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: Rasmus Lerdorf | 16 | | Jim Winstead | 17 | | Hartmut Holzgraefe | 18 | +----------------------------------------------------------------------+ 19 | */ 20 | 21 | /* $Id: php_fopen_wrappers.h 293036 2010-01-03 09:23:27Z sebastian $ */ 22 | 23 | #ifndef PHP_FOPEN_WRAPPERS_H 24 | #define PHP_FOPEN_WRAPPERS_H 25 | 26 | php_stream *php_stream_url_wrap_http(php_stream_wrapper *wrapper, char *path, char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC); 27 | php_stream *php_stream_url_wrap_ftp(php_stream_wrapper *wrapper, char *path, char *mode, int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC); 28 | extern PHPAPI php_stream_wrapper php_stream_http_wrapper; 29 | extern PHPAPI php_stream_wrapper php_stream_ftp_wrapper; 30 | extern php_stream_wrapper php_stream_php_wrapper; 31 | extern php_stream_wrapper php_plain_files_wrapper; 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /deps/include/ext/standard/php_ftok.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Andrew Sitnikov | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: php_ftok.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef PHP_FTOK_H 22 | #define PHP_FTOK_H 23 | 24 | #if HAVE_FTOK 25 | PHP_FUNCTION(ftok); 26 | #endif 27 | 28 | #endif /* PHP_FTOK_H */ 29 | -------------------------------------------------------------------------------- /deps/include/ext/standard/php_http.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: Sara Golemon | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: php_http.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef PHP_HTTP_H 22 | #define PHP_HTTP_H 23 | 24 | #include "php.h" 25 | #include "php_smart_str.h" 26 | 27 | PHPAPI int php_url_encode_hash_ex(HashTable *ht, smart_str *formstr, 28 | const char *num_prefix, int num_prefix_len, 29 | const char *key_prefix, int key_prefix_len, 30 | const char *key_suffix, int key_suffix_len, 31 | zval *type, char *arg_sep TSRMLS_DC); 32 | #define php_url_encode_hash(ht, formstr) php_url_encode_hash_ex((ht), (formstr), NULL, 0, NULL, 0, NULL, 0, NULL TSRMLS_CC) 33 | 34 | PHP_FUNCTION(http_build_query); 35 | 36 | #endif 37 | 38 | /* 39 | * Local variables: 40 | * tab-width: 4 41 | * c-basic-offset: 4 42 | * End: 43 | * vim600: sw=4 ts=4 fdm=marker 44 | * vim<600: sw=4 ts=4 45 | */ 46 | 47 | -------------------------------------------------------------------------------- /deps/include/ext/standard/php_iptc.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Thies C. Arntzen | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: php_iptc.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef PHP_IPTC_H 22 | #define PHP_IPTC_H 23 | 24 | PHP_FUNCTION(iptcparse); 25 | PHP_FUNCTION(iptcembed); 26 | 27 | #endif /* PHP_IPTC_H */ 28 | -------------------------------------------------------------------------------- /deps/include/ext/standard/php_lcg.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Sascha Schumann | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: php_lcg.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef PHP_LCG_H 22 | #define PHP_LCG_H 23 | 24 | #include "ext/standard/basic_functions.h" 25 | 26 | typedef struct { 27 | php_int32 s1; 28 | php_int32 s2; 29 | int seeded; 30 | } php_lcg_globals; 31 | 32 | PHPAPI double php_combined_lcg(TSRMLS_D); 33 | PHP_FUNCTION(lcg_value); 34 | 35 | PHP_MINIT_FUNCTION(lcg); 36 | 37 | #ifdef ZTS 38 | #define LCG(v) TSRMG(lcg_globals_id, php_lcg_globals *, v) 39 | #else 40 | #define LCG(v) (lcg_globals.v) 41 | #endif 42 | 43 | #endif 44 | -------------------------------------------------------------------------------- /deps/include/ext/standard/php_link.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: php_link.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef PHP_LINK_H 22 | #define PHP_LINK_H 23 | 24 | #if defined(HAVE_SYMLINK) || defined(PHP_WIN32) 25 | 26 | PHP_FUNCTION(link); 27 | PHP_FUNCTION(readlink); 28 | PHP_FUNCTION(linkinfo); 29 | PHP_FUNCTION(symlink); 30 | 31 | #endif 32 | 33 | #endif /* PHP_LINK_H */ 34 | -------------------------------------------------------------------------------- /deps/include/ext/standard/php_mail.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Rasmus Lerdorf | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: php_mail.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef PHP_MAIL_H 22 | #define PHP_MAIL_H 23 | 24 | PHP_FUNCTION(mail); 25 | PHP_MINFO_FUNCTION(mail); 26 | 27 | PHP_FUNCTION(ezmlm_hash); 28 | PHPAPI extern int php_mail(char *to, char *subject, char *message, char *headers, char *extra_cmd TSRMLS_DC); 29 | 30 | #endif /* PHP_MAIL_H */ 31 | -------------------------------------------------------------------------------- /deps/include/ext/standard/php_math.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/deps/include/ext/standard/php_math.h -------------------------------------------------------------------------------- /deps/include/ext/standard/php_metaphone.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Thies C. Arntzen | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: php_metaphone.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef PHP_METAPHONE_H 22 | #define PHP_METAPHONE_H 23 | 24 | PHP_FUNCTION(metaphone); 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /deps/include/ext/standard/php_smart_str_public.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Sascha Schumann | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: php_smart_str_public.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef PHP_SMART_STR_PUBLIC_H 22 | #define PHP_SMART_STR_PUBLIC_H 23 | 24 | #include 25 | 26 | typedef struct { 27 | char *c; 28 | size_t len; 29 | size_t a; 30 | } smart_str; 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /deps/include/ext/standard/php_string.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/deps/include/ext/standard/php_string.h -------------------------------------------------------------------------------- /deps/include/ext/standard/php_type.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Rasmus Lerdorf | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: php_type.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef PHP_TYPE_H 22 | #define PHP_TYPE_H 23 | 24 | PHP_FUNCTION(intval); 25 | PHP_FUNCTION(floatval); 26 | PHP_FUNCTION(strval); 27 | PHP_FUNCTION(gettype); 28 | PHP_FUNCTION(settype); 29 | PHP_FUNCTION(is_null); 30 | PHP_FUNCTION(is_resource); 31 | PHP_FUNCTION(is_bool); 32 | PHP_FUNCTION(is_long); 33 | PHP_FUNCTION(is_float); 34 | PHP_FUNCTION(is_numeric); 35 | PHP_FUNCTION(is_string); 36 | PHP_FUNCTION(is_array); 37 | PHP_FUNCTION(is_object); 38 | PHP_FUNCTION(is_scalar); 39 | PHP_FUNCTION(is_callable); 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /deps/include/ext/standard/php_uuencode.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Ilia Alshanetsky | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: php_uuencode.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef PHP_UUENCODE_H 22 | #define PHP_UUENCODE_H 23 | 24 | PHP_FUNCTION(convert_uudecode); 25 | PHP_FUNCTION(convert_uuencode); 26 | 27 | PHPAPI int php_uudecode(char *src, int src_len, char **dest); 28 | PHPAPI int php_uuencode(char *src, int src_len, char **dest); 29 | 30 | #endif /* PHP_UUENCODE_H */ 31 | 32 | /* 33 | * Local variables: 34 | * tab-width: 4 35 | * c-basic-offset: 4 36 | * End: 37 | */ 38 | -------------------------------------------------------------------------------- /deps/include/ext/standard/php_var.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/deps/include/ext/standard/php_var.h -------------------------------------------------------------------------------- /deps/include/ext/standard/php_versioning.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/deps/include/ext/standard/php_versioning.h -------------------------------------------------------------------------------- /deps/include/ext/standard/proc_open.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Wez Furlong | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | /* $Id: proc_open.h 293036 2010-01-03 09:23:27Z sebastian $ */ 19 | 20 | #ifdef PHP_WIN32 21 | typedef HANDLE php_file_descriptor_t; 22 | typedef DWORD php_process_id_t; 23 | #else 24 | typedef int php_file_descriptor_t; 25 | typedef pid_t php_process_id_t; 26 | #endif 27 | 28 | #define PHP_PROC_OPEN_MAX_DESCRIPTORS 16 29 | 30 | /* Environment block under win32 is a NUL terminated sequence of NUL terminated 31 | * name=value strings. 32 | * Under unix, it is an argv style array. 33 | * */ 34 | typedef struct _php_process_env { 35 | char *envp; 36 | #ifndef PHP_WIN32 37 | char **envarray; 38 | #endif 39 | } php_process_env_t; 40 | 41 | struct php_process_handle { 42 | php_process_id_t child; 43 | #ifdef PHP_WIN32 44 | HANDLE childHandle; 45 | #endif 46 | int npipes; 47 | long pipes[PHP_PROC_OPEN_MAX_DESCRIPTORS]; 48 | char *command; 49 | int is_persistent; 50 | php_process_env_t env; 51 | }; 52 | 53 | -------------------------------------------------------------------------------- /deps/include/ext/standard/quot_print.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Kirill Maximov (kir@rus.net) | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: quot_print.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef QUOT_PRINT_H 22 | #define QUOT_PRINT_H 23 | 24 | PHPAPI unsigned char *php_quot_print_decode(const unsigned char *str, size_t length, size_t *ret_length, int replace_us_by_ws); 25 | PHPAPI unsigned char *php_quot_print_encode(const unsigned char *str, size_t length, size_t *ret_length); 26 | 27 | PHP_FUNCTION(quoted_printable_decode); 28 | PHP_FUNCTION(quoted_printable_encode); 29 | 30 | #endif /* QUOT_PRINT_H */ 31 | -------------------------------------------------------------------------------- /deps/include/ext/standard/sha1.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Stefan Esser | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: sha1.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef SHA1_H 22 | #define SHA1_H 23 | 24 | #include "ext/standard/basic_functions.h" 25 | 26 | /* SHA1 context. */ 27 | typedef struct { 28 | php_uint32 state[5]; /* state (ABCD) */ 29 | php_uint32 count[2]; /* number of bits, modulo 2^64 (lsb first) */ 30 | unsigned char buffer[64]; /* input buffer */ 31 | } PHP_SHA1_CTX; 32 | 33 | PHPAPI void PHP_SHA1Init(PHP_SHA1_CTX *); 34 | PHPAPI void PHP_SHA1Update(PHP_SHA1_CTX *, const unsigned char *, unsigned int); 35 | PHPAPI void PHP_SHA1Final(unsigned char[20], PHP_SHA1_CTX *); 36 | PHPAPI void make_sha1_digest(char *sha1str, unsigned char *digest); 37 | 38 | PHP_FUNCTION(sha1); 39 | PHP_FUNCTION(sha1_file); 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /deps/include/ext/standard/soundex.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/deps/include/ext/standard/soundex.c -------------------------------------------------------------------------------- /deps/include/ext/standard/string.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/deps/include/ext/standard/string.c -------------------------------------------------------------------------------- /deps/include/ext/standard/syslog.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/deps/include/ext/standard/syslog.c -------------------------------------------------------------------------------- /deps/include/ext/standard/uniqid.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/deps/include/ext/standard/uniqid.c -------------------------------------------------------------------------------- /deps/include/ext/standard/uniqid.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/deps/include/ext/standard/uniqid.h -------------------------------------------------------------------------------- /deps/include/ext/standard/url_scanner_ex.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Sascha Schumann | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: url_scanner_ex.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef URL_SCANNER_EX_H 22 | #define URL_SCANNER_EX_H 23 | 24 | PHP_MINIT_FUNCTION(url_scanner_ex); 25 | PHP_MSHUTDOWN_FUNCTION(url_scanner_ex); 26 | 27 | PHP_RINIT_FUNCTION(url_scanner_ex); 28 | PHP_RSHUTDOWN_FUNCTION(url_scanner_ex); 29 | 30 | PHPAPI char *php_url_scanner_adapt_single_url(const char *url, size_t urllen, const char *name, const char *value, size_t *newlen TSRMLS_DC); 31 | PHPAPI int php_url_scanner_add_var(char *name, int name_len, char *value, int value_len, int urlencode TSRMLS_DC); 32 | PHPAPI int php_url_scanner_reset_vars(TSRMLS_D); 33 | 34 | #include "php_smart_str_public.h" 35 | 36 | typedef struct { 37 | /* Used by the mainloop of the scanner */ 38 | smart_str tag; /* read only */ 39 | smart_str arg; /* read only */ 40 | smart_str val; /* read only */ 41 | smart_str buf; 42 | 43 | /* The result buffer */ 44 | smart_str result; 45 | 46 | /* The data which is appended to each relative URL/FORM */ 47 | smart_str form_app, url_app; 48 | 49 | int active; 50 | 51 | char *lookup_data; 52 | int state; 53 | 54 | /* Everything above is zeroed in RINIT */ 55 | HashTable *tags; 56 | } url_adapt_state_ex_t; 57 | 58 | #endif 59 | -------------------------------------------------------------------------------- /deps/include/ext/standard/var.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/deps/include/ext/standard/var.c -------------------------------------------------------------------------------- /deps/include/ext/standard/versioning.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/deps/include/ext/standard/versioning.c -------------------------------------------------------------------------------- /deps/include/main/build-defs.h.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/deps/include/main/build-defs.h.in -------------------------------------------------------------------------------- /deps/include/main/internal_functions.c.in: -------------------------------------------------------------------------------- 1 | /* -*- C -*- 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2007 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: Andi Gutmans | 16 | | Zeev Suraski | 17 | +----------------------------------------------------------------------+ 18 | */ 19 | 20 | /* $Id: internal_functions.c.in 265279 2008-08-22 12:59:46Z helly $ */ 21 | 22 | #include "php.h" 23 | #include "php_main.h" 24 | #include "zend_modules.h" 25 | #include "zend_compile.h" 26 | #include 27 | #include 28 | #include 29 | 30 | @EXT_INCLUDE_CODE@ 31 | 32 | static zend_module_entry *php_builtin_extensions[] = { 33 | @EXT_MODULE_PTRS@ 34 | }; 35 | 36 | #define EXTCOUNT (sizeof(php_builtin_extensions)/sizeof(zend_module_entry *)) 37 | 38 | PHPAPI int php_register_internal_extensions(TSRMLS_D) 39 | { 40 | return php_register_extensions(php_builtin_extensions, EXTCOUNT TSRMLS_CC); 41 | } 42 | 43 | /* 44 | * Local variables: 45 | * tab-width: 4 46 | * c-basic-offset: 4 47 | * End: 48 | */ 49 | -------------------------------------------------------------------------------- /deps/include/main/php_content_types.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: php_content_types.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef PHP_CONTENT_TYPES_H 22 | #define PHP_CONTENT_TYPES_H 23 | 24 | #define DEFAULT_POST_CONTENT_TYPE "application/x-www-form-urlencoded" 25 | 26 | SAPI_API SAPI_POST_READER_FUNC(php_default_post_reader); 27 | SAPI_API SAPI_POST_HANDLER_FUNC(php_std_post_handler); 28 | int php_startup_sapi_content_types(TSRMLS_D); 29 | int php_setup_sapi_content_types(TSRMLS_D); 30 | 31 | #endif /* PHP_CONTENT_TYPES_H */ 32 | -------------------------------------------------------------------------------- /deps/include/main/php_getopt.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Marcus Boerger | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: php_getopt.h 293721 2010-01-19 10:44:36Z johannes $ */ 20 | 21 | #ifndef PHP_GETOPT_H 22 | #define PHP_GETOPT_H 23 | 24 | #include "php.h" 25 | 26 | #ifdef NETWARE 27 | /* 28 | As NetWare LibC has optind and optarg macros defined in unistd.h our local variables were getting mistakenly preprocessed so undeffing optind and optarg 29 | */ 30 | #undef optarg 31 | #undef optind 32 | #endif 33 | 34 | /* Define structure for one recognized option (both single char and long name). 35 | * If short_open is '-' this is the last option. */ 36 | typedef struct _opt_struct { 37 | char opt_char; 38 | int need_param; 39 | char * opt_name; 40 | } opt_struct; 41 | 42 | BEGIN_EXTERN_C() 43 | /* holds the index of the latest fetched element from the opts array */ 44 | extern PHPAPI int php_optidx; 45 | PHPAPI int php_getopt(int argc, char* const *argv, const opt_struct opts[], char **optarg, int *optind, int show_err, int arg_start); 46 | END_EXTERN_C() 47 | 48 | #endif 49 | 50 | /* 51 | * Local variables: 52 | * tab-width: 4 53 | * c-basic-offset: 4 54 | * End: 55 | * vim600: noet sw=4 ts=4 fdm=marker 56 | * vim<600: noet sw=4 ts=4 57 | */ 58 | -------------------------------------------------------------------------------- /deps/include/main/php_logos.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: php_logos.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | 22 | #ifndef _PHP_LOGOS_H 23 | #define _PHP_LOGOS_H 24 | 25 | BEGIN_EXTERN_C() 26 | PHPAPI int php_register_info_logo(char *logo_string, const char *mimetype, const unsigned char *data, int size); 27 | PHPAPI int php_unregister_info_logo(char *logo_string); 28 | END_EXTERN_C() 29 | 30 | int php_init_info_logos(void); 31 | int php_shutdown_info_logos(void); 32 | int php_info_logos(const char *logo_string TSRMLS_DC); 33 | 34 | #endif /* _PHP_LOGOS_H */ 35 | -------------------------------------------------------------------------------- /deps/include/main/php_open_temporary_file.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Zeev Suraski | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: php_open_temporary_file.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef PHP_OPEN_TEMPORARY_FILE_H 22 | #define PHP_OPEN_TEMPORARY_FILE_H 23 | 24 | BEGIN_EXTERN_C() 25 | PHPAPI FILE *php_open_temporary_file(const char *dir, const char *pfx, char **opened_path_p TSRMLS_DC); 26 | PHPAPI int php_open_temporary_fd_ex(const char *dir, const char *pfx, char **opened_path_p, zend_bool open_basedir_check TSRMLS_DC); 27 | PHPAPI int php_open_temporary_fd(const char *dir, const char *pfx, char **opened_path_p TSRMLS_DC); 28 | PHPAPI const char *php_get_temporary_directory(void); 29 | PHPAPI void php_shutdown_temporary_directory(void); 30 | END_EXTERN_C() 31 | 32 | #endif /* PHP_OPEN_TEMPORARY_FILE_H */ 33 | -------------------------------------------------------------------------------- /deps/include/main/php_scandir.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: Shane Caraveo | 16 | | Ilia Alshanetsky | 17 | +----------------------------------------------------------------------+ 18 | */ 19 | 20 | /* $Id: php_scandir.h 293036 2010-01-03 09:23:27Z sebastian $ */ 21 | 22 | #ifndef PHP_SCANDIR_H 23 | #define PHP_SCANDIR_H 24 | 25 | #include 26 | 27 | #ifdef HAVE_SYS_DIR_H 28 | #include 29 | #endif 30 | 31 | #ifdef PHP_WIN32 32 | #include "config.w32.h" 33 | #include "win32/readdir.h" 34 | #else 35 | #include 36 | #endif 37 | 38 | #ifdef HAVE_DIRENT_H 39 | #include 40 | #endif 41 | 42 | #ifdef HAVE_SCANDIR 43 | #define php_scandir scandir 44 | #else 45 | PHPAPI int php_scandir(const char *dirname, struct dirent **namelist[], int (*selector) (const struct dirent *entry), int (*compare) (const struct dirent **a, const struct dirent **b)); 46 | #endif 47 | 48 | #ifdef HAVE_ALPHASORT 49 | #define php_alphasort alphasort 50 | #else 51 | PHPAPI int php_alphasort(const struct dirent **a, const struct dirent **b); 52 | #endif 53 | 54 | #endif /* PHP_SCANDIR_H */ 55 | -------------------------------------------------------------------------------- /deps/include/main/php_sprintf.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/deps/include/main/php_sprintf.c -------------------------------------------------------------------------------- /deps/include/main/php_syslog.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: php_syslog.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef PHP_SYSLOG_H 22 | #define PHP_SYSLOG_H 23 | 24 | #ifdef PHP_WIN32 25 | #include "win32/syslog.h" 26 | #else 27 | #include 28 | #ifdef HAVE_SYSLOG_H 29 | #include 30 | #endif 31 | #endif 32 | 33 | /* 34 | * The SCO OpenServer 5 Development System (not the UDK) 35 | * defines syslog to std_syslog. 36 | */ 37 | 38 | #ifdef syslog 39 | 40 | #ifdef HAVE_STD_SYSLOG 41 | #define php_syslog std_syslog 42 | #endif 43 | 44 | #undef syslog 45 | 46 | #endif 47 | 48 | #ifndef php_syslog 49 | #define php_syslog syslog 50 | #endif 51 | 52 | #endif 53 | -------------------------------------------------------------------------------- /deps/include/main/php_ticks.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Stig Bakken | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: php_ticks.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef PHP_TICKS_H 22 | #define PHP_TICKS_H 23 | 24 | int php_startup_ticks(TSRMLS_D); 25 | void php_deactivate_ticks(TSRMLS_D); 26 | void php_shutdown_ticks(TSRMLS_D); 27 | void php_run_ticks(int count); 28 | 29 | BEGIN_EXTERN_C() 30 | PHPAPI void php_add_tick_function(void (*func)(int)); 31 | PHPAPI void php_remove_tick_function(void (*func)(int)); 32 | END_EXTERN_C() 33 | 34 | #endif 35 | 36 | /* 37 | * Local variables: 38 | * tab-width: 4 39 | * c-basic-offset: 4 40 | * End: 41 | */ 42 | -------------------------------------------------------------------------------- /deps/include/main/php_variables.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: Rasmus Lerdorf | 16 | | Zeev Suraski | 17 | +----------------------------------------------------------------------+ 18 | */ 19 | 20 | /* $Id: php_variables.h 293036 2010-01-03 09:23:27Z sebastian $ */ 21 | 22 | #ifndef PHP_VARIABLES_H 23 | #define PHP_VARIABLES_H 24 | 25 | #include "php.h" 26 | #include "SAPI.h" 27 | 28 | #define PARSE_POST 0 29 | #define PARSE_GET 1 30 | #define PARSE_COOKIE 2 31 | #define PARSE_STRING 3 32 | #define PARSE_ENV 4 33 | #define PARSE_SERVER 5 34 | #define PARSE_SESSION 6 35 | 36 | BEGIN_EXTERN_C() 37 | void php_startup_auto_globals(TSRMLS_D); 38 | extern PHPAPI void (*php_import_environment_variables)(zval *array_ptr TSRMLS_DC); 39 | PHPAPI void php_register_variable(char *var, char *val, zval *track_vars_array TSRMLS_DC); 40 | /* binary-safe version */ 41 | PHPAPI void php_register_variable_safe(char *var, char *val, int val_len, zval *track_vars_array TSRMLS_DC); 42 | PHPAPI void php_register_variable_ex(char *var, zval *val, zval *track_vars_array TSRMLS_DC); 43 | 44 | int php_hash_environment(TSRMLS_D); 45 | END_EXTERN_C() 46 | 47 | #define NUM_TRACK_VARS 6 48 | 49 | #endif /* PHP_VARIABLES_H */ 50 | -------------------------------------------------------------------------------- /deps/include/main/php_version.h: -------------------------------------------------------------------------------- 1 | /* automatically generated by configure */ 2 | /* edit configure.in to change version number */ 3 | #define PHP_MAJOR_VERSION 5 4 | #define PHP_MINOR_VERSION 3 5 | #define PHP_RELEASE_VERSION 3 6 | #define PHP_EXTRA_VERSION "" 7 | #define PHP_VERSION "5.3.3" 8 | #define PHP_VERSION_ID 50303 9 | -------------------------------------------------------------------------------- /deps/include/main/safe_mode.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: safe_mode.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef SAFE_MODE_H 22 | #define SAFE_MODE_H 23 | 24 | /* mode's for php_checkuid() */ 25 | #define CHECKUID_DISALLOW_FILE_NOT_EXISTS 0 26 | #define CHECKUID_ALLOW_FILE_NOT_EXISTS 1 27 | #define CHECKUID_CHECK_FILE_AND_DIR 2 28 | #define CHECKUID_ALLOW_ONLY_DIR 3 29 | #define CHECKUID_CHECK_MODE_PARAM 4 30 | #define CHECKUID_ALLOW_ONLY_FILE 5 31 | 32 | /* flags for php_checkuid_ex() */ 33 | #define CHECKUID_NO_ERRORS 0x01 34 | 35 | BEGIN_EXTERN_C() 36 | PHPAPI int php_checkuid(const char *filename, const char *fopen_mode, int mode); 37 | PHPAPI int php_checkuid_ex(const char *filename, const char *fopen_mode, int mode, int flags); 38 | PHPAPI char *php_get_current_user(void); 39 | END_EXTERN_C() 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /deps/include/main/snprintf.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/deps/include/main/snprintf.h -------------------------------------------------------------------------------- /deps/include/main/spprintf.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Marcus Boerger | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: spprintf.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | /* 22 | 23 | The pbuf parameter of all spprintf version receives a pointer to the allocated 24 | buffer. This buffer must be freed manually after usage using efree() function. 25 | The buffer will allways be terminated by a zero character. When pbuf is NULL 26 | the function can be used to calculate the required size of the buffer but for 27 | that purpose snprintf is faster. When both pbuf and the return value are 0 28 | than you are out of memory. 29 | 30 | There is also snprintf: See difference explained in snprintf.h 31 | 32 | */ 33 | 34 | #ifndef SPPRINTF_H 35 | #define SPPRINTF_H 36 | 37 | #include "snprintf.h" 38 | 39 | BEGIN_EXTERN_C() 40 | PHPAPI int spprintf( char **pbuf, size_t max_len, const char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, 3, 4); 41 | 42 | PHPAPI int vspprintf(char **pbuf, size_t max_len, const char *format, va_list ap) PHP_ATTRIBUTE_FORMAT(printf, 3, 0); 43 | END_EXTERN_C() 44 | 45 | #endif /* SNPRINTF_H */ 46 | 47 | /* 48 | * Local variables: 49 | * tab-width: 4 50 | * c-basic-offset: 4 51 | * End: 52 | */ 53 | -------------------------------------------------------------------------------- /deps/include/main/streams/php_stream_glob_wrapper.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Marcus Boerger | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: php_stream_glob_wrapper.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | PHPAPI extern php_stream_wrapper php_glob_stream_wrapper; 22 | PHPAPI extern php_stream_ops php_glob_stream_ops; 23 | 24 | BEGIN_EXTERN_C() 25 | 26 | PHPAPI char* _php_glob_stream_get_path(php_stream *stream, int copy, int *plen STREAMS_DC TSRMLS_DC); 27 | #define php_glob_stream_get_path(stream, copy, plen) _php_glob_stream_get_path((stream), (copy), (plen) STREAMS_CC TSRMLS_CC) 28 | 29 | PHPAPI char* _php_glob_stream_get_pattern(php_stream *stream, int copy, int *plen STREAMS_DC TSRMLS_DC); 30 | #define php_glob_stream_get_pattern(stream, copy, plen) _php_glob_stream_get_pattern((stream), (copy), (plen) STREAMS_CC TSRMLS_CC) 31 | 32 | PHPAPI int _php_glob_stream_get_count(php_stream *stream, int *pflags STREAMS_DC TSRMLS_DC); 33 | #define php_glob_stream_get_count(stream, pflags) _php_glob_stream_get_count((stream), (pflags) STREAMS_CC TSRMLS_CC) 34 | 35 | END_EXTERN_C() 36 | 37 | /* 38 | * Local variables: 39 | * tab-width: 4 40 | * c-basic-offset: 4 41 | * End: 42 | * vim600: sw=4 ts=4 fdm=marker 43 | * vim<600: sw=4 ts=4 44 | */ 45 | -------------------------------------------------------------------------------- /deps/include/main/streams/php_stream_userspace.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Wez Furlong | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: php_stream_userspace.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | 22 | /* for user-space streams */ 23 | PHPAPI extern php_stream_ops php_stream_userspace_ops; 24 | PHPAPI extern php_stream_ops php_stream_userspace_dir_ops; 25 | #define PHP_STREAM_IS_USERSPACE &php_stream_userspace_ops 26 | #define PHP_STREAM_IS_USERSPACE_DIR &php_stream_userspace_dir_ops 27 | 28 | /* 29 | * Local variables: 30 | * tab-width: 4 31 | * c-basic-offset: 4 32 | * End: 33 | * vim600: sw=4 ts=4 fdm=marker 34 | * vim<600: sw=4 ts=4 35 | */ 36 | -------------------------------------------------------------------------------- /deps/include/main/win32_internal_function_disabled.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Pierre A. Joye | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: win32_internal_function_disabled.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | /* 5 means the min version is 5 (XP/2000), 6 (2k8/vista), etc. */ 22 | 23 | /* 24 | Windows Server 2008 6.0 25 | Windows Vista 6.0 26 | Windows Server 2003 R2 5.2 27 | Windows Server 2003 5.2 28 | Windows XP 5.1 29 | Windows 2000 5.0 30 | */ 31 | static const char *function_name_5[] = {"link", NULL}; 32 | const int function_name_cnt_5 = 1; 33 | static const char *function_name_6[] = {"readlink", "symlink", NULL}; 34 | const int function_name_cnt_6 = 2; 35 | -------------------------------------------------------------------------------- /deps/include/pthreads-win32/md5.sum: -------------------------------------------------------------------------------- 1 | 073c29857b7ac652eb8ffe7468fd6d21 pthread.h 2 | cb87e52a97ab095a92f7e30f5af21985 sched.h 3 | 3a6e2bd34633c620928c031f20d373d9 semaphore.h 4 | -------------------------------------------------------------------------------- /deps/include/stub.c: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /deps/include/win32/EngineSelect.bat: -------------------------------------------------------------------------------- 1 | @if exist ..\ZendEngine2\OBJECTS2_HOWTO ( 2 | move ..\Zend ..\ZendEngine1 3 | move ..\ZendEngine2 ..\Zend 4 | echo "PLEASE RESTART VISUAL C++ TO RELOAD THE ZEND PROJECT." 5 | exit 1 ) 6 | -------------------------------------------------------------------------------- /deps/include/win32/build/DSP.README: -------------------------------------------------------------------------------- 1 | MSVC++ project file generation 2 | ============================== 3 | 4 | These files are only intended for use in debugging and profiling, 5 | but can be used to create working binaries. However, they are very 6 | unlikely to match the official PHP distributed binaries. 7 | 8 | With this in mind, the script will only generate basic .dsp files 9 | for the modules that are currently configured. 10 | 11 | The switch for project file generation is a buildconf switch and 12 | not a configure switch: 13 | 14 | > buildconf --add-project-files 15 | > configure ... 16 | 17 | The resulting workspace files should appear at /win32/phpdll[ts].dsw 18 | and (if any shared modules are configured) at /win32/php_modules.dsw, 19 | after configure is run. 20 | 21 | If the .dsw files haven't generated in a sane way, the most likely reason 22 | will be that the template files have become corrupted. They need DOS 23 | line endings (CR/LF) in order to function. The affected files are: 24 | 25 | /win32/build/block.template.dsw 26 | /win32/build/template.dsp 27 | /win32/build/template.dsw 28 | 29 | Simply save them with DOS line endings, and bug it to me if basic 30 | project file generation still fails (as in, you ran the command and 31 | configure again after saving, and you have a working copy of MSVS 32 | installed, but clicking on the workspace(s) doesn't give you anything). 33 | 34 | - Steph 35 | sfox@php.net 36 | 37 | July 2008 38 | -------------------------------------------------------------------------------- /deps/include/win32/build/block.template.dsw: -------------------------------------------------------------------------------- 1 | 2 | Project: "EXTNAME"=..\ADDRESS - Package Owner=<4> 3 | 4 | Package=<5> 5 | {{{ 6 | }}} 7 | 8 | Package=<4> 9 | {{{ 10 | Begin Project Dependency 11 | Project_Dep_Name php5ts 12 | End Project Dependency 13 | }}} 14 | 15 | ############################################################################### 16 | -------------------------------------------------------------------------------- /deps/include/win32/build/configure.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | cscript /nologo configure.js %* 3 | -------------------------------------------------------------------------------- /deps/include/win32/build/configure.tail: -------------------------------------------------------------------------------- 1 | // vim:ft=javascript 2 | // $Id: configure.tail 271838 2008-12-25 00:09:49Z pajoye $ 3 | // tail end of configure 4 | 5 | if (sapi_enabled.length < 1) { 6 | MESSAGE(""); 7 | ERROR("No SAPI selected, please enable at least one SAPI."); 8 | } 9 | 10 | generate_files(); 11 | 12 | -------------------------------------------------------------------------------- /deps/include/win32/build/deplister.c: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Wez Furlong | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: deplister.c 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | /* This little application will list the DLL dependencies for a PE 22 | * module to it's stdout for use by distro/installer building tools */ 23 | 24 | #include 25 | #include 26 | 27 | BOOL CALLBACK StatusRoutine(IMAGEHLP_STATUS_REASON reason, 28 | PSTR image_name, PSTR dll_name, 29 | ULONG va, ULONG param) 30 | { 31 | switch (reason) { 32 | case BindImportModuleFailed: 33 | printf("%s,NOTFOUND\n", dll_name); 34 | return TRUE; 35 | 36 | case BindImportModule: 37 | printf("%s,OK\n", dll_name); 38 | return TRUE; 39 | } 40 | return TRUE; 41 | } 42 | 43 | /* usage: 44 | * deplister.exe path\to\module.exe path\to\symbols\root 45 | * */ 46 | 47 | int main(int argc, char *argv[]) 48 | { 49 | return BindImageEx(BIND_NO_BOUND_IMPORTS | BIND_NO_UPDATE | BIND_ALL_IMAGES, 50 | argv[1], NULL, argv[2], StatusRoutine); 51 | } 52 | 53 | /* 54 | * Local variables: 55 | * tab-width: 4 56 | * c-basic-offset: 4 57 | * End: 58 | * vim600: noet sw=4 ts=4 fdm=marker 59 | * vim<600: noet sw=4 ts=4 60 | */ 61 | -------------------------------------------------------------------------------- /deps/include/win32/build/php.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/deps/include/win32/build/php.ico -------------------------------------------------------------------------------- /deps/include/win32/build/registersyslog.php: -------------------------------------------------------------------------------- 1 | 45 | -------------------------------------------------------------------------------- /deps/include/win32/build/template.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "TSRM"=..\TSRM\TSRM.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Project: "Zend"=..\Zend\Zend.dsp - Package Owner=<4> 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<4> 25 | {{{ 26 | Begin Project Dependency 27 | Project_Dep_Name TSRM 28 | End Project Dependency 29 | }}} 30 | 31 | ############################################################################### 32 | 33 | Project: "php5ts"=..\win32\php5ts.dsp - Package Owner=<4> 34 | 35 | Package=<5> 36 | {{{ 37 | }}} 38 | 39 | Package=<4> 40 | {{{ 41 | Begin Project Dependency 42 | Project_Dep_Name TSRM 43 | End Project Dependency 44 | Begin Project Dependency 45 | Project_Dep_Name Zend 46 | End Project Dependency 47 | }}} 48 | 49 | ############################################################################### 50 | INSERT 51 | 52 | Global: 53 | 54 | Package=<5> 55 | {{{ 56 | }}} 57 | 58 | Package=<3> 59 | {{{ 60 | }}} 61 | 62 | ############################################################################### 63 | 64 | -------------------------------------------------------------------------------- /deps/include/win32/build/template.rc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/deps/include/win32/build/template.rc -------------------------------------------------------------------------------- /deps/include/win32/build/wsyslog.mc: -------------------------------------------------------------------------------- 1 | MessageId=1 2 | Severity=Success 3 | SymbolicName=PHP_SYSLOG_SUCCESS_TYPE 4 | Language=English 5 | %1 %2 6 | . 7 | 8 | MessageId=2 9 | Severity=Informational 10 | SymbolicName=PHP_SYSLOG_INFO_TYPE 11 | Language=English 12 | %1 %2 13 | . 14 | 15 | MessageId=3 16 | Severity=Warning 17 | SymbolicName=PHP_SYSLOG_WARNING_TYPE 18 | Language=English 19 | %1 %2 20 | . 21 | 22 | MessageId=4 23 | Severity=Error 24 | SymbolicName=PHP_SYSLOG_ERROR_TYPE 25 | Language=English 26 | %1 %2 27 | . 28 | 29 | -------------------------------------------------------------------------------- /deps/include/win32/builddef.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | rem Generate phpts.def file, which exports symbols from our dll that 3 | rem are present in some of the libraries which are compiled statically 4 | rem into PHP 5 | rem $Id: builddef.bat,v 1.4 2003-12-08 12:56:47 rrichards Exp $ 6 | type ..\ext\sqlite\php_sqlite.def 7 | type ..\ext\libxml\php_libxml2.def 8 | -------------------------------------------------------------------------------- /deps/include/win32/flock.h: -------------------------------------------------------------------------------- 1 | #define fsync _commit 2 | #define ftruncate chsize 3 | 4 | /* For flock() emulation */ 5 | 6 | #define LOCK_SH 1 7 | #define LOCK_EX 2 8 | #define LOCK_NB 4 9 | #define LOCK_UN 8 10 | 11 | PHPAPI int flock(int fd, int op); 12 | -------------------------------------------------------------------------------- /deps/include/win32/grp.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Sterling Hughes | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: grp.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | struct group { 22 | char *gr_name; 23 | char *gr_passwd; 24 | int gr_gid; 25 | char **gr_mem; 26 | }; 27 | -------------------------------------------------------------------------------- /deps/include/win32/inet.c: -------------------------------------------------------------------------------- 1 | #include "config.w32.h" 2 | #if (_WIN32_WINNT < 0x0600) /* Vista/2k8 have these functions */ 3 | #include "php.h" 4 | #include 5 | #include 6 | #include 7 | 8 | #include "inet.h" 9 | 10 | PHPAPI int inet_pton(int af, const char* src, void* dst) 11 | { 12 | int address_length; 13 | struct sockaddr_storage sa; 14 | struct sockaddr_in *sin = (struct sockaddr_in *)&sa; 15 | struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&sa; 16 | 17 | switch (af) { 18 | case AF_INET: 19 | address_length = sizeof (struct sockaddr_in); 20 | break; 21 | 22 | case AF_INET6: 23 | address_length = sizeof (struct sockaddr_in6); 24 | break; 25 | 26 | default: 27 | return -1; 28 | } 29 | 30 | if (WSAStringToAddress ((LPTSTR) src, af, NULL, (LPSOCKADDR) &sa, &address_length) == 0) { 31 | switch (af) { 32 | case AF_INET: 33 | memcpy (dst, &sin->sin_addr, sizeof (struct in_addr)); 34 | break; 35 | 36 | case AF_INET6: 37 | memcpy (dst, &sin6->sin6_addr, sizeof (struct in6_addr)); 38 | break; 39 | } 40 | return 1; 41 | } 42 | 43 | return 0; 44 | } 45 | 46 | PHPAPI const char* inet_ntop(int af, const void* src, char* dst, size_t size) 47 | { 48 | int address_length; 49 | DWORD string_length = size; 50 | struct sockaddr_storage sa; 51 | struct sockaddr_in *sin = (struct sockaddr_in *)&sa; 52 | struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&sa; 53 | 54 | memset (&sa, 0, sizeof (sa)); 55 | switch (af) { 56 | case AF_INET: 57 | address_length = sizeof (struct sockaddr_in); 58 | sin->sin_family = af; 59 | memcpy (&sin->sin_addr, src, sizeof (struct in_addr)); 60 | break; 61 | 62 | case AF_INET6: 63 | address_length = sizeof (struct sockaddr_in6); 64 | sin6->sin6_family = af; 65 | memcpy (&sin6->sin6_addr, src, sizeof (struct in6_addr)); 66 | break; 67 | 68 | default: 69 | return NULL; 70 | } 71 | 72 | if (WSAAddressToString ((LPSOCKADDR) &sa, address_length, NULL, dst, &string_length) == 0) { 73 | return dst; 74 | } 75 | 76 | return NULL; 77 | } 78 | 79 | int inet_aton(const char *cp, struct in_addr *inp) { 80 | inp->s_addr = inet_addr(cp); 81 | 82 | if (inp->s_addr == INADDR_NONE) { 83 | return 0; 84 | } 85 | 86 | return 1; 87 | } 88 | #endif 89 | -------------------------------------------------------------------------------- /deps/include/win32/inet.h: -------------------------------------------------------------------------------- 1 | #if _MSC_VER >= 1500 2 | # include 3 | #endif 4 | #include 5 | 6 | #if (_WIN32_WINNT <= 0x500) 7 | PHPAPI int inet_pton(int af, const char* src, void* dst); 8 | PHPAPI const char* inet_ntop(int af, const void* src, char* dst, size_t size); 9 | PHPAPI int inet_aton(const char *cp, struct in_addr *inp); 10 | #endif 11 | -------------------------------------------------------------------------------- /deps/include/win32/param.h: -------------------------------------------------------------------------------- 1 | 2 | /***************************************************************************** 3 | * * 4 | * sys/param.c * 5 | * * 6 | * Freely redistributable and modifiable. Use at your own risk. * 7 | * * 8 | * Copyright 1994 The Downhill Project * 9 | * * 10 | *****************************************************************************/ 11 | #ifndef MAXPATHLEN 12 | #define MAXPATHLEN _MAX_PATH 13 | #endif 14 | #define MAXHOSTNAMELEN 64 15 | #define howmany(x,y) (((x)+((y)-1))/(y)) 16 | #define roundup(x,y) ((((x)+((y)-1))/(y))*(y)) 17 | -------------------------------------------------------------------------------- /deps/include/win32/php5dllts.rc: -------------------------------------------------------------------------------- 1 | //Microsoft Developer Studio generated resource script. 2 | 3 | // 4 | 5 | #include "resource.h" 6 | 7 | 8 | 9 | #define APSTUDIO_READONLY_SYMBOLS 10 | 11 | ///////////////////////////////////////////////////////////////////////////// 12 | 13 | // 14 | 15 | // Generated from the TEXTINCLUDE 2 resource. 16 | 17 | // 18 | 19 | #include "winres.h" 20 | 21 | 22 | 23 | ///////////////////////////////////////////////////////////////////////////// 24 | 25 | #undef APSTUDIO_READONLY_SYMBOLS 26 | 27 | 28 | 29 | ///////////////////////////////////////////////////////////////////////////// 30 | 31 | // English (U.S.) resources 32 | 33 | 34 | 35 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 36 | 37 | #ifdef _WIN32 38 | 39 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 40 | 41 | #pragma code_page(1252) 42 | 43 | #endif //_WIN32 44 | 45 | 46 | 47 | #ifdef APSTUDIO_INVOKED 48 | 49 | ///////////////////////////////////////////////////////////////////////////// 50 | 51 | // 52 | 53 | // TEXTINCLUDE 54 | 55 | // 56 | 57 | 58 | 59 | 1 TEXTINCLUDE DISCARDABLE 60 | 61 | BEGIN 62 | 63 | "resource.h\0" 64 | 65 | END 66 | 67 | 68 | 69 | 2 TEXTINCLUDE DISCARDABLE 70 | 71 | BEGIN 72 | 73 | "#include ""php5dllts.rc2""\r\n" 74 | 75 | "\0" 76 | 77 | END 78 | 79 | 80 | 81 | 3 TEXTINCLUDE DISCARDABLE 82 | 83 | BEGIN 84 | 85 | "\r\n" 86 | 87 | "\0" 88 | 89 | END 90 | 91 | 92 | 93 | #endif // APSTUDIO_INVOKED 94 | 95 | 96 | 97 | #endif // English (U.S.) resources 98 | 99 | ///////////////////////////////////////////////////////////////////////////// 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | #ifndef APSTUDIO_INVOKED 108 | 109 | ///////////////////////////////////////////////////////////////////////////// 110 | 111 | // 112 | 113 | // Generated from the TEXTINCLUDE 3 resource. 114 | 115 | // 116 | 117 | #include "php5dllts.rc2" 118 | 119 | 120 | 121 | ///////////////////////////////////////////////////////////////////////////// 122 | 123 | #endif // not APSTUDIO_INVOKED 124 | 125 | 126 | 127 | -------------------------------------------------------------------------------- /deps/include/win32/php5dllts.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/deps/include/win32/php5dllts.rc2 -------------------------------------------------------------------------------- /deps/include/win32/php5ts.rc: -------------------------------------------------------------------------------- 1 | //Microsoft Developer Studio generated resource script. 2 | 3 | // 4 | 5 | #include "resource.h" 6 | 7 | 8 | 9 | #define APSTUDIO_READONLY_SYMBOLS 10 | 11 | ///////////////////////////////////////////////////////////////////////////// 12 | 13 | // 14 | 15 | // Generated from the TEXTINCLUDE 2 resource. 16 | 17 | // 18 | 19 | #include "winres.h" 20 | 21 | 22 | 23 | ///////////////////////////////////////////////////////////////////////////// 24 | 25 | #undef APSTUDIO_READONLY_SYMBOLS 26 | 27 | 28 | 29 | ///////////////////////////////////////////////////////////////////////////// 30 | 31 | // English (U.S.) resources 32 | 33 | 34 | 35 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 36 | 37 | #ifdef _WIN32 38 | 39 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 40 | 41 | #pragma code_page(1252) 42 | 43 | #endif //_WIN32 44 | 45 | 46 | 47 | #ifdef APSTUDIO_INVOKED 48 | 49 | ///////////////////////////////////////////////////////////////////////////// 50 | 51 | // 52 | 53 | // TEXTINCLUDE 54 | 55 | // 56 | 57 | 58 | 59 | 1 TEXTINCLUDE DISCARDABLE 60 | 61 | BEGIN 62 | 63 | "resource.h\0" 64 | 65 | END 66 | 67 | 68 | 69 | 2 TEXTINCLUDE DISCARDABLE 70 | 71 | BEGIN 72 | 73 | "#include ""php5ts.rc2""\r\n" 74 | 75 | "\0" 76 | 77 | END 78 | 79 | 80 | 81 | 3 TEXTINCLUDE DISCARDABLE 82 | 83 | BEGIN 84 | 85 | "\r\n" 86 | 87 | "\0" 88 | 89 | END 90 | 91 | 92 | 93 | #endif // APSTUDIO_INVOKED 94 | 95 | 96 | 97 | #endif // English (U.S.) resources 98 | 99 | ///////////////////////////////////////////////////////////////////////////// 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | #ifndef APSTUDIO_INVOKED 108 | 109 | ///////////////////////////////////////////////////////////////////////////// 110 | 111 | // 112 | 113 | // Generated from the TEXTINCLUDE 3 resource. 114 | 115 | // 116 | 117 | #include "php5ts.rc2" 118 | 119 | 120 | 121 | ///////////////////////////////////////////////////////////////////////////// 122 | 123 | #endif // not APSTUDIO_INVOKED 124 | 125 | 126 | 127 | -------------------------------------------------------------------------------- /deps/include/win32/php5ts.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/deps/include/win32/php5ts.rc2 -------------------------------------------------------------------------------- /deps/include/win32/php5ts_cli.rc: -------------------------------------------------------------------------------- 1 | //Microsoft Developer Studio generated resource script. 2 | 3 | // 4 | 5 | #include "resource.h" 6 | 7 | 8 | 9 | #define APSTUDIO_READONLY_SYMBOLS 10 | 11 | ///////////////////////////////////////////////////////////////////////////// 12 | 13 | // 14 | 15 | // Generated from the TEXTINCLUDE 2 resource. 16 | 17 | // 18 | 19 | #include "winres.h" 20 | 21 | 22 | 23 | ///////////////////////////////////////////////////////////////////////////// 24 | 25 | #undef APSTUDIO_READONLY_SYMBOLS 26 | 27 | 28 | 29 | ///////////////////////////////////////////////////////////////////////////// 30 | 31 | // English (U.S.) resources 32 | 33 | 34 | 35 | #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) 36 | 37 | #ifdef _WIN32 38 | 39 | LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US 40 | 41 | #pragma code_page(1252) 42 | 43 | #endif //_WIN32 44 | 45 | 46 | 47 | #ifdef APSTUDIO_INVOKED 48 | 49 | ///////////////////////////////////////////////////////////////////////////// 50 | 51 | // 52 | 53 | // TEXTINCLUDE 54 | 55 | // 56 | 57 | 58 | 59 | 1 TEXTINCLUDE DISCARDABLE 60 | 61 | BEGIN 62 | 63 | "resource.h\0" 64 | 65 | END 66 | 67 | 68 | 69 | 2 TEXTINCLUDE DISCARDABLE 70 | 71 | BEGIN 72 | 73 | "#include ""php5ts_cli.rc2""\r\n" 74 | 75 | "\0" 76 | 77 | END 78 | 79 | 80 | 81 | 3 TEXTINCLUDE DISCARDABLE 82 | 83 | BEGIN 84 | 85 | "\r\n" 86 | 87 | "\0" 88 | 89 | END 90 | 91 | 92 | 93 | #endif // APSTUDIO_INVOKED 94 | 95 | 96 | 97 | #endif // English (U.S.) resources 98 | 99 | ///////////////////////////////////////////////////////////////////////////// 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | #ifndef APSTUDIO_INVOKED 108 | 109 | ///////////////////////////////////////////////////////////////////////////// 110 | 111 | // 112 | 113 | // Generated from the TEXTINCLUDE 3 resource. 114 | 115 | // 116 | 117 | #include "php5ts_cli.rc2" 118 | 119 | 120 | 121 | ///////////////////////////////////////////////////////////////////////////// 122 | 123 | #endif // not APSTUDIO_INVOKED 124 | 125 | 126 | 127 | -------------------------------------------------------------------------------- /deps/include/win32/php5ts_cli.rc2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/deps/include/win32/php5ts_cli.rc2 -------------------------------------------------------------------------------- /deps/include/win32/php_registry.h: -------------------------------------------------------------------------------- 1 | #ifndef PHP_REGISTRY_H 2 | #define PHP_REGISTRY_H 3 | 4 | 5 | void UpdateIniFromRegistry(char *path TSRMLS_DC); 6 | char *GetIniPathFromRegistry(); 7 | 8 | #endif /* PHP_REGISTRY_H */ 9 | -------------------------------------------------------------------------------- /deps/include/win32/php_stdbool.h: -------------------------------------------------------------------------------- 1 | #ifndef _STDBOOL_H 2 | #define _STDBOOL_H 3 | #if !defined(__BOOL_DEFINED) 4 | # define bool short 5 | 6 | /* The other macros must be usable in preprocessor directives. */ 7 | # define false 0 8 | # define true 1 9 | # define __bool_true_false_are_defined 1 10 | # endif 11 | #endif /* _STDBOOL_H */ 12 | -------------------------------------------------------------------------------- /deps/include/win32/php_strtoi64.h: -------------------------------------------------------------------------------- 1 | #if _MSC_VERS <= 1300 2 | #include "php.h" 3 | #include "php_stdint.h" 4 | 5 | PHPAPI int64_t _strtoi64(const char *nptr, char **endptr, int base); 6 | #define _strtoui64 _strtoi64 7 | #endif 8 | -------------------------------------------------------------------------------- /deps/include/win32/php_win32_globals.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Wez Furlong | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: php_win32_globals.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | #ifndef PHP_WIN32_GLOBALS_H 22 | #define PHP_WIN32_GLOBALS_H 23 | 24 | /* misc globals for thread-safety under win32 */ 25 | 26 | typedef struct _php_win32_core_globals php_win32_core_globals; 27 | 28 | #ifdef ZTS 29 | # define PW32G(v) TSRMG(php_win32_core_globals_id, php_win32_core_globals*, v) 30 | extern PHPAPI int php_win32_core_globals_id; 31 | #else 32 | # define PW32G(v) (the_php_win32_core_globals.v) 33 | extern PHPAPI struct _php_win32_core_globals the_php_win32_core_globals; 34 | #endif 35 | 36 | struct _php_win32_core_globals { 37 | /* syslog */ 38 | char *log_header; 39 | HANDLE log_source; 40 | 41 | /* time */ 42 | struct timeval starttime; 43 | __int64 lasttime, freq; 44 | 45 | HKEY registry_key; 46 | HANDLE registry_event; 47 | HashTable *registry_directories; 48 | }; 49 | 50 | void php_win32_core_globals_ctor(void *vg TSRMLS_DC); 51 | void php_win32_core_globals_dtor(void *vg TSRMLS_DC); 52 | PHP_RSHUTDOWN_FUNCTION(win32_core_globals); 53 | 54 | #endif 55 | 56 | -------------------------------------------------------------------------------- /deps/include/win32/pws-php5cgi.reg: -------------------------------------------------------------------------------- 1 | REGEDIT4 2 | 3 | [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script Map] 4 | ".php"="[PUT PATH HERE]\\php.exe" 5 | 6 | 7 | -------------------------------------------------------------------------------- /deps/include/win32/pws-php5isapi.reg: -------------------------------------------------------------------------------- 1 | REGEDIT4 2 | 3 | [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script Map] 4 | ".php"="[PUT PATH HERE]\\php5isapi.dll" 5 | 6 | -------------------------------------------------------------------------------- /deps/include/win32/readdir.h: -------------------------------------------------------------------------------- 1 | #ifndef READDIR_H 2 | #define READDIR_H 3 | 4 | 5 | /* 6 | * Structures and types used to implement opendir/readdir/closedir 7 | * on Windows 95/NT. 8 | */ 9 | 10 | #include 11 | 12 | #include 13 | 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | 20 | #define php_readdir_r readdir_r 21 | 22 | /* struct dirent - same as Unix */ 23 | 24 | struct dirent { 25 | long d_ino; /* inode (always 1 in WIN32) */ 26 | off_t d_off; /* offset to this dirent */ 27 | unsigned short d_reclen; /* length of d_name */ 28 | char d_name[_MAX_FNAME + 1]; /* filename (null terminated) */ 29 | }; 30 | 31 | 32 | /* typedef DIR - not the same as Unix */ 33 | typedef struct { 34 | HANDLE handle; /* _findfirst/_findnext handle */ 35 | short offset; /* offset into directory */ 36 | short finished; /* 1 if there are not more files */ 37 | WIN32_FIND_DATA fileinfo; /* from _findfirst/_findnext */ 38 | char *dir; /* the dir we are reading */ 39 | struct dirent dent; /* the dirent to return */ 40 | } DIR; 41 | 42 | /* Function prototypes */ 43 | DIR *opendir(const char *); 44 | struct dirent *readdir(DIR *); 45 | int readdir_r(DIR *, struct dirent *, struct dirent **); 46 | int closedir(DIR *); 47 | int rewinddir(DIR *); 48 | 49 | #endif /* READDIR_H */ 50 | -------------------------------------------------------------------------------- /deps/include/win32/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by php5dllts.rc 4 | // 5 | 6 | // Next default values for new objects 7 | // 8 | #ifdef APSTUDIO_INVOKED 9 | #ifndef APSTUDIO_READONLY_SYMBOLS 10 | #define _APS_NEXT_RESOURCE_VALUE 101 11 | #define _APS_NEXT_COMMAND_VALUE 40001 12 | #define _APS_NEXT_CONTROL_VALUE 1000 13 | #define _APS_NEXT_SYMED_VALUE 101 14 | #endif 15 | #endif 16 | -------------------------------------------------------------------------------- /deps/include/win32/select.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: Wez Furlong | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | /* $Id: select.h 293036 2010-01-03 09:23:27Z sebastian $ */ 20 | 21 | PHPAPI int php_select(int max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv); 22 | 23 | -------------------------------------------------------------------------------- /deps/include/win32/sendmail.h: -------------------------------------------------------------------------------- 1 | #if !defined(sendmail_h) /* Sentry, use file only if it's not already included. */ 2 | #define sendmail_h 3 | #ifndef NETWARE 4 | #include 5 | #endif 6 | 7 | #define HOST_NAME_LEN 256 8 | #define MAX_APPNAME_LENGHT 100 9 | #define MAIL_BUFFER_SIZE (1024*4) /* 4k buffer */ 10 | /* Return values */ 11 | #define MIN_ERROR_INDEX 0 /* Always 0 like SUCCESS */ 12 | #define SUCCESS 0 13 | #define FAILED_TO_PARSE_ARGUMENTS 1 14 | #define FAILED_TO_OPEN_MAILFILE 2 15 | #define FAILED_TO_START_SOCKETS 3 16 | #define FAILED_TO_RESOLVE_HOST 4 17 | #define FAILED_TO_OBTAIN_SOCKET_HANDLE 5 18 | #define FAILED_TO_CONNECT 6 19 | #define FAILED_TO_SEND 7 20 | #define FAILED_TO_RECEIVE 8 21 | #define SMTP_SERVER_ERROR 9 22 | #define FAILED_TO_GET_HOSTNAME 10 23 | #define OUT_OF_MEMORY 11 24 | #define UNKNOWN_ERROR 12 25 | #define BAD_MSG_CONTENTS 13 26 | #define BAD_MSG_SUBJECT 14 27 | #define BAD_MSG_DESTINATION 15 28 | #define BAD_MSG_RPATH 16 29 | #define BAD_MAIL_HOST 17 30 | #define BAD_MSG_FILE 18 31 | #define W32_SM_SENDMAIL_FROM_NOT_SET 19 32 | #define W32_SM_SENDMAIL_FROM_MALFORMED 20 33 | #define W32_SM_PCRE_ERROR 21 34 | #define MAX_ERROR_INDEX 22 /* Always last error message + 1 */ 35 | 36 | 37 | PHPAPI int TSendMail(char *smtpaddr, int *returnerror, char **error_message, 38 | char *RPath, char *Subject, char *mailTo, char *data, 39 | char *mailCc, char *mailBcc, char *mailRPath TSRMLS_DC); 40 | PHPAPI void TSMClose(void); 41 | static int SendText(char *RPath, char *Subject, char *mailTo, char *mailCc, char *mailBcc, char *data, 42 | char *headers, char *headers_lc, char **error_message TSRMLS_DC); 43 | PHPAPI char *GetSMErrorText(int index); 44 | 45 | static int MailConnect(); 46 | static int PostHeader(char *RPath, char *Subject, char *mailTo, char *xheaders TSRMLS_DC); 47 | static int Post(LPCSTR msg); 48 | static int Ack(char **server_response); 49 | static unsigned long GetAddr(LPSTR szHost); 50 | static int FormatEmailAddress(char* Buf, char* EmailAddress, char* FormatString); 51 | #endif /* sendmail_h */ 52 | -------------------------------------------------------------------------------- /deps/include/win32/signal.h: -------------------------------------------------------------------------------- 1 | /* 2 | ** Change here: if you plan to use your own version of 3 | ** the original "#include " produces an infinite reinclusion 4 | ** of this file, instead of including the standard include-file. 5 | ** Under MS Visual Studio, there are occurences in the source where 6 | ** gets included throughout the PHP sources, and this should 7 | ** include THIS file, not the standard one which does not have the 8 | ** additional signals defined below. 9 | ** One way to remove the infinite reinclusion of this file (which is located 10 | ** in ../win32), is to specify the parent directory in which the standard 11 | ** include file is located. 12 | */ 13 | #include <../include/signal.h> 14 | #define SIGALRM 13 15 | #define SIGVTALRM 26 /* virtual time alarm */ 16 | #define SIGPROF 27 /* profiling time alarm */ 17 | -------------------------------------------------------------------------------- /deps/include/win32/sockets.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Authors: Chris Vandomelen | 16 | | Sterling Hughes | 17 | | | 18 | | WinSock: Daniel Beulshausen | 19 | +----------------------------------------------------------------------+ 20 | */ 21 | 22 | /* $Id: sockets.h 293036 2010-01-03 09:23:27Z sebastian $ */ 23 | 24 | /* Code originally from ext/sockets */ 25 | 26 | PHPAPI int socketpair(int domain, int type, int protocol, SOCKET sock[2]); -------------------------------------------------------------------------------- /deps/include/win32/syslog.reg: -------------------------------------------------------------------------------- 1 | REGEDIT4 2 | 3 | [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\PHP-5.1.0-dev] 4 | "TypesSupported"=dword:00000007 5 | "EventMessageFile"="C:\\php5\\php5ts.dll" 6 | -------------------------------------------------------------------------------- /deps/include/win32/time.h: -------------------------------------------------------------------------------- 1 | /***************************************************************************** 2 | * * 3 | * sys/time.h * 4 | * * 5 | * Freely redistributable and modifiable. Use at your own risk. * 6 | * * 7 | * Copyright 1994 The Downhill Project * 8 | * 9 | * Modified by Shane Caraveo for PHP 10 | * 11 | *****************************************************************************/ 12 | #ifndef TIME_H 13 | #define TIME_H 14 | 15 | /* Include stuff ************************************************************ */ 16 | #include 17 | #include "php.h" 18 | 19 | /* Struct stuff ************************************************************* */ 20 | struct timezone { 21 | int tz_minuteswest; 22 | int tz_dsttime; 23 | }; 24 | 25 | 26 | struct itimerval { 27 | struct timeval it_interval; /* next value */ 28 | struct timeval it_value; /* current value */ 29 | }; 30 | 31 | #ifndef timespec 32 | struct timespec 33 | { 34 | time_t tv_sec; /* seconds */ 35 | long tv_nsec; /* nanoseconds */ 36 | }; 37 | #endif 38 | 39 | #define ITIMER_REAL 0 /*generates sigalrm */ 40 | #define ITIMER_VIRTUAL 1 /*generates sigvtalrm */ 41 | #define ITIMER_VIRT 1 /*generates sigvtalrm */ 42 | #define ITIMER_PROF 2 /*generates sigprof */ 43 | 44 | /* Prototype stuff ********************************************************** */ 45 | PHPAPI extern int gettimeofday(struct timeval *time_Info, struct timezone *timezone_Info); 46 | 47 | /* setitimer operates at 100 millisecond resolution */ 48 | PHPAPI extern int setitimer(int which, const struct itimerval *value, 49 | struct itimerval *ovalue); 50 | 51 | PHPAPI int nanosleep( const struct timespec * rqtp, struct timespec * rmtp ); 52 | 53 | #endif 54 | -------------------------------------------------------------------------------- /deps/include/win32/unistd.h: -------------------------------------------------------------------------------- 1 | #ifndef _PHP_WIN32_UNISTD_H 2 | #define _PHP_WIN32_UNISTD_H 3 | PHPAPI int usleep(unsigned int useconds); 4 | #endif 5 | -------------------------------------------------------------------------------- /deps/include/win32/wfile.c: -------------------------------------------------------------------------------- 1 | 2 | /* Function borrowed from the Downhill Project */ 3 | #include "wfile.h" 4 | #include "direct.h" 5 | 6 | int readlink(char *file_Name, char *buf_Mem, int buf_Size) 7 | { 8 | /* See if the file exists */ 9 | if (access(file_Name, WFILE_EXISTS) == -1) { 10 | errno = ENOENT; 11 | } else { 12 | errno = EINVAL; 13 | } 14 | 15 | /* Either way, it's not a link */ 16 | return -1; 17 | } 18 | -------------------------------------------------------------------------------- /deps/include/win32/wfile.h: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | 6 | #define access _access 7 | #define WFILE_EXISTS 0 8 | #ifndef ENOENT 9 | #define ENOENT 136 10 | #endif 11 | #ifndef EINVAL 12 | #define EINVAL 131 13 | #endif 14 | 15 | int readlink(char *, char *, int); 16 | int checkroot(char *path); 17 | -------------------------------------------------------------------------------- /deps/include/win32/winutil.h: -------------------------------------------------------------------------------- 1 | /* 2 | +----------------------------------------------------------------------+ 3 | | PHP Version 5 | 4 | +----------------------------------------------------------------------+ 5 | | Copyright (c) 1997-2010 The PHP Group | 6 | +----------------------------------------------------------------------+ 7 | | This source file is subject to version 3.01 of the PHP license, | 8 | | that is bundled with this package in the file LICENSE, and is | 9 | | available through the world-wide-web at the following url: | 10 | | http://www.php.net/license/3_01.txt | 11 | | If you did not receive a copy of the PHP license and are unable to | 12 | | obtain it through the world-wide-web, please send a note to | 13 | | license@php.net so we can mail you a copy immediately. | 14 | +----------------------------------------------------------------------+ 15 | | Author: | 16 | +----------------------------------------------------------------------+ 17 | */ 18 | 19 | PHPAPI char *php_win_err(int error); 20 | 21 | #define php_win_err() php_win_err(GetLastError()) 22 | int php_win32_check_trailing_space(const char * path, const int path_len); 23 | PHPAPI php_win32_get_random_bytes(unsigned char *buf, size_t size); 24 | -------------------------------------------------------------------------------- /deps/lib/php5ts.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/deps/lib/php5ts.lib -------------------------------------------------------------------------------- /deps/lib/pthreadVC2.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/deps/lib/pthreadVC2.dll -------------------------------------------------------------------------------- /deps/lib/pthreadVC2.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/deps/lib/pthreadVC2.lib -------------------------------------------------------------------------------- /source/CREDITS: -------------------------------------------------------------------------------- 1 | threading -------------------------------------------------------------------------------- /source/EXPERIMENTAL: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/source/EXPERIMENTAL -------------------------------------------------------------------------------- /source/Release/php_threading.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/source/Release/php_threading.exp -------------------------------------------------------------------------------- /source/Release/php_threading.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/source/Release/php_threading.lib -------------------------------------------------------------------------------- /source/Release/php_threads.exp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/source/Release/php_threads.exp -------------------------------------------------------------------------------- /source/Release/php_threads.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/source/Release/php_threads.lib -------------------------------------------------------------------------------- /source/Release/threading.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/source/Release/threading.obj -------------------------------------------------------------------------------- /source/Release/vc90.idb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/source/Release/vc90.idb -------------------------------------------------------------------------------- /source/config.m4: -------------------------------------------------------------------------------- 1 | dnl $Id$ 2 | dnl config.m4 for extension threading 3 | 4 | dnl Comments in this file start with the string 'dnl'. 5 | dnl Remove where necessary. This file will not work 6 | dnl without editing. 7 | 8 | dnl If your extension references something external, use with: 9 | 10 | dnl PHP_ARG_WITH(threading, for threading support, 11 | dnl Make sure that the comment is aligned: 12 | dnl [ --with-threading Include threading support]) 13 | 14 | dnl Otherwise use enable: 15 | 16 | PHP_ARG_ENABLE(threading, whether to enable threading support, 17 | [ --enable-threading Enable threading support], [yes]) 18 | 19 | if test "$PHP_THREADING" != "no"; then 20 | dnl Write more examples of tests here... 21 | 22 | dnl # --with-threading -> check with-path 23 | dnl SEARCH_PATH="/usr/local /usr" # you might want to change this 24 | dnl SEARCH_FOR="/include/threading.h" # you most likely want to change this 25 | dnl if test -r $PHP_THREADING/$SEARCH_FOR; then # path given as parameter 26 | dnl THREADING_DIR=$PHP_THREADING 27 | dnl else # search default path list 28 | dnl AC_MSG_CHECKING([for threading files in default path]) 29 | dnl for i in $SEARCH_PATH ; do 30 | dnl if test -r $i/$SEARCH_FOR; then 31 | dnl THREADING_DIR=$i 32 | dnl AC_MSG_RESULT(found in $i) 33 | dnl fi 34 | dnl done 35 | dnl fi 36 | dnl 37 | dnl if test -z "$THREADING_DIR"; then 38 | dnl AC_MSG_RESULT([not found]) 39 | dnl AC_MSG_ERROR([Please reinstall the threading distribution]) 40 | dnl fi 41 | 42 | dnl # --with-threading -> add include path 43 | dnl PHP_ADD_INCLUDE($THREADING_DIR/include) 44 | 45 | dnl # --with-threading -> check for lib and symbol presence 46 | dnl LIBNAME=threading # you may want to change this 47 | dnl LIBSYMBOL=threading # you most likely want to change this 48 | 49 | dnl PHP_CHECK_LIBRARY($LIBNAME,$LIBSYMBOL, 50 | dnl [ 51 | dnl PHP_ADD_LIBRARY_WITH_PATH($LIBNAME, $THREADING_DIR/lib, THREADING_SHARED_LIBADD) 52 | dnl AC_DEFINE(HAVE_THREADINGLIB,1,[ ]) 53 | dnl ],[ 54 | dnl AC_MSG_ERROR([wrong threading lib version or lib not found]) 55 | dnl ],[ 56 | dnl -L$THREADING_DIR/lib -lm -ldl 57 | dnl ]) 58 | dnl 59 | dnl PHP_SUBST(THREADING_SHARED_LIBADD) 60 | 61 | PHP_NEW_EXTENSION(threading, threading.c, $ext_shared) 62 | CPPFLAGS="$CPPFLAGS -DPTH_SYSCALL_SOFT=1" 63 | fi 64 | -------------------------------------------------------------------------------- /source/config.w32: -------------------------------------------------------------------------------- 1 | // $Id$ 2 | // vim:ft=javascript 3 | 4 | // If your extension references something external, use ARG_WITH 5 | // ARG_WITH("threading", "for threading support", "no"); 6 | 7 | // Otherwise, use ARG_ENABLE 8 | // ARG_ENABLE("threading", "enable threading support", "no"); 9 | 10 | if (PHP_THREADING != "no") { 11 | EXTENSION("threading", "threading.c"); 12 | } 13 | 14 | -------------------------------------------------------------------------------- /source/php_threading.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 10.00 3 | # Visual Studio 2008 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "php_threading", "php_threads.vcproj", "{1DB0B2FA-0AAF-4CB2-9423-B9B38F3C6459}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Win32 = Debug|Win32 9 | PHP Debug|Win32 = PHP Debug|Win32 10 | Release|Win32 = Release|Win32 11 | EndGlobalSection 12 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 13 | {1DB0B2FA-0AAF-4CB2-9423-B9B38F3C6459}.Debug|Win32.ActiveCfg = Debug|Win32 14 | {1DB0B2FA-0AAF-4CB2-9423-B9B38F3C6459}.Debug|Win32.Build.0 = Debug|Win32 15 | {1DB0B2FA-0AAF-4CB2-9423-B9B38F3C6459}.PHP Debug|Win32.ActiveCfg = PHP Debug|Win32 16 | {1DB0B2FA-0AAF-4CB2-9423-B9B38F3C6459}.PHP Debug|Win32.Build.0 = PHP Debug|Win32 17 | {1DB0B2FA-0AAF-4CB2-9423-B9B38F3C6459}.Release|Win32.ActiveCfg = Release|Win32 18 | {1DB0B2FA-0AAF-4CB2-9423-B9B38F3C6459}.Release|Win32.Build.0 = Release|Win32 19 | EndGlobalSection 20 | GlobalSection(SolutionProperties) = preSolution 21 | HideSolutionNode = FALSE 22 | EndGlobalSection 23 | EndGlobal 24 | -------------------------------------------------------------------------------- /source/php_threading.suo: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alecgorge/php_threading/9bfdc02e192f6490bc87e2022d0f6975a66e7442/source/php_threading.suo -------------------------------------------------------------------------------- /source/php_threads.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 10.00 3 | # Visual C++ Express 2008 4 | Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "php_threading", "php_threading.vcproj", "{1DB0B2FA-0AAF-4CB2-9423-B9B38F3C6459}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Win32 = Debug|Win32 9 | Release|Win32 = Release|Win32 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {1DB0B2FA-0AAF-4CB2-9423-B9B38F3C6459}.Debug|Win32.ActiveCfg = Release|Win32 13 | {1DB0B2FA-0AAF-4CB2-9423-B9B38F3C6459}.Debug|Win32.Build.0 = Release|Win32 14 | {1DB0B2FA-0AAF-4CB2-9423-B9B38F3C6459}.Release|Win32.ActiveCfg = Release|Win32 15 | {1DB0B2FA-0AAF-4CB2-9423-B9B38F3C6459}.Release|Win32.Build.0 = Release|Win32 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /source/samples/example01.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /source/samples/example02.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /source/samples/example03.php: -------------------------------------------------------------------------------- 1 | \n"; 10 | } else { 11 | fwrite($fp, "hello from thread $i\n"); 12 | while (!feof($fp)) { 13 | echo fgets($fp, 1024); 14 | } 15 | fclose($fp); 16 | } 17 | } 18 | 19 | // create 10 different connections 20 | for($i = 1; $i <= 10; $i++) 21 | thread_create('threaded_client_connection', $i); 22 | ?> -------------------------------------------------------------------------------- /source/samples/example04.php: -------------------------------------------------------------------------------- 1 | $url, 13 | CURLOPT_HEADER => 0, 14 | CURLOPT_RETURNTRANSFER => TRUE, 15 | CURLOPT_TIMEOUT => 10 16 | ); 17 | 18 | $ch = curl_init(); 19 | curl_setopt_array($ch, $defaults); 20 | if(!$data = curl_exec($ch)) { 21 | trigger_error(curl_error($ch)); 22 | } 23 | curl_close($ch); 24 | 25 | // sleep a little to make sure the demo loop works, remove for production code 26 | sleep(3); 27 | echo "$url download finished! Source code:\n\n".$data."\n--------------------------------\n"; 28 | } 29 | 30 | function progress ($ch) { 31 | // infinite loop 32 | for(;;) { 33 | echo "still downloadin'...\n"; 34 | 35 | // the second argument to thread_message_queue_poll is a timeout 36 | // if it times out, it returns the string (not the constant) PHP_THREAD_POLL_TIMEOUT 37 | // this function is blocking (it waits until a message is recieved or timeout triggered) 38 | $var = thread_message_queue_poll($ch, 500); 39 | 40 | if($var == 'done') return; 41 | } 42 | } 43 | 44 | foreach($sites as $site) { 45 | echo "Starting download of $site!\n"; 46 | $threads[] = thread_create("get_url_threaded", $site); 47 | } 48 | 49 | // communication channel 50 | $ch = thread_message_queue_create(); 51 | 52 | // progress loop 53 | $progress = thread_create('progress', $ch); 54 | 55 | // wait for all threads to finish 56 | foreach($threads as $thread) { 57 | thread_join($thread); 58 | } 59 | 60 | // tell progress to stop 61 | thread_message_queue_post($ch, 'done'); 62 | 63 | // we are done! 64 | echo "All downloads done!\n"; 65 | 66 | -------------------------------------------------------------------------------- /source/samples/example06.php: -------------------------------------------------------------------------------- 1 | print_ln("hello from the thread"); 6 | } 7 | public function print_ln ($text) { 8 | echo $text."\n"; 9 | } 10 | public static function static_print ($text) { 11 | $x = new TestThread(); 12 | $x->print_ln($text); 13 | } 14 | } 15 | $test = new TestThread(); 16 | thread_create('TestThread::static_print', "Ohai"); 17 | echo "Done\n"; 18 | ?> -------------------------------------------------------------------------------- /source/samples/example07.php: -------------------------------------------------------------------------------- 1 | 5 | --FILE-- 6 | 20 | --EXPECT-- 21 | threading extension is available 22 | -------------------------------------------------------------------------------- /source/threading.php: -------------------------------------------------------------------------------- 1 | "; 3 | 4 | if(!extension_loaded('threading')) { 5 | dl('threading.' . PHP_SHLIB_SUFFIX); 6 | } 7 | $module = 'threading'; 8 | $functions = get_extension_funcs($module); 9 | echo "Functions available in the test extension:$br\n"; 10 | foreach($functions as $func) { 11 | echo $func."$br\n"; 12 | } 13 | echo "$br\n"; 14 | $function = 'confirm_' . $module . '_compiled'; 15 | if (extension_loaded($module)) { 16 | $str = $function($module); 17 | } else { 18 | $str = "Module $module is not compiled into PHP"; 19 | } 20 | echo "$str\n"; 21 | ?> 22 | --------------------------------------------------------------------------------