http://wiki3.caucho.com/api.php?action=feedcontributions&user=Nam&feedformat=atom
Resin 3.0 - User contributions [en]
2024-03-28T21:43:01Z
User contributions
MediaWiki 1.18.0
http://wiki3.caucho.com/PHP_implementation_status
PHP implementation status
2012-06-10T00:00:00Z
<p>Nam: </p>
<hr />
<div>[[Category:Quercus]]<br />
<br />
= Modules =<br />
<br />
== [http://us2.php.net/manual/en/ref.apache.php Apache Functions] ==<br />
<br />
=== Implemented functions ===<br />
<br />
apache_child_terminate (stub), apache_note, apache_request_headers, apache_reset_timeout (stub), getallheaders, virtual<br />
<br />
=== Unimplemented functions ===<br />
<br />
apache_get_modules, apache_get_version, apache_getenv, apache_lookup_uri, apache_response_headers, apache_setenv, ascii2ebcdic, ebcdic2ascii<br />
<br />
== [http://www.php.net/manual/en/ref.apc.php APC Functions] ==<br />
<br />
=== Complete ===<br />
<br />
== [http://us2.php.net/manual/en/ref.array.php Array Functions] ==<br />
<br />
=== Complete ===<br />
<br />
== [http://us2.php.net/manual/en/ref.classobj.php Class/Object Functions] ==<br />
<br />
=== Implemented functions ===<br />
<br />
call_user_method, call_user_method_array, class_exists, get_class, get_called_class, get_class_methods, get_class_vars, get_declared_classes, get_object_vars, get_parent_class, interface_exists, is_a, is_object, is_subclass_of, method_exists, property_exists<br />
<br />
=== Unimplemented functions ===<br />
<br />
get_declared_interfaces<br />
<br />
== [http://www.php.net/manual/en/ref.bc.php BCMath Functions] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
bcadd, bccomp, bcdiv, bcmod, bcmul, bcpow, bcpowmod, bcscale, bcsqrt, bcsub<br />
<br />
== [http://www.php.net/manual/en/ref.calendar.php Calender Functions] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
cal_days_in_month, easter_date, easter_days, gregoriantojd, jdtounix<br />
<br />
== [http://www.php.net/manual/en/ref.ctype.php Ctype Functions] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
ctype_alnum, ctype_alpha, ctype_cntrl, ctype_digit, ctype_graph, ctype_lower, ctype_print, ctype_punct, ctype_space, ctype_upper, ctype_xdigit, isalnum, isalpha, iscntrl, isdigit, isgraph, islower, isprint, ispunct, isspace, isupper, isxdigit<br />
<br />
== [http://us2.php.net/manual/en/ref.datetime.php Date and Time Functions] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
checkdate, date, date_create, date_date_set, date_default_timezone_get, date_default_timezone_set, date_format, date_isodate_set, date_modify, date_offset_get, date_parseidate, date_time_set, date_timestamp_get, date_timestamp_set, date_timezone_get, date_timezone_set, getdate, gettimeofday, gmdate, gmmktime, gmstrftime, localtime, microtime, mktime, strftime, strtotime, time, timezone_abbreviations_list, timezone_identifiers_list, timezone_name_from_abbr, timezone_name_get, timezone_offset_get, timezone_open<br />
<br />
=== Unimplemented Functions ===<br />
<br />
date_default_timezone_get, date_default_timezone_set, date_sun_info, date_sunrise, date_sunset, strptime<br />
<br />
== [http://us2.php.net/manual/en/ref.dir.php Directory Functions] ==<br />
<br />
===Complete ===<br />
<br />
== [http://us2.php.net/manual/en/ref.errorfunc.php Error Handling and Logging] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
debug_backtrace, error_log, error_reporting, set_error_handler, restore_error_handler, trigger_error, user_error<br />
<br />
=== Unimplemented Functions ===<br />
<br />
debug_print_backtrace, restore_exception_handler, set_exception_handler<br />
<br />
== [http://www.php.net/manual/en/ref.exif.php Exif Functions]==<br />
<br />
=== Implemented Functions ===<br />
<br />
read_exif_data, exif_imagetype<br />
<br />
=== Unimplemented Functions ===<br />
<br />
exif_read_data, exif_thumbnail, exif_tagname<br />
<br />
== [http://us2.php.net/manual/en/ref.filesystem.php Filesystem Functions] ==<br />
<br />
=== Unimplemented Functions ===<br />
<br />
disk_free_space (stub), disk_total_space (stub), readlink, umask (stub)<br />
<br />
== [http://us2.php.net/manual/en/ref.funchand.php Function Handling Functions] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
call_user_func_array, call_user_func, create_function, get_defined_functions, func_get_arg, func_get_args, func_num_args, function_exists, register_shutdown_function<br />
<br />
=== Unimplemented Functions ===<br />
<br />
register_tick_function, unregister_tick_function<br />
<br />
== [http://www.php.net/manual/en/ref.gettext.php Gettext Functions]==<br />
<br />
=== Completed ===<br />
<br />
== [http://www.php.net/manual/en/ref.iconv.php Iconv Functions] ==<br />
<br />
=== Unimplemented Functions ===<br />
<br />
ob_iconv_handler<br />
<br />
== [http://us2.php.net/manual/en/ref.http.php HTTP Functions] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
header, headers_sent, setcookie<br />
<br />
=== Unimplemented Functions ===<br />
<br />
headers_list, setrawcookie<br />
<br />
== [http://us2.php.net/manual/en/ref.image.php Image Functions] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
gd_info, getimagesize, imagetypes, image_type_to_extension, image_type_to_mime_type, imagegif, imagepng, imagejpeg, imagealphablending, imageantialias, imagecolorallocate, imagecolorallocatealpha, imagecolordeallocate, imagecolorat, imagecolorclosest, imagecolorclosestalpha, imagecolorexact, imagecolorexactalpha, imagecolormatch, imagecolorresolve, imagecolorresolvealpha, imagecolorsforindex, imagecreate, imagecreatefromgif, imagecreatefromjpeg, imagecreatefrompng, imagecreatefromxbm, imagecreatefromxpm, imagecreatefromwbmp, imagecreatefromstring, imagecreatetruecolor, imagedestroy, imageistruecolor, imagesetpixel, imageline, imagedashedline, imagearc, imagefilledarc, imageellipse, imagefilledellipse, imagepolygon, imagefilledpolygon, imagerectangle, imagefilledrectangle, imagechar, imagestring, imagecharup, imagesx, imagesy, imagefontheight, imagefontwidth, imagecopy, imagecopymerge, imagecopymergegray, imagecopyresampled, imagecopyresized, imagesetbrush, imagesetstyle, imagesetthickness, imagesavealpha, imagecolortransparent, imagefill, imagefilltoborder, imageconvolution, imagefilter<br />
<br />
== [http://www.php.net/manual/en/ref.json.php JSON] ==<br />
<br />
=== Completed ===<br />
<br />
== [http://us2.php.net/manual/en/ref.mail.php Mail Functions] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
mail<br />
<br />
=== Unimplemented Functions ===<br />
<br />
ezmlm_hash<br />
<br />
== [http://us2.php.net/manual/en/ref.mcrypt.php Mcrypt] ==<br />
<br />
=== Complete ===<br />
<br />
== [http://www.php.net/manual/en/ref.mhash.php Mhash] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
mhash, mhash_count, mhash_get_block_size, mhash_get_hash_name<br />
<br />
=== Unimplemented Functions ===<br />
<br />
mhash_keygen_s2k<br />
<br />
== [http://us2.php.net/manual/en/ref.misc.php Misc Functions] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
constant, define, defined, die, eval, exit, pack, uniqid, unpack<br />
<br />
=== Unimplemented Functions ===<br />
<br />
connection_aborted, connection_status, connection_timeout, get_browser, __halt_compiler, highlight_file, highlight_string, ignore_user_abort, php_check_syntax, php_strip_whitespace, show_source, sleep, time_nanosleep, time_sleep_until, usleep<br />
<br />
== [http://www.php.net/manual/en/ref.mbstring.php Multibyte String] ==<br />
<br />
=== Unimplemented Functions ===<br />
<br />
mb_convert_kana, mb_detect_order, mb_get_info (stub), mb_http_input, mb_http_output, mb_output_handler, mb_regex_set_options, mb_substitute_character<br />
<br />
== [http://us2.php.net/manual/en/ref.mysql.php Mysql Functions] ==<br />
<br />
=== Unimplemented Functions ===<br />
<br />
mysql_change_user, mysql_info, mysql_list_processes, mysql_thread_id<br />
<br />
== [http://us2.php.net/manual/en/ref.mysqli.php Mysql Improved] ==<br />
<br />
=== Unimplemented Functions ===<br />
<br />
mysqli_debug, mysqli_disable_reads_from_master, mysqli_disable_rpl_parse, mysqli_info, mysqli_kill, mysqli_master_query, mysqli_report, mysqli_rpl_parse_enabled, mysqli_rpl_probe, mysqli_rpl_query_type, mysqli_send_long_data, mysqli_send_query, mysqli_server_end, mysqli_server_init, mysqli_ssl_set, mysqli_stmt_send_long_data, mysqli_thread_id, mysqli_thread_safe<br />
<br />
== [http://us2.php.net/manual/en/ref.network.php Network] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
checkdnsrr, closelog, define_syslog_variables(stub), dns_check_record, dns_get_mx, fsockopen, gethostbyaddr, gethostbyname, gethostbynamel, getmxrr, getprotobyname, getprotobynumber, getservbyname, getservbyport, ip2long, openlog(stub), syslog<br />
<br />
=== Unimplemented Functions ===<br />
<br />
dns_get_record, inet_ntop, inet_pton, long2ip, pfsockopen, socket_get_status, socket_get_blocking, socket_get_timeout<br />
<br />
== [http://us2.php.net/manual/en/ref.info.php Options and Information] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
assert, extension_loaded, get_cfg_var, get_defined_constants, get_extension_funcs, get_include_path, get_loaded_extensions, getenv, getlastmod, getmygid, getmyinode, getmypid, getmyuid, ini_alter, ini_get, ini_get_all, ini_set, php_sapi_name, php_uname (stub), phpinfo, phpversion, putenv, restore_include_path, set_inclue_path, set_time_limit, version_compare<br />
<br />
=== Unimplemented Functions ===<br />
<br />
assert_options, dl (stub), get_current_user (stub), get_included_files, get_magic_quotes_gpc, get_magic_quotes_runtime, get_required_files, getopt, getrusage, ini_restore, memory_get_usage, php_ini_scanned_files, php_logo_gid, phpcredits, putenv, restore_include_path, set_magic_quotes_runtime, zend_logo_gid, zend_version<br />
<br />
== [http://www.php.net/manual/en/ref.oci8.php Oracle Functions] ==<br />
<br />
=== Unimplemented Functions ===<br />
<br />
oci_internal_debug, ocicloselob, ocicollappend, ocicollassign, ocicollassignelem, ocicollgetelemn, ocicollmax, ocicollsize, ocicolltrim, ocifetchinfo, ocifreecollection, ocifreedesc, ociloadlob, ocisavelob, ocisavelobfile, ociwritelobtofile, ociwritetemporarylob<br />
<br />
== [http://us2.php.net/manual/en/ref.outcontrol.php Output Control Functions] ==<br />
<br />
=== Complete ===<br />
<br />
== [http://www.php.net/manual/en/ref.pdf.php PDF]==<br />
<br />
=== Implemented Functions ===<br />
<br />
pdf_arc, pdf_arcn, pdf_begin_document, pdf_begin_page_ext, pdf_begin_page, pdf_circle, pdf_clip, pdf_close, pdf_closepath_fill_stroke, pdf_closepath_stroke, pdf_closepath, pdf_concat, pdf_continue_text, pdf_curveto, pdf_delete, pdf_end_document, pdf_end_page_ext, pdf_end_page, pdf_end_path, pdf_fill_stroke, pdf_fill, pdf_fit_image, pdf_get_buffer, pdf_get_errmsg, pdf_get_errnum, pdf_get_image_height, pdf_get_image_width, pdf_get_buffer, pdf_get_parameter, pdf_get_value, pdf_initgraphics, pdf_lineto, pdf_load_font, pdf_load_image, pdf_moveto, pdf_new, pdf_open_file, pdf_open_image_file, pdf_place_image, pdf_place_pdi_page, pdf_rect, pdf_restore, pdf_rotate, pdf_save, pdf_scale, pdf_set_info, pdf_set_parameter, pdf_set_text_pos, pdf_set_value, pdf_setcolor, pdf_setdash, pdf_setdashpattern, pdf_setflat, pdf_setfont, pdf_setgray_fill, pdf_setgray_stroke, pdf_setgray, pdf_setlinecap, pdf_setlinejoin, pdf_setlinewidth, pdf_setmatrix, pdf_setmiterlimit, pdf_setrgbcolor_fill, pdf_setrgbcolor_stroke, pdf_setrgbcolor, pdf_shading_pattern, pdf_shading, pdf_shfill, pdf_show_boxed, pdf_show_xy, pdf_show, pdf_skew, pdf_stringwidth, pdf_stroke, pdf_translate<br />
<br />
== [http://www.php.net/manual/en/ref.pgsql.php Postgres Functions] ==<br />
<br />
=== Unimplemented Functions ===<br />
<br />
pg_options, pg_trace, pg_transaction_status, pg_untrace<br />
<br />
== [http://us2.php.net/manual/en/ref.exec.php Program Execution] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
escapeshellarg, escapeshellcmd, exec, passthru, shell_exec, system<br />
<br />
=== Unimplemented Functions ===<br />
<br />
proc_close, proc_get_status, proc_nice, proc_open, proc_terminate<br />
<br />
== [http://us2.php.net/manual/en/ref.pcre.php Regexp (Perl)] ==<br />
<br />
=== Complete ===<br />
<br />
== [http://us2.php.net/manual/en/ref.regex.php Regexp (POSIX)] ==<br />
<br />
=== Complete ===<br />
<br />
== [http://us2.php.net/manual/en/ref.session.php Session Handling] ==<br />
<br />
=== Complete ===<br />
<br />
== [http://www.php.net/manual/en/ref.simplexml.php SimpleXML] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
simplexml_load_file, simplexml_load_string, SimpleXMLElement->asXML(), SimpleXMLElement->attributes(), SimpleXMLElement->children(), SimpleXMLElement->xpath()<br />
<br />
== [http://us2.php.net/manual/en/ref.stream.php Stream Functions] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
stream_context_create, stream_context_get_default, stream_context_get_options, stream_context_set_option, stream_context_set_params, stream_copy_to_stream, stream_get_contents, stream_get_line, stream_get_transports, stream_get_wrappers, stream_register_wrapper, stream_wrapper_register, stream_wrapper_restore, stream_wrapper_unregister<br />
<br />
=== Unimplemented Functions ===<br />
<br />
stream_bucket_append, stream_bucket_make_writeable, stream_bucket_new, stream_bucket_prepend, stream_filter_append, stream_filter_prepend, stream_filter_register, stream_filter_remove, stream_get_filters, stream_get_meta_data, stream_select, stream_set_blocking, stream_set_timeout (stub), stream_set_write_buffer (stub), stream_socket_accept, stream_socket_server, stream_socket_client, stream_socket_enable_crypto, stream_socket_get_name, stream_socket_pair, stream_socket_recvform, stream_socket_sendto, stream_socket_server<br />
<br />
== [http://us2.php.net/manual/en/ref.strings.php String Functions] ==<br />
<br />
=== Unimplemented Functions ===<br />
<br />
convert_cyr_string, hebrev, hebrevc, htmlspecialchars_decode, levelshtein, localeconv, metaphone, nl_langinfo, similar_text, soundex, strpbrk, substr_compare, vfprintf<br />
<br />
== [http://us2.php.net/manual/en/ref.url.php URL Functions] ==<br />
<br />
=== Complete ===<br />
<br />
== [http://us2.php.net/manual/en/ref.var.php Variable Handling] ==<br />
<br />
=== Complete ===<br />
<br />
== [http://www.php.net/manual/en/ref.xml.php XML] ==<br />
<br />
=== Unimplemented Functions ===<br />
<br />
xml_error_string, xml_get_current_byte_index, xml_get_current_column_number, xml_get_current_line_number, xml_get_error_code, xml_set_external_entity_ref_handler<br />
<br />
== [http://www.php.net/manual/en/ref.zip.php Zip] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
zip_close, zip_open, zip_read, zip_entry_close, zip_entry_compressedsize, zip_entry_compressionmethod, zip_entry_filesize, zip_entry_name, zip_entry_open, zip_entry_read<br />
<br />
== [http://www.php.net/manual/en/ref.zlib.php Zlib] ==<br />
<br />
=== Complete ===</div>
Nam
http://wiki3.caucho.com/Main_Page
Main Page
2012-06-10T00:00:00Z
<p>Nam: </p>
<hr />
<div>; [[HowTo]]<br />
<br />
== Categories ==<br />
<br />
; [[Cookbook]]<br />
: A collection of sample configurations and examples<br />
; [[:Category:Configuration]]<br />
; [[:Category:Admin]]<br />
: /resin-admin administration console topics<br />
<br />
== Topics ==<br />
<br />
; Tutorial<br />
; [[Using the Admin Tool to diagnose various issues]]<br />
; IDEs: [[Intellij]], [[Eclipse]]<br />
; Admin: [[Admin]], [[Admin Database Connections]], [[Nagios]]<br />
; Rewrite: [[Rewrite WordPress]], [[Rewrite Drupal]], [[Rewrite Mediawiki]]<br />
; Build/Dependencies: [[Ant]], [[Ivy]], [[Maven2]]<br />
; Databases: [[Mysql]], [[Oracle]], [[Oracle RAC]], [[Postgres]], [[SQLServer]], [[Sybase]]<br />
; Faqs: [[Config_FAQ]], [[Database_FAQ]], [[Install_FAQ]], [[Quercus_FAQ]], [[Security_FAQ]], [[Servlet_FAQ]]<br />
; Frameworks: [[Hibernate]], [[Mule]], [[Spring]], [[Struts2]], [[Wicket]], [[Terracotta]]<br />
; Applications: [[Confluence]]<br />
; JCA: [[ActiveMQ]], [[Jackrabbit]]<br />
; JSF: [[Trinidad]], [[RichFaces-Ajax4JSF]], [[RichFaces-Fast-JSF]], [[IceFaces]]<br />
; [[Quercus]] : Quercus is a 100% Java implementation of the PHP language and libraries. <br>[[Quercus: Drupal]], [[Quercus Google App Engine]], [[Quercus: phpMyAdmin]], [[Quercus: linode]], [[Quercus: Tomcat]], [[Quercus: Command Line Interface (CLI)]]<br />
; Remoting: [[Hessian]], [[Burlap]], [[CXF]]<br />
; Security: [[Acegi_Security]]<br />
; Testing: [[Hudson]], [[JUnit]]<br />
<br />
; [[Features]] : An overview of the features and capabilities in Resin and Resin Professional.<br />
; [[Installation]] : [[Quick start]] &mdash; [[Resin web server]] &mdash; [[Installation|more...]]<br />
; [[Configuration]] : [[Logging]] &mdash; [[Configuration|more...]]<br />
: [[NewConfiguration]]<br />
; [[Troubleshooting]] : A collection of common problems and their solution.<br />
<br />
; [[Web Application]]s<br />
; [[Servlets and Filters]]<br />
; [[Sessions]]<br />
; [[Clustering and Load Balancing]]<br />
<br />
; [[Administration and JMX]]<br />
<br />
; [[Hessian]] and [[Burlap]] : Web services<br />
; [[Inversion of Control]]<br />
; [[Resources]]<br />
<br />
; [[EJB3]]<br />
<br />
; [[JMS]] : Java Messaging Service.<br />
<br />
; [[XML and XSLT]]<br />
<br />
; [[Third Party]]<br />
; [[IDE]] integration<br />
; [[EJB]]<br />
<br />
; [[Cookbook]]<br />
<br />
; [[ClassLoader]]<br />
; [[Profiler]]<br />
; Migration: [[Migrate from 2.1 to 3.0|2.1 to 3.0]], [[Migrating from Resin 3.0 to Resin 4.0|3.0 to 4.0]], [[Migrating from WebLogic to Resin]]<br />
<br />
; [[Resin Cloud deployment with Amazon]]</div>
Nam
http://wiki3.caucho.com/Main_Page
Main Page
2012-06-10T00:00:00Z
<p>Nam: </p>
<hr />
<div>; [[HowTo]]<br />
<br />
== Categories ==<br />
<br />
; [[Cookbook]]<br />
: A collection of sample configurations and examples<br />
; [[:Category:Configuration]]<br />
; [[:Category:Admin]]<br />
: /resin-admin administration console topics<br />
<br />
== Topics ==<br />
<br />
; Tutorial<br />
; [[Using the Admin Tool to diagnose various issues]]<br />
; IDEs: [[Intellij]], [[Eclipse]]<br />
; Admin: [[Admin]], [[Admin Database Connections]], [[Nagios]]<br />
; Rewrite: [[Rewrite WordPress]], [[Rewrite Drupal]], [[Rewrite Mediawiki]]<br />
; Build/Dependencies: [[Ant]], [[Ivy]], [[Maven2]]<br />
; Databases: [[Mysql]], [[Oracle]], [[Oracle RAC]], [[Postgres]], [[SQLServer]], [[Sybase]]<br />
; Faqs: [[Config_FAQ]], [[Database_FAQ]], [[Install_FAQ]], [[Quercus_FAQ]], [[Security_FAQ]], [[Servlet_FAQ]]<br />
; Frameworks: [[Hibernate]], [[Mule]], [[Spring]], [[Struts2]], [[Wicket]], [[Terracotta]]<br />
; Applications: [[Confluence]]<br />
; JCA: [[ActiveMQ]], [[Jackrabbit]]<br />
; JSF: [[Trinidad]], [[RichFaces-Ajax4JSF]], [[RichFaces-Fast-JSF]], [[IceFaces]]<br />
; [[Quercus]] : Quercus is a 100% Java implementation of the PHP language and libraries. <br>[[Quercus: Drupal]], [[Quercus: Google App Engine]], [[Quercus: phpMyAdmin]], [[Quercus: linode]], [[Quercus: Tomcat]], [[Quercus: Command Line Interface (CLI)]]<br />
; Remoting: [[Hessian]], [[Burlap]], [[CXF]]<br />
; Security: [[Acegi_Security]]<br />
; Testing: [[Hudson]], [[JUnit]]<br />
<br />
; [[Features]] : An overview of the features and capabilities in Resin and Resin Professional.<br />
; [[Installation]] : [[Quick start]] &mdash; [[Resin web server]] &mdash; [[Installation|more...]]<br />
; [[Configuration]] : [[Logging]] &mdash; [[Configuration|more...]]<br />
: [[NewConfiguration]]<br />
; [[Troubleshooting]] : A collection of common problems and their solution.<br />
<br />
; [[Web Application]]s<br />
; [[Servlets and Filters]]<br />
; [[Sessions]]<br />
; [[Clustering and Load Balancing]]<br />
<br />
; [[Administration and JMX]]<br />
<br />
; [[Hessian]] and [[Burlap]] : Web services<br />
; [[Inversion of Control]]<br />
; [[Resources]]<br />
<br />
; [[EJB3]]<br />
<br />
; [[JMS]] : Java Messaging Service.<br />
<br />
; [[XML and XSLT]]<br />
<br />
; [[Third Party]]<br />
; [[IDE]] integration<br />
; [[EJB]]<br />
<br />
; [[Cookbook]]<br />
<br />
; [[ClassLoader]]<br />
; [[Profiler]]<br />
; Migration: [[Migrate from 2.1 to 3.0|2.1 to 3.0]], [[Migrating from Resin 3.0 to Resin 4.0|3.0 to 4.0]], [[Migrating from WebLogic to Resin]]<br />
<br />
; [[Resin Cloud deployment with Amazon]]</div>
Nam
http://wiki3.caucho.com/Main_Page
Main Page
2012-06-10T00:00:00Z
<p>Nam: </p>
<hr />
<div>; [[HowTo]]<br />
<br />
== Categories ==<br />
<br />
; [[Cookbook]]<br />
: A collection of sample configurations and examples<br />
; [[:Category:Configuration]]<br />
; [[:Category:Admin]]<br />
: /resin-admin administration console topics<br />
<br />
== Topics ==<br />
<br />
; Tutorial<br />
; [[Using the Admin Tool to diagnose various issues]]<br />
; IDEs: [[Intellij]], [[Eclipse]]<br />
; Admin: [[Admin]], [[Admin Database Connections]], [[Nagios]]<br />
; Rewrite: [[Rewrite WordPress]], [[Rewrite Drupal]], [[Rewrite Mediawiki]]<br />
; Build/Dependencies: [[Ant]], [[Ivy]], [[Maven2]]<br />
; Databases: [[Mysql]], [[Oracle]], [[Oracle RAC]], [[Postgres]], [[SQLServer]], [[Sybase]]<br />
; Faqs: [[Config_FAQ]], [[Database_FAQ]], [[Install_FAQ]], [[Quercus_FAQ]], [[Security_FAQ]], [[Servlet_FAQ]]<br />
; Frameworks: [[Hibernate]], [[Mule]], [[Spring]], [[Struts2]], [[Wicket]], [[Terracotta]]<br />
; Applications: [[Confluence]]<br />
; JCA: [[ActiveMQ]], [[Jackrabbit]]<br />
; JSF: [[Trinidad]], [[RichFaces-Ajax4JSF]], [[RichFaces-Fast-JSF]], [[IceFaces]]<br />
; [[Quercus]] : Quercus is a 100% Java implementation of the PHP language and libraries. <br>[[Quercus: Drupal]], [[Quercus Google App Engine]], [[Quercus: phpMyAdmin]], [[Quercus: linode]], [[Quercus: Tomcat]], [[Quercus: Command Line Interface (CLI)]]<br />
; Remoting: [[Hessian]], [[Burlap]], [[CXF]]<br />
; Security: [[Acegi_Security]]<br />
; Testing: [[Hudson]], [[JUnit]]<br />
<br />
; [[Features]] : An overview of the features and capabilities in Resin and Resin Professional.<br />
; [[Installation]] : [[Quick start]] &mdash; [[Resin web server]] &mdash; [[Installation|more...]]<br />
; [[Configuration]] : [[Logging]] &mdash; [[Configuration|more...]]<br />
: [[NewConfiguration]]<br />
; [[Troubleshooting]] : A collection of common problems and their solution.<br />
<br />
; [[Web Application]]s<br />
; [[Servlets and Filters]]<br />
; [[Sessions]]<br />
; [[Clustering and Load Balancing]]<br />
<br />
; [[Administration and JMX]]<br />
<br />
; [[Hessian]] and [[Burlap]] : Web services<br />
; [[Inversion of Control]]<br />
; [[Resources]]<br />
<br />
; [[EJB3]]<br />
<br />
; [[JMS]] : Java Messaging Service.<br />
<br />
; [[XML and XSLT]]<br />
<br />
; [[Third Party]]<br />
; [[IDE]] integration<br />
; [[EJB]]<br />
<br />
; [[Cookbook]]<br />
<br />
; [[ClassLoader]]<br />
; [[Profiler]]<br />
; Migration: [[Migrate from 2.1 to 3.0|2.1 to 3.0]], [[Migrating from Resin 3.0 to Resin 4.0|3.0 to 4.0]], [[Migrating from WebLogic to Resin]]<br />
<br />
; [[Resin Cloud deployment with Amazon]]</div>
Nam
http://wiki3.caucho.com/User:Nam
User:Nam
2012-03-19T00:00:00Z
<p>Nam: Blanked the page</p>
<hr />
<div></div>
Nam
http://wiki3.caucho.com/User:Nam
User:Nam
2012-02-25T00:00:00Z
<p>Nam: </p>
<hr />
<div>=Introduction=<br />
<br />
<br />
=Wordpress test suite=<br />
Just getting the wordpress tests running on zend php was a challenge in itself. Ran into the following problems:<br />
* any fatal failure prevents rest of tests from running<br />
* does not list the currently running test nor file<br />
* some tests are using new wordpress features not checked into trunk<br />
* some tests have recent input data changes, but expected outputs were not updated in tandem<br />
* hopeless trying to run tests on non-trunk wordpress-3.3.1<br />
<br />
All in all, I had to delete about 70 borked tests.<br />
<br />
==Running wordpress tests on zend php==<br />
# svn checkout http://svn.automattic.com/wordpress-tests<br />
# sudo cp /etc/php.ini.default /etc/php.ini<br />
# curl http://pear.php.net/go-pear | sudo php<br />
#* update php.ini - yes<br />
# add pear to PATH (optional)<br />
# sudo pear channel-discover pear.phpunit.de<br />
# sudo pear install phpunit/PHPUnit<br />
# cp wordpress-tests/wp-config-sample.php wordpress-tests/wp-config.php<br />
# edit wp-config.php with test database settings<br />
# delete the bad tests from wordpress-tests/wp-testcase/test-xmlrpc-api<br />
# php wordpress-tests php -l<br />
<br />
==Wordpress test results==<br />
===zend php - wordpress trunk===<br />
Tests: 758, Assertions: 4684, Failures: 60, Skipped: 41.<br />
<br />
=PHPUnit=<br />
==php classes used by PHPUnit==<br />
# Countable<br />
# DOMXPath<br />
# Exception<br />
# InvalidArgumentException<br />
# ReflectionClass<br />
# ReflectionMethod<br />
# ReflectionObject<br />
# ReflectionProperty<br />
# RuntimeException<br />
# SOAPClient<br />
<br />
==php functions used by PHPUnit==<br />
# TestCase<br />
# abs<br />
# accept<br />
# addFileToBlacklist<br />
# addFileToWhitelist<br />
# addcslashes<br />
# appendChild<br />
# argument<br />
# array_key_exists<br />
# array_keys<br />
# array_merge<br />
# array_pop<br />
# array_push<br />
# array_reverse<br />
# array_shift<br />
# array_unique<br />
# array_unshift<br />
# array_values<br />
# attach<br />
# basename<br />
# bin2hex<br />
# call_user_func_array<br />
# className<br />
# class_exists<br />
# clearstatcache<br />
# constant<br />
# debug_backtrace<br />
# define<br />
# defined<br />
# dirname<br />
# dump<br />
# each<br />
# empty<br />
# error_reporting<br />
# escapeshellcmd<br />
# eval<br />
# exception<br />
# exit<br />
# fclose<br />
# fflush<br />
# file<br />
# file_exists<br />
# file_get_contents<br />
# file_iterator_autoload<br />
# file_put_contents<br />
# filter<br />
# fopen<br />
# fsockopen<br />
# func_get_args<br />
# func_num_args<br />
# fwrite<br />
# getAttribute<br />
# getClass<br />
# getCode<br />
# getConstructor<br />
# getDeclaringClass<br />
# getDefaultValue<br />
# getDocComment<br />
# getElementsByTagName<br />
# getEndLine<br />
# getExtensionName<br />
# getFile<br />
# getFileName<br />
# getFilesAsArray<br />
# getInfo<br />
# getLine<br />
# getMethod<br />
# getParameters<br />
# getParentClass<br />
# getProperty<br />
# getStartLine<br />
# getStaticProperties<br />
# getTrace<br />
# getValue<br />
# get_class<br />
# get_class_methods<br />
# get_declared_classes<br />
# get_defined_vars<br />
# get_include_path<br />
# get_included_files<br />
# gettype<br />
# handler<br />
# hasProperty<br />
# htmlspecialchars<br />
# in_array<br />
# ini_set<br />
# interface_exists<br />
# isAbstract<br />
# isCloneable<br />
# isConstructor<br />
# isFinal<br />
# isInstantiable<br />
# isPublic<br />
# isStatic<br />
# isUserDefined<br />
# is_array<br />
# is_bool<br />
# is_callable<br />
# is_dir<br />
# is_double<br />
# is_file<br />
# is_float<br />
# is_infinite<br />
# is_int<br />
# is_integer<br />
# is_nan<br />
# is_null<br />
# is_numeric<br />
# is_object<br />
# is_readable<br />
# is_resource<br />
# is_scalar<br />
# is_string<br />
# isset<br />
# item<br />
# iterator_count<br />
# join<br />
# json_encode<br />
# libxml_get_errors<br />
# libxml_use_internal_errors<br />
# list<br />
# loadHTML<br />
# loadXML<br />
# mb_convert_encoding<br />
# method_exists<br />
# microtime<br />
# min<br />
# newInstance<br />
# newInstanceArgs<br />
# normalizeDocument<br />
# notifyMethod<br />
# ob_end_clean<br />
# ob_get_clean<br />
# ob_get_contents<br />
# ob_start<br />
# ord<br />
# php_codecoverage_autoload<br />
# php_invoker_autoload<br />
# php_timer_autoload<br />
# php_tokenstream_autoload<br />
# phpunit_dbunit_autoload<br />
# phpunit_selenium_autoload<br />
# phpunit_story_autoload<br />
# preg_match<br />
# print_r<br />
# proc_close<br />
# realpath<br />
# removeChild<br />
# removeFileFromBlacklist<br />
# removeFileFromWhitelist<br />
# render<br />
# reset<br />
# resourceUsage<br />
# restore_error_handler<br />
# saveXML<br />
# serialize<br />
# setCacheTokens<br />
# setlocale<br />
# settype<br />
# sfYamlDumper<br />
# sizeof<br />
# sort<br />
# spl_object_hash<br />
# start<br />
# stream_get_contents<br />
# stream_resolve_include_path<br />
# stripos<br />
# strlen<br />
# strpos<br />
# strstr<br />
# strtolower<br />
# strtoupper<br />
# substr<br />
# substr_count<br />
# substr_replace<br />
# suite<br />
# sys_get_temp_dir<br />
# testMethod<br />
# text_template_autoload<br />
# trait_exists<br />
# trim<br />
# ucfirst<br />
# unlink<br />
# unserialize<br />
# unset<br />
# utf8_encode<br />
# var_export<br />
# version_compare<br />
# withAnyParamers</div>
Nam
http://wiki3.caucho.com/User:Nam
User:Nam
2012-02-25T00:00:00Z
<p>Nam: </p>
<hr />
<div>=Introduction=<br />
Just getting the wordpress tests running on zend php was a challenge in itself. Ran into the following problems:<br />
* any fatal failure prevents rest of tests from running<br />
* does not list the currently running test nor file<br />
* some tests are using new wordpress features not checked into trunk<br />
* some tests have recent input data changes, but expected outputs were not updated in tandem<br />
* hopeless trying to run tests on non-trunk wordpress-3.3.1<br />
<br />
All in all, I had to delete about 70 borked tests.<br />
<br />
=Wordpress test suite=<br />
==Running wordpress tests on zend php==<br />
# svn checkout http://svn.automattic.com/wordpress-tests<br />
# sudo cp /etc/php.ini.default /etc/php.ini<br />
# curl http://pear.php.net/go-pear | sudo php<br />
#* update php.ini - yes<br />
# add pear to PATH (optional)<br />
# sudo pear channel-discover pear.phpunit.de<br />
# sudo pear install phpunit/PHPUnit<br />
# cp wordpress-tests/wp-config-sample.php wordpress-tests/wp-config.php<br />
# edit wp-config.php with test database settings<br />
# delete the bad tests from wordpress-tests/wp-testcase/test-xmlrpc-api<br />
# php wordpress-tests php -l<br />
<br />
==Wordpress test results==<br />
===zend php - wordpress trunk===<br />
Tests: 758, Assertions: 4684, Failures: 60, Skipped: 41.<br />
<br />
=PHPUnit=<br />
==php classes used by PHPUnit==<br />
# Countable<br />
# DOMXPath<br />
# Exception<br />
# InvalidArgumentException<br />
# ReflectionClass<br />
# ReflectionMethod<br />
# ReflectionObject<br />
# ReflectionProperty<br />
# RuntimeException<br />
# SOAPClient<br />
<br />
==php functions used by PHPUnit==<br />
# TestCase<br />
# abs<br />
# accept<br />
# addFileToBlacklist<br />
# addFileToWhitelist<br />
# addcslashes<br />
# appendChild<br />
# argument<br />
# array_key_exists<br />
# array_keys<br />
# array_merge<br />
# array_pop<br />
# array_push<br />
# array_reverse<br />
# array_shift<br />
# array_unique<br />
# array_unshift<br />
# array_values<br />
# attach<br />
# basename<br />
# bin2hex<br />
# call_user_func_array<br />
# className<br />
# class_exists<br />
# clearstatcache<br />
# constant<br />
# debug_backtrace<br />
# define<br />
# defined<br />
# dirname<br />
# dump<br />
# each<br />
# empty<br />
# error_reporting<br />
# escapeshellcmd<br />
# eval<br />
# exception<br />
# exit<br />
# fclose<br />
# fflush<br />
# file<br />
# file_exists<br />
# file_get_contents<br />
# file_iterator_autoload<br />
# file_put_contents<br />
# filter<br />
# fopen<br />
# fsockopen<br />
# func_get_args<br />
# func_num_args<br />
# fwrite<br />
# getAttribute<br />
# getClass<br />
# getCode<br />
# getConstructor<br />
# getDeclaringClass<br />
# getDefaultValue<br />
# getDocComment<br />
# getElementsByTagName<br />
# getEndLine<br />
# getExtensionName<br />
# getFile<br />
# getFileName<br />
# getFilesAsArray<br />
# getInfo<br />
# getLine<br />
# getMethod<br />
# getParameters<br />
# getParentClass<br />
# getProperty<br />
# getStartLine<br />
# getStaticProperties<br />
# getTrace<br />
# getValue<br />
# get_class<br />
# get_class_methods<br />
# get_declared_classes<br />
# get_defined_vars<br />
# get_include_path<br />
# get_included_files<br />
# gettype<br />
# handler<br />
# hasProperty<br />
# htmlspecialchars<br />
# in_array<br />
# ini_set<br />
# interface_exists<br />
# isAbstract<br />
# isCloneable<br />
# isConstructor<br />
# isFinal<br />
# isInstantiable<br />
# isPublic<br />
# isStatic<br />
# isUserDefined<br />
# is_array<br />
# is_bool<br />
# is_callable<br />
# is_dir<br />
# is_double<br />
# is_file<br />
# is_float<br />
# is_infinite<br />
# is_int<br />
# is_integer<br />
# is_nan<br />
# is_null<br />
# is_numeric<br />
# is_object<br />
# is_readable<br />
# is_resource<br />
# is_scalar<br />
# is_string<br />
# isset<br />
# item<br />
# iterator_count<br />
# join<br />
# json_encode<br />
# libxml_get_errors<br />
# libxml_use_internal_errors<br />
# list<br />
# loadHTML<br />
# loadXML<br />
# mb_convert_encoding<br />
# method_exists<br />
# microtime<br />
# min<br />
# newInstance<br />
# newInstanceArgs<br />
# normalizeDocument<br />
# notifyMethod<br />
# ob_end_clean<br />
# ob_get_clean<br />
# ob_get_contents<br />
# ob_start<br />
# ord<br />
# php_codecoverage_autoload<br />
# php_invoker_autoload<br />
# php_timer_autoload<br />
# php_tokenstream_autoload<br />
# phpunit_dbunit_autoload<br />
# phpunit_selenium_autoload<br />
# phpunit_story_autoload<br />
# preg_match<br />
# print_r<br />
# proc_close<br />
# realpath<br />
# removeChild<br />
# removeFileFromBlacklist<br />
# removeFileFromWhitelist<br />
# render<br />
# reset<br />
# resourceUsage<br />
# restore_error_handler<br />
# saveXML<br />
# serialize<br />
# setCacheTokens<br />
# setlocale<br />
# settype<br />
# sfYamlDumper<br />
# sizeof<br />
# sort<br />
# spl_object_hash<br />
# start<br />
# stream_get_contents<br />
# stream_resolve_include_path<br />
# stripos<br />
# strlen<br />
# strpos<br />
# strstr<br />
# strtolower<br />
# strtoupper<br />
# substr<br />
# substr_count<br />
# substr_replace<br />
# suite<br />
# sys_get_temp_dir<br />
# testMethod<br />
# text_template_autoload<br />
# trait_exists<br />
# trim<br />
# ucfirst<br />
# unlink<br />
# unserialize<br />
# unset<br />
# utf8_encode<br />
# var_export<br />
# version_compare<br />
# withAnyParamers</div>
Nam
http://wiki3.caucho.com/User:Nam
User:Nam
2012-02-25T00:00:00Z
<p>Nam: </p>
<hr />
<div>=Introduction=<br />
Just getting the wordpress tests running on zend php was a challenge in itself. Ran into the following problems:<br />
* any fatal failure prevents rest of tests from running<br />
* does not list the currently running test nor file<br />
* some tests are using new wordpress features not checked into trunk<br />
* some tests has recent input data changes, but expected output was not updated in tandem<br />
* hopeless trying to run tests on non-trunk wordpress-3.3.1<br />
<br />
All in all, I had to delete about 70 borked tests.<br />
<br />
=Wordpress test suite=<br />
==Running wordpress tests on zend php==<br />
# svn checkout http://svn.automattic.com/wordpress-tests<br />
# sudo cp /etc/php.ini.default /etc/php.ini<br />
# curl http://pear.php.net/go-pear | sudo php<br />
#* update php.ini - yes<br />
# add pear to PATH (optional)<br />
# sudo pear channel-discover pear.phpunit.de<br />
# sudo pear install phpunit/PHPUnit<br />
# cp wordpress-tests/wp-config-sample.php wordpress-tests/wp-config.php<br />
# edit wp-config.php with test database settings<br />
# delete the bad tests from wordpress-tests/wp-testcase/test-xmlrpc-api<br />
# php wordpress-tests php -l<br />
<br />
==Wordpress test results==<br />
===zend php - wordpress trunk===<br />
Tests: 758, Assertions: 4684, Failures: 60, Skipped: 41.<br />
<br />
=PHPUnit=<br />
==php classes used by PHPUnit==<br />
# Countable<br />
# DOMXPath<br />
# Exception<br />
# InvalidArgumentException<br />
# ReflectionClass<br />
# ReflectionMethod<br />
# ReflectionObject<br />
# ReflectionProperty<br />
# RuntimeException<br />
# SOAPClient<br />
<br />
==php functions used by PHPUnit==<br />
# TestCase<br />
# abs<br />
# accept<br />
# addFileToBlacklist<br />
# addFileToWhitelist<br />
# addcslashes<br />
# appendChild<br />
# argument<br />
# array_key_exists<br />
# array_keys<br />
# array_merge<br />
# array_pop<br />
# array_push<br />
# array_reverse<br />
# array_shift<br />
# array_unique<br />
# array_unshift<br />
# array_values<br />
# attach<br />
# basename<br />
# bin2hex<br />
# call_user_func_array<br />
# className<br />
# class_exists<br />
# clearstatcache<br />
# constant<br />
# debug_backtrace<br />
# define<br />
# defined<br />
# dirname<br />
# dump<br />
# each<br />
# empty<br />
# error_reporting<br />
# escapeshellcmd<br />
# eval<br />
# exception<br />
# exit<br />
# fclose<br />
# fflush<br />
# file<br />
# file_exists<br />
# file_get_contents<br />
# file_iterator_autoload<br />
# file_put_contents<br />
# filter<br />
# fopen<br />
# fsockopen<br />
# func_get_args<br />
# func_num_args<br />
# fwrite<br />
# getAttribute<br />
# getClass<br />
# getCode<br />
# getConstructor<br />
# getDeclaringClass<br />
# getDefaultValue<br />
# getDocComment<br />
# getElementsByTagName<br />
# getEndLine<br />
# getExtensionName<br />
# getFile<br />
# getFileName<br />
# getFilesAsArray<br />
# getInfo<br />
# getLine<br />
# getMethod<br />
# getParameters<br />
# getParentClass<br />
# getProperty<br />
# getStartLine<br />
# getStaticProperties<br />
# getTrace<br />
# getValue<br />
# get_class<br />
# get_class_methods<br />
# get_declared_classes<br />
# get_defined_vars<br />
# get_include_path<br />
# get_included_files<br />
# gettype<br />
# handler<br />
# hasProperty<br />
# htmlspecialchars<br />
# in_array<br />
# ini_set<br />
# interface_exists<br />
# isAbstract<br />
# isCloneable<br />
# isConstructor<br />
# isFinal<br />
# isInstantiable<br />
# isPublic<br />
# isStatic<br />
# isUserDefined<br />
# is_array<br />
# is_bool<br />
# is_callable<br />
# is_dir<br />
# is_double<br />
# is_file<br />
# is_float<br />
# is_infinite<br />
# is_int<br />
# is_integer<br />
# is_nan<br />
# is_null<br />
# is_numeric<br />
# is_object<br />
# is_readable<br />
# is_resource<br />
# is_scalar<br />
# is_string<br />
# isset<br />
# item<br />
# iterator_count<br />
# join<br />
# json_encode<br />
# libxml_get_errors<br />
# libxml_use_internal_errors<br />
# list<br />
# loadHTML<br />
# loadXML<br />
# mb_convert_encoding<br />
# method_exists<br />
# microtime<br />
# min<br />
# newInstance<br />
# newInstanceArgs<br />
# normalizeDocument<br />
# notifyMethod<br />
# ob_end_clean<br />
# ob_get_clean<br />
# ob_get_contents<br />
# ob_start<br />
# ord<br />
# php_codecoverage_autoload<br />
# php_invoker_autoload<br />
# php_timer_autoload<br />
# php_tokenstream_autoload<br />
# phpunit_dbunit_autoload<br />
# phpunit_selenium_autoload<br />
# phpunit_story_autoload<br />
# preg_match<br />
# print_r<br />
# proc_close<br />
# realpath<br />
# removeChild<br />
# removeFileFromBlacklist<br />
# removeFileFromWhitelist<br />
# render<br />
# reset<br />
# resourceUsage<br />
# restore_error_handler<br />
# saveXML<br />
# serialize<br />
# setCacheTokens<br />
# setlocale<br />
# settype<br />
# sfYamlDumper<br />
# sizeof<br />
# sort<br />
# spl_object_hash<br />
# start<br />
# stream_get_contents<br />
# stream_resolve_include_path<br />
# stripos<br />
# strlen<br />
# strpos<br />
# strstr<br />
# strtolower<br />
# strtoupper<br />
# substr<br />
# substr_count<br />
# substr_replace<br />
# suite<br />
# sys_get_temp_dir<br />
# testMethod<br />
# text_template_autoload<br />
# trait_exists<br />
# trim<br />
# ucfirst<br />
# unlink<br />
# unserialize<br />
# unset<br />
# utf8_encode<br />
# var_export<br />
# version_compare<br />
# withAnyParamers</div>
Nam
http://wiki3.caucho.com/User:Nam
User:Nam
2012-02-25T00:00:00Z
<p>Nam: </p>
<hr />
<div>Just getting the wordpress tests running on zend php was a challenge in itself. Ran into the following problems:<br />
<br />
=Introduction=<br />
* any fatal failure prevents rest of tests from running<br />
* does not list the currently running test nor file<br />
* some tests are using new wordpress features not checked into trunk<br />
* some tests has recent input data changes, but expected output was not updated in tandem<br />
* hopeless trying to run tests on non-trunk wordpress-3.3.1<br />
<br />
All in all, I had to delete about 70 borked tests.<br />
<br />
=Wordpress test suite=<br />
==Running wordpress tests on zend php==<br />
# svn checkout http://svn.automattic.com/wordpress-tests<br />
# sudo cp /etc/php.ini.default /etc/php.ini<br />
# curl http://pear.php.net/go-pear | sudo php<br />
#* update php.ini - yes<br />
# add pear to PATH (optional)<br />
# sudo pear channel-discover pear.phpunit.de<br />
# sudo pear install phpunit/PHPUnit<br />
# cp wordpress-tests/wp-config-sample.php wordpress-tests/wp-config.php<br />
# edit wp-config.php with test database settings<br />
# delete the bad tests from wordpress-tests/wp-testcase/test-xmlrpc-api<br />
# php wordpress-tests php -l<br />
<br />
==Wordpress test results==<br />
===zend php - wordpress trunk===<br />
Tests: 758, Assertions: 4684, Failures: 60, Skipped: 41.<br />
<br />
=PHPUnit=<br />
==php classes used by PHPUnit==<br />
# Countable<br />
# DOMXPath<br />
# Exception<br />
# InvalidArgumentException<br />
# ReflectionClass<br />
# ReflectionMethod<br />
# ReflectionObject<br />
# ReflectionProperty<br />
# RuntimeException<br />
# SOAPClient<br />
<br />
==php functions used by PHPUnit==<br />
# TestCase<br />
# abs<br />
# accept<br />
# addFileToBlacklist<br />
# addFileToWhitelist<br />
# addcslashes<br />
# appendChild<br />
# argument<br />
# array_key_exists<br />
# array_keys<br />
# array_merge<br />
# array_pop<br />
# array_push<br />
# array_reverse<br />
# array_shift<br />
# array_unique<br />
# array_unshift<br />
# array_values<br />
# attach<br />
# basename<br />
# bin2hex<br />
# call_user_func_array<br />
# className<br />
# class_exists<br />
# clearstatcache<br />
# constant<br />
# debug_backtrace<br />
# define<br />
# defined<br />
# dirname<br />
# dump<br />
# each<br />
# empty<br />
# error_reporting<br />
# escapeshellcmd<br />
# eval<br />
# exception<br />
# exit<br />
# fclose<br />
# fflush<br />
# file<br />
# file_exists<br />
# file_get_contents<br />
# file_iterator_autoload<br />
# file_put_contents<br />
# filter<br />
# fopen<br />
# fsockopen<br />
# func_get_args<br />
# func_num_args<br />
# fwrite<br />
# getAttribute<br />
# getClass<br />
# getCode<br />
# getConstructor<br />
# getDeclaringClass<br />
# getDefaultValue<br />
# getDocComment<br />
# getElementsByTagName<br />
# getEndLine<br />
# getExtensionName<br />
# getFile<br />
# getFileName<br />
# getFilesAsArray<br />
# getInfo<br />
# getLine<br />
# getMethod<br />
# getParameters<br />
# getParentClass<br />
# getProperty<br />
# getStartLine<br />
# getStaticProperties<br />
# getTrace<br />
# getValue<br />
# get_class<br />
# get_class_methods<br />
# get_declared_classes<br />
# get_defined_vars<br />
# get_include_path<br />
# get_included_files<br />
# gettype<br />
# handler<br />
# hasProperty<br />
# htmlspecialchars<br />
# in_array<br />
# ini_set<br />
# interface_exists<br />
# isAbstract<br />
# isCloneable<br />
# isConstructor<br />
# isFinal<br />
# isInstantiable<br />
# isPublic<br />
# isStatic<br />
# isUserDefined<br />
# is_array<br />
# is_bool<br />
# is_callable<br />
# is_dir<br />
# is_double<br />
# is_file<br />
# is_float<br />
# is_infinite<br />
# is_int<br />
# is_integer<br />
# is_nan<br />
# is_null<br />
# is_numeric<br />
# is_object<br />
# is_readable<br />
# is_resource<br />
# is_scalar<br />
# is_string<br />
# isset<br />
# item<br />
# iterator_count<br />
# join<br />
# json_encode<br />
# libxml_get_errors<br />
# libxml_use_internal_errors<br />
# list<br />
# loadHTML<br />
# loadXML<br />
# mb_convert_encoding<br />
# method_exists<br />
# microtime<br />
# min<br />
# newInstance<br />
# newInstanceArgs<br />
# normalizeDocument<br />
# notifyMethod<br />
# ob_end_clean<br />
# ob_get_clean<br />
# ob_get_contents<br />
# ob_start<br />
# ord<br />
# php_codecoverage_autoload<br />
# php_invoker_autoload<br />
# php_timer_autoload<br />
# php_tokenstream_autoload<br />
# phpunit_dbunit_autoload<br />
# phpunit_selenium_autoload<br />
# phpunit_story_autoload<br />
# preg_match<br />
# print_r<br />
# proc_close<br />
# realpath<br />
# removeChild<br />
# removeFileFromBlacklist<br />
# removeFileFromWhitelist<br />
# render<br />
# reset<br />
# resourceUsage<br />
# restore_error_handler<br />
# saveXML<br />
# serialize<br />
# setCacheTokens<br />
# setlocale<br />
# settype<br />
# sfYamlDumper<br />
# sizeof<br />
# sort<br />
# spl_object_hash<br />
# start<br />
# stream_get_contents<br />
# stream_resolve_include_path<br />
# stripos<br />
# strlen<br />
# strpos<br />
# strstr<br />
# strtolower<br />
# strtoupper<br />
# substr<br />
# substr_count<br />
# substr_replace<br />
# suite<br />
# sys_get_temp_dir<br />
# testMethod<br />
# text_template_autoload<br />
# trait_exists<br />
# trim<br />
# ucfirst<br />
# unlink<br />
# unserialize<br />
# unset<br />
# utf8_encode<br />
# var_export<br />
# version_compare<br />
# withAnyParamers</div>
Nam
http://wiki3.caucho.com/User:Nam
User:Nam
2012-02-25T00:00:00Z
<p>Nam: </p>
<hr />
<div>Just getting the wordpress tests running on zend php was a challenge in itself. Ran into the following problems:<br />
<br />
=Introduction=<br />
* any fatal failure prevents rest of tests from running<br />
* does not list the currently running test nor file<br />
* some tests are using new wordpress features not checked into trunk<br />
* some tests has recent input data changes, but expected output was not updated in tandem<br />
* hopeless trying to run tests on non-trunk wordpress-3.3.1<br />
<br />
All in all, I had to delete about 70 borked tests.<br />
<br />
=Wordpress test suite=<br />
==Running wordpress tests on zend php==<br />
# svn checkout http://svn.automattic.com/wordpress-tests<br />
# sudo cp /etc/php.ini.default /etc/php.ini<br />
# curl http://pear.php.net/go-pear | sudo php<br />
#* update php.ini - yes<br />
# add pear to PATH (optional)<br />
# sudo pear channel-discover pear.phpunit.de<br />
# sudo pear install phpunit/PHPUnit<br />
# cp wordpress-tests/wp-config-sample.php wordpress-tests/wp-config.php<br />
# edit wp-config.php with test database settings<br />
# delete the bad tests from wordpress-tests/wp-testcase/test-xmlrpc-api<br />
# php wordpress-tests php -l<br />
<br />
==Wordpress test results=-<br />
===zend php - wordpress trunk===<br />
Tests: 758, Assertions: 4684, Failures: 60, Skipped: 41.<br />
<br />
=PHPUnit=<br />
==php classes used by PHPUnit==<br />
# Countable<br />
# DOMXPath<br />
# Exception<br />
# InvalidArgumentException<br />
# ReflectionClass<br />
# ReflectionMethod<br />
# ReflectionObject<br />
# ReflectionProperty<br />
# RuntimeException<br />
# SOAPClient<br />
<br />
==php functions used by PHPUnit==<br />
# TestCase<br />
# abs<br />
# accept<br />
# addFileToBlacklist<br />
# addFileToWhitelist<br />
# addcslashes<br />
# appendChild<br />
# argument<br />
# array_key_exists<br />
# array_keys<br />
# array_merge<br />
# array_pop<br />
# array_push<br />
# array_reverse<br />
# array_shift<br />
# array_unique<br />
# array_unshift<br />
# array_values<br />
# attach<br />
# basename<br />
# bin2hex<br />
# call_user_func_array<br />
# className<br />
# class_exists<br />
# clearstatcache<br />
# constant<br />
# debug_backtrace<br />
# define<br />
# defined<br />
# dirname<br />
# dump<br />
# each<br />
# empty<br />
# error_reporting<br />
# escapeshellcmd<br />
# eval<br />
# exception<br />
# exit<br />
# fclose<br />
# fflush<br />
# file<br />
# file_exists<br />
# file_get_contents<br />
# file_iterator_autoload<br />
# file_put_contents<br />
# filter<br />
# fopen<br />
# fsockopen<br />
# func_get_args<br />
# func_num_args<br />
# fwrite<br />
# getAttribute<br />
# getClass<br />
# getCode<br />
# getConstructor<br />
# getDeclaringClass<br />
# getDefaultValue<br />
# getDocComment<br />
# getElementsByTagName<br />
# getEndLine<br />
# getExtensionName<br />
# getFile<br />
# getFileName<br />
# getFilesAsArray<br />
# getInfo<br />
# getLine<br />
# getMethod<br />
# getParameters<br />
# getParentClass<br />
# getProperty<br />
# getStartLine<br />
# getStaticProperties<br />
# getTrace<br />
# getValue<br />
# get_class<br />
# get_class_methods<br />
# get_declared_classes<br />
# get_defined_vars<br />
# get_include_path<br />
# get_included_files<br />
# gettype<br />
# handler<br />
# hasProperty<br />
# htmlspecialchars<br />
# in_array<br />
# ini_set<br />
# interface_exists<br />
# isAbstract<br />
# isCloneable<br />
# isConstructor<br />
# isFinal<br />
# isInstantiable<br />
# isPublic<br />
# isStatic<br />
# isUserDefined<br />
# is_array<br />
# is_bool<br />
# is_callable<br />
# is_dir<br />
# is_double<br />
# is_file<br />
# is_float<br />
# is_infinite<br />
# is_int<br />
# is_integer<br />
# is_nan<br />
# is_null<br />
# is_numeric<br />
# is_object<br />
# is_readable<br />
# is_resource<br />
# is_scalar<br />
# is_string<br />
# isset<br />
# item<br />
# iterator_count<br />
# join<br />
# json_encode<br />
# libxml_get_errors<br />
# libxml_use_internal_errors<br />
# list<br />
# loadHTML<br />
# loadXML<br />
# mb_convert_encoding<br />
# method_exists<br />
# microtime<br />
# min<br />
# newInstance<br />
# newInstanceArgs<br />
# normalizeDocument<br />
# notifyMethod<br />
# ob_end_clean<br />
# ob_get_clean<br />
# ob_get_contents<br />
# ob_start<br />
# ord<br />
# php_codecoverage_autoload<br />
# php_invoker_autoload<br />
# php_timer_autoload<br />
# php_tokenstream_autoload<br />
# phpunit_dbunit_autoload<br />
# phpunit_selenium_autoload<br />
# phpunit_story_autoload<br />
# preg_match<br />
# print_r<br />
# proc_close<br />
# realpath<br />
# removeChild<br />
# removeFileFromBlacklist<br />
# removeFileFromWhitelist<br />
# render<br />
# reset<br />
# resourceUsage<br />
# restore_error_handler<br />
# saveXML<br />
# serialize<br />
# setCacheTokens<br />
# setlocale<br />
# settype<br />
# sfYamlDumper<br />
# sizeof<br />
# sort<br />
# spl_object_hash<br />
# start<br />
# stream_get_contents<br />
# stream_resolve_include_path<br />
# stripos<br />
# strlen<br />
# strpos<br />
# strstr<br />
# strtolower<br />
# strtoupper<br />
# substr<br />
# substr_count<br />
# substr_replace<br />
# suite<br />
# sys_get_temp_dir<br />
# testMethod<br />
# text_template_autoload<br />
# trait_exists<br />
# trim<br />
# ucfirst<br />
# unlink<br />
# unserialize<br />
# unset<br />
# utf8_encode<br />
# var_export<br />
# version_compare<br />
# withAnyParamers</div>
Nam
http://wiki3.caucho.com/User:Nam
User:Nam
2012-02-25T00:00:00Z
<p>Nam: </p>
<hr />
<div>Just getting the wordpress tests running on zend php was a challenge in itself. Ran into the following problems:<br />
<br />
=Introduction=<br />
* any fatal failure prevents rest of tests from running<br />
* does not list the currently running test nor file<br />
* some tests are using new wordpress features not checked into trunk<br />
* some tests has recent input data changes, but expected output was not updated in tandem<br />
* hopeless trying to run tests on non-trunk wordpress-3.3.1<br />
<br />
All in all, I had to delete about 70 borked tests.<br />
<br />
=Wordpress test results=<br />
==zend php - wordpress trunk==<br />
Tests: 758, Assertions: 4684, Failures: 60, Skipped: 41.<br />
<br />
=Running wordpress tests on zend php=<br />
# svn checkout http://svn.automattic.com/wordpress-tests<br />
# sudo cp /etc/php.ini.default /etc/php.ini<br />
# curl http://pear.php.net/go-pear | sudo php<br />
#* update php.ini - yes<br />
# add pear to PATH (optional)<br />
# sudo pear channel-discover pear.phpunit.de<br />
# sudo pear install phpunit/PHPUnit<br />
# cp wordpress-tests/wp-config-sample.php wordpress-tests/wp-config.php<br />
# edit wp-config.php with test database settings<br />
# delete the bad tests from wordpress-tests/wp-testcase/test-xmlrpc-api<br />
# php wordpress-tests php -l<br />
<br />
=PHPUnit=<br />
==php classes used by PHPUnit==<br />
# Countable<br />
# DOMXPath<br />
# Exception<br />
# InvalidArgumentException<br />
# ReflectionClass<br />
# ReflectionMethod<br />
# ReflectionObject<br />
# ReflectionProperty<br />
# RuntimeException<br />
# SOAPClient<br />
<br />
==php functions used by PHPUnit==<br />
# TestCase<br />
# abs<br />
# accept<br />
# addFileToBlacklist<br />
# addFileToWhitelist<br />
# addcslashes<br />
# appendChild<br />
# argument<br />
# array_key_exists<br />
# array_keys<br />
# array_merge<br />
# array_pop<br />
# array_push<br />
# array_reverse<br />
# array_shift<br />
# array_unique<br />
# array_unshift<br />
# array_values<br />
# attach<br />
# basename<br />
# bin2hex<br />
# call_user_func_array<br />
# className<br />
# class_exists<br />
# clearstatcache<br />
# constant<br />
# debug_backtrace<br />
# define<br />
# defined<br />
# dirname<br />
# dump<br />
# each<br />
# empty<br />
# error_reporting<br />
# escapeshellcmd<br />
# eval<br />
# exception<br />
# exit<br />
# fclose<br />
# fflush<br />
# file<br />
# file_exists<br />
# file_get_contents<br />
# file_iterator_autoload<br />
# file_put_contents<br />
# filter<br />
# fopen<br />
# fsockopen<br />
# func_get_args<br />
# func_num_args<br />
# fwrite<br />
# getAttribute<br />
# getClass<br />
# getCode<br />
# getConstructor<br />
# getDeclaringClass<br />
# getDefaultValue<br />
# getDocComment<br />
# getElementsByTagName<br />
# getEndLine<br />
# getExtensionName<br />
# getFile<br />
# getFileName<br />
# getFilesAsArray<br />
# getInfo<br />
# getLine<br />
# getMethod<br />
# getParameters<br />
# getParentClass<br />
# getProperty<br />
# getStartLine<br />
# getStaticProperties<br />
# getTrace<br />
# getValue<br />
# get_class<br />
# get_class_methods<br />
# get_declared_classes<br />
# get_defined_vars<br />
# get_include_path<br />
# get_included_files<br />
# gettype<br />
# handler<br />
# hasProperty<br />
# htmlspecialchars<br />
# in_array<br />
# ini_set<br />
# interface_exists<br />
# isAbstract<br />
# isCloneable<br />
# isConstructor<br />
# isFinal<br />
# isInstantiable<br />
# isPublic<br />
# isStatic<br />
# isUserDefined<br />
# is_array<br />
# is_bool<br />
# is_callable<br />
# is_dir<br />
# is_double<br />
# is_file<br />
# is_float<br />
# is_infinite<br />
# is_int<br />
# is_integer<br />
# is_nan<br />
# is_null<br />
# is_numeric<br />
# is_object<br />
# is_readable<br />
# is_resource<br />
# is_scalar<br />
# is_string<br />
# isset<br />
# item<br />
# iterator_count<br />
# join<br />
# json_encode<br />
# libxml_get_errors<br />
# libxml_use_internal_errors<br />
# list<br />
# loadHTML<br />
# loadXML<br />
# mb_convert_encoding<br />
# method_exists<br />
# microtime<br />
# min<br />
# newInstance<br />
# newInstanceArgs<br />
# normalizeDocument<br />
# notifyMethod<br />
# ob_end_clean<br />
# ob_get_clean<br />
# ob_get_contents<br />
# ob_start<br />
# ord<br />
# php_codecoverage_autoload<br />
# php_invoker_autoload<br />
# php_timer_autoload<br />
# php_tokenstream_autoload<br />
# phpunit_dbunit_autoload<br />
# phpunit_selenium_autoload<br />
# phpunit_story_autoload<br />
# preg_match<br />
# print_r<br />
# proc_close<br />
# realpath<br />
# removeChild<br />
# removeFileFromBlacklist<br />
# removeFileFromWhitelist<br />
# render<br />
# reset<br />
# resourceUsage<br />
# restore_error_handler<br />
# saveXML<br />
# serialize<br />
# setCacheTokens<br />
# setlocale<br />
# settype<br />
# sfYamlDumper<br />
# sizeof<br />
# sort<br />
# spl_object_hash<br />
# start<br />
# stream_get_contents<br />
# stream_resolve_include_path<br />
# stripos<br />
# strlen<br />
# strpos<br />
# strstr<br />
# strtolower<br />
# strtoupper<br />
# substr<br />
# substr_count<br />
# substr_replace<br />
# suite<br />
# sys_get_temp_dir<br />
# testMethod<br />
# text_template_autoload<br />
# trait_exists<br />
# trim<br />
# ucfirst<br />
# unlink<br />
# unserialize<br />
# unset<br />
# utf8_encode<br />
# var_export<br />
# version_compare<br />
# withAnyParamers</div>
Nam
http://wiki3.caucho.com/User:Nam
User:Nam
2012-02-25T00:00:00Z
<p>Nam: </p>
<hr />
<div>Just getting the wordpress tests running on zend php was a challenge in itself. Ran into the following problems:<br />
<br />
=Introduction=<br />
* any fatal failure prevents rest of tests from running<br />
* does not list the currently running test nor file<br />
* some tests are using new wordpress features not checked into trunk<br />
* some tests has recent input data changes, but expected output was not updated in tandem<br />
* hopeless trying to run tests on non-trunk wordpress-3.3.1<br />
<br />
All in all, I had to delete about 70 borked tests.<br />
<br />
=Wordpress test results=<br />
==zend php - wordpress trunk==<br />
Tests: 758, Assertions: 4684, Failures: 60, Skipped: 41.<br />
<br />
=Running wordpress tests on zend php=<br />
# svn checkout http://svn.automattic.com/wordpress-tests<br />
# sudo cp /etc/php.ini.default /etc/php.ini<br />
# curl http://pear.php.net/go-pear | sudo php<br />
#* update php.ini - yes<br />
# add pear to PATH (optional)<br />
# sudo pear channel-discover pear.phpunit.de<br />
# sudo pear install phpunit/PHPUnit<br />
# cp wordpress-tests/wp-config-sample.php wordpress-tests/wp-config.php<br />
# edit wp-config.php with test database settings<br />
# delete the bad tests from wordpress-tests/wp-testcase/test-xmlrpc-api<br />
# php wordpress-tests php -l<br />
<br />
=PHPUnit=<br />
==php classes used by PHPUnit==<br />
# Countable<br />
# Exception<br />
# RuntimeException<br />
# SOAPClient<br />
# DOMXPath<br />
# InvalidArgumentException<br />
# ReflectionClass<br />
# ReflectionMethod<br />
# ReflectionObject<br />
# ReflectionProperty<br />
# RuntimeException<br />
# SOAPClient<br />
<br />
==php functions used by PHPUnit==<br />
# TestCase<br />
# abs<br />
# accept<br />
# addFileToBlacklist<br />
# addFileToWhitelist<br />
# addcslashes<br />
# appendChild<br />
# argument<br />
# array_key_exists<br />
# array_keys<br />
# array_merge<br />
# array_pop<br />
# array_push<br />
# array_reverse<br />
# array_shift<br />
# array_unique<br />
# array_unshift<br />
# array_values<br />
# attach<br />
# basename<br />
# bin2hex<br />
# call_user_func_array<br />
# className<br />
# class_exists<br />
# clearstatcache<br />
# constant<br />
# debug_backtrace<br />
# define<br />
# defined<br />
# dirname<br />
# dump<br />
# each<br />
# empty<br />
# error_reporting<br />
# escapeshellcmd<br />
# eval<br />
# exception<br />
# exit<br />
# fclose<br />
# fflush<br />
# file<br />
# file_exists<br />
# file_get_contents<br />
# file_iterator_autoload<br />
# file_put_contents<br />
# filter<br />
# fopen<br />
# fsockopen<br />
# func_get_args<br />
# func_num_args<br />
# fwrite<br />
# getAttribute<br />
# getClass<br />
# getCode<br />
# getConstructor<br />
# getDeclaringClass<br />
# getDefaultValue<br />
# getDocComment<br />
# getElementsByTagName<br />
# getEndLine<br />
# getExtensionName<br />
# getFile<br />
# getFileName<br />
# getFilesAsArray<br />
# getInfo<br />
# getLine<br />
# getMethod<br />
# getParameters<br />
# getParentClass<br />
# getProperty<br />
# getStartLine<br />
# getStaticProperties<br />
# getTrace<br />
# getValue<br />
# get_class<br />
# get_class_methods<br />
# get_declared_classes<br />
# get_defined_vars<br />
# get_include_path<br />
# get_included_files<br />
# gettype<br />
# handler<br />
# hasProperty<br />
# htmlspecialchars<br />
# in_array<br />
# ini_set<br />
# interface_exists<br />
# isAbstract<br />
# isCloneable<br />
# isConstructor<br />
# isFinal<br />
# isInstantiable<br />
# isPublic<br />
# isStatic<br />
# isUserDefined<br />
# is_array<br />
# is_bool<br />
# is_callable<br />
# is_dir<br />
# is_double<br />
# is_file<br />
# is_float<br />
# is_infinite<br />
# is_int<br />
# is_integer<br />
# is_nan<br />
# is_null<br />
# is_numeric<br />
# is_object<br />
# is_readable<br />
# is_resource<br />
# is_scalar<br />
# is_string<br />
# isset<br />
# item<br />
# iterator_count<br />
# join<br />
# json_encode<br />
# libxml_get_errors<br />
# libxml_use_internal_errors<br />
# list<br />
# loadHTML<br />
# loadXML<br />
# mb_convert_encoding<br />
# method_exists<br />
# microtime<br />
# min<br />
# newInstance<br />
# newInstanceArgs<br />
# normalizeDocument<br />
# notifyMethod<br />
# ob_end_clean<br />
# ob_get_clean<br />
# ob_get_contents<br />
# ob_start<br />
# ord<br />
# php_codecoverage_autoload<br />
# php_invoker_autoload<br />
# php_timer_autoload<br />
# php_tokenstream_autoload<br />
# phpunit_dbunit_autoload<br />
# phpunit_selenium_autoload<br />
# phpunit_story_autoload<br />
# preg_match<br />
# print_r<br />
# proc_close<br />
# realpath<br />
# removeChild<br />
# removeFileFromBlacklist<br />
# removeFileFromWhitelist<br />
# render<br />
# reset<br />
# resourceUsage<br />
# restore_error_handler<br />
# saveXML<br />
# serialize<br />
# setCacheTokens<br />
# setlocale<br />
# settype<br />
# sfYamlDumper<br />
# sizeof<br />
# sort<br />
# spl_object_hash<br />
# start<br />
# stream_get_contents<br />
# stream_resolve_include_path<br />
# stripos<br />
# strlen<br />
# strpos<br />
# strstr<br />
# strtolower<br />
# strtoupper<br />
# substr<br />
# substr_count<br />
# substr_replace<br />
# suite<br />
# sys_get_temp_dir<br />
# testMethod<br />
# text_template_autoload<br />
# trait_exists<br />
# trim<br />
# ucfirst<br />
# unlink<br />
# unserialize<br />
# unset<br />
# utf8_encode<br />
# var_export<br />
# version_compare<br />
# withAnyParamers</div>
Nam
http://wiki3.caucho.com/User:Nam
User:Nam
2012-02-25T00:00:00Z
<p>Nam: </p>
<hr />
<div>Just getting the wordpress tests running on zend php was a challenge in itself. Ran into the following problems:<br />
<br />
=Introduction=<br />
* any fatal failure prevents rest of tests from running<br />
* does not list the currently running test nor file<br />
* some tests are using new wordpress features not checked into trunk<br />
* some tests has recent input data changes, but expected output was not updated in tandem<br />
* hopeless trying to run tests on non-trunk wordpress-3.3.1<br />
<br />
All in all, I had to delete about 70 borked tests.<br />
<br />
=Wordpress test results=<br />
==zend php - wordpress trunk==<br />
Tests: 758, Assertions: 4684, Failures: 60, Skipped: 41.<br />
<br />
=Running wordpress tests on zend php=<br />
# sudo cp /etc/php.ini.default /etc/php.ini<br />
# curl http://pear.php.net/go-pear | sudo php<br />
#* update php.ini - yes<br />
# add pear to PATH (optional)<br />
# sudo pear channel-discover pear.phpunit.de<br />
# sudo pear install phpunit/PHPUnit<br />
# cp wordpress-tests/wp-config-sample.php wordpress-tests/wp-config.php<br />
# edit wp-config.php with correct database settings<br />
# delete the bad tests from wordpress-tests/wp-testcase/test-xmlrpc-api<br />
# php wordpress-tests php -l<br />
<br />
=PHPUnit=<br />
==php classes used by PHPUnit==<br />
# Countable<br />
# Exception<br />
# RuntimeException<br />
# SOAPClient<br />
# DOMXPath<br />
# InvalidArgumentException<br />
# ReflectionClass<br />
# ReflectionMethod<br />
# ReflectionObject<br />
# ReflectionProperty<br />
# RuntimeException<br />
# SOAPClient<br />
<br />
==php functions used by PHPUnit==<br />
# TestCase<br />
# abs<br />
# accept<br />
# addFileToBlacklist<br />
# addFileToWhitelist<br />
# addcslashes<br />
# appendChild<br />
# argument<br />
# array_key_exists<br />
# array_keys<br />
# array_merge<br />
# array_pop<br />
# array_push<br />
# array_reverse<br />
# array_shift<br />
# array_unique<br />
# array_unshift<br />
# array_values<br />
# attach<br />
# basename<br />
# bin2hex<br />
# call_user_func_array<br />
# className<br />
# class_exists<br />
# clearstatcache<br />
# constant<br />
# debug_backtrace<br />
# define<br />
# defined<br />
# dirname<br />
# dump<br />
# each<br />
# empty<br />
# error_reporting<br />
# escapeshellcmd<br />
# eval<br />
# exception<br />
# exit<br />
# fclose<br />
# fflush<br />
# file<br />
# file_exists<br />
# file_get_contents<br />
# file_iterator_autoload<br />
# file_put_contents<br />
# filter<br />
# fopen<br />
# fsockopen<br />
# func_get_args<br />
# func_num_args<br />
# fwrite<br />
# getAttribute<br />
# getClass<br />
# getCode<br />
# getConstructor<br />
# getDeclaringClass<br />
# getDefaultValue<br />
# getDocComment<br />
# getElementsByTagName<br />
# getEndLine<br />
# getExtensionName<br />
# getFile<br />
# getFileName<br />
# getFilesAsArray<br />
# getInfo<br />
# getLine<br />
# getMethod<br />
# getParameters<br />
# getParentClass<br />
# getProperty<br />
# getStartLine<br />
# getStaticProperties<br />
# getTrace<br />
# getValue<br />
# get_class<br />
# get_class_methods<br />
# get_declared_classes<br />
# get_defined_vars<br />
# get_include_path<br />
# get_included_files<br />
# gettype<br />
# handler<br />
# hasProperty<br />
# htmlspecialchars<br />
# in_array<br />
# ini_set<br />
# interface_exists<br />
# isAbstract<br />
# isCloneable<br />
# isConstructor<br />
# isFinal<br />
# isInstantiable<br />
# isPublic<br />
# isStatic<br />
# isUserDefined<br />
# is_array<br />
# is_bool<br />
# is_callable<br />
# is_dir<br />
# is_double<br />
# is_file<br />
# is_float<br />
# is_infinite<br />
# is_int<br />
# is_integer<br />
# is_nan<br />
# is_null<br />
# is_numeric<br />
# is_object<br />
# is_readable<br />
# is_resource<br />
# is_scalar<br />
# is_string<br />
# isset<br />
# item<br />
# iterator_count<br />
# join<br />
# json_encode<br />
# libxml_get_errors<br />
# libxml_use_internal_errors<br />
# list<br />
# loadHTML<br />
# loadXML<br />
# mb_convert_encoding<br />
# method_exists<br />
# microtime<br />
# min<br />
# newInstance<br />
# newInstanceArgs<br />
# normalizeDocument<br />
# notifyMethod<br />
# ob_end_clean<br />
# ob_get_clean<br />
# ob_get_contents<br />
# ob_start<br />
# ord<br />
# php_codecoverage_autoload<br />
# php_invoker_autoload<br />
# php_timer_autoload<br />
# php_tokenstream_autoload<br />
# phpunit_dbunit_autoload<br />
# phpunit_selenium_autoload<br />
# phpunit_story_autoload<br />
# preg_match<br />
# print_r<br />
# proc_close<br />
# realpath<br />
# removeChild<br />
# removeFileFromBlacklist<br />
# removeFileFromWhitelist<br />
# render<br />
# reset<br />
# resourceUsage<br />
# restore_error_handler<br />
# saveXML<br />
# serialize<br />
# setCacheTokens<br />
# setlocale<br />
# settype<br />
# sfYamlDumper<br />
# sizeof<br />
# sort<br />
# spl_object_hash<br />
# start<br />
# stream_get_contents<br />
# stream_resolve_include_path<br />
# stripos<br />
# strlen<br />
# strpos<br />
# strstr<br />
# strtolower<br />
# strtoupper<br />
# substr<br />
# substr_count<br />
# substr_replace<br />
# suite<br />
# sys_get_temp_dir<br />
# testMethod<br />
# text_template_autoload<br />
# trait_exists<br />
# trim<br />
# ucfirst<br />
# unlink<br />
# unserialize<br />
# unset<br />
# utf8_encode<br />
# var_export<br />
# version_compare<br />
# withAnyParamers</div>
Nam
http://wiki3.caucho.com/User:Nam
User:Nam
2012-02-25T00:00:00Z
<p>Nam: </p>
<hr />
<div>Just getting the wordpress tests running on zend php was a challenge in itself. Ran into the following problems:<br />
<br />
=Introduction=<br />
* any fatal failure prevents rest of tests from running<br />
* does not list the currently running test nor file<br />
* some tests are using new wordpress features not checked into trunk<br />
* some tests has recent input data changes, but expected output was not updated in tandem<br />
* hopeless trying to run tests on non-trunk wordpress-3.3.1<br />
<br />
All in all, I had to delete about 70 borked tests.<br />
<br />
=Wordpress test results=<br />
==zend php - wordpress trunk==<br />
Tests: 758, Assertions: 4684, Failures: 60, Skipped: 41.<br />
<br />
=Bad wordpress tests=<br />
# wp-testcase/test-xmlrpc-api/*<br />
<br />
=PHPUnit=<br />
==php classes used by PHPUnit==<br />
# Countable<br />
# Exception<br />
# RuntimeException<br />
# SOAPClient<br />
# DOMXPath<br />
# InvalidArgumentException<br />
# ReflectionClass<br />
# ReflectionMethod<br />
# ReflectionObject<br />
# ReflectionProperty<br />
# RuntimeException<br />
# SOAPClient<br />
<br />
==php functions used by PHPUnit==<br />
# TestCase<br />
# abs<br />
# accept<br />
# addFileToBlacklist<br />
# addFileToWhitelist<br />
# addcslashes<br />
# appendChild<br />
# argument<br />
# array_key_exists<br />
# array_keys<br />
# array_merge<br />
# array_pop<br />
# array_push<br />
# array_reverse<br />
# array_shift<br />
# array_unique<br />
# array_unshift<br />
# array_values<br />
# attach<br />
# basename<br />
# bin2hex<br />
# call_user_func_array<br />
# className<br />
# class_exists<br />
# clearstatcache<br />
# constant<br />
# debug_backtrace<br />
# define<br />
# defined<br />
# dirname<br />
# dump<br />
# each<br />
# empty<br />
# error_reporting<br />
# escapeshellcmd<br />
# eval<br />
# exception<br />
# exit<br />
# fclose<br />
# fflush<br />
# file<br />
# file_exists<br />
# file_get_contents<br />
# file_iterator_autoload<br />
# file_put_contents<br />
# filter<br />
# fopen<br />
# fsockopen<br />
# func_get_args<br />
# func_num_args<br />
# fwrite<br />
# getAttribute<br />
# getClass<br />
# getCode<br />
# getConstructor<br />
# getDeclaringClass<br />
# getDefaultValue<br />
# getDocComment<br />
# getElementsByTagName<br />
# getEndLine<br />
# getExtensionName<br />
# getFile<br />
# getFileName<br />
# getFilesAsArray<br />
# getInfo<br />
# getLine<br />
# getMethod<br />
# getParameters<br />
# getParentClass<br />
# getProperty<br />
# getStartLine<br />
# getStaticProperties<br />
# getTrace<br />
# getValue<br />
# get_class<br />
# get_class_methods<br />
# get_declared_classes<br />
# get_defined_vars<br />
# get_include_path<br />
# get_included_files<br />
# gettype<br />
# handler<br />
# hasProperty<br />
# htmlspecialchars<br />
# in_array<br />
# ini_set<br />
# interface_exists<br />
# isAbstract<br />
# isCloneable<br />
# isConstructor<br />
# isFinal<br />
# isInstantiable<br />
# isPublic<br />
# isStatic<br />
# isUserDefined<br />
# is_array<br />
# is_bool<br />
# is_callable<br />
# is_dir<br />
# is_double<br />
# is_file<br />
# is_float<br />
# is_infinite<br />
# is_int<br />
# is_integer<br />
# is_nan<br />
# is_null<br />
# is_numeric<br />
# is_object<br />
# is_readable<br />
# is_resource<br />
# is_scalar<br />
# is_string<br />
# isset<br />
# item<br />
# iterator_count<br />
# join<br />
# json_encode<br />
# libxml_get_errors<br />
# libxml_use_internal_errors<br />
# list<br />
# loadHTML<br />
# loadXML<br />
# mb_convert_encoding<br />
# method_exists<br />
# microtime<br />
# min<br />
# newInstance<br />
# newInstanceArgs<br />
# normalizeDocument<br />
# notifyMethod<br />
# ob_end_clean<br />
# ob_get_clean<br />
# ob_get_contents<br />
# ob_start<br />
# ord<br />
# php_codecoverage_autoload<br />
# php_invoker_autoload<br />
# php_timer_autoload<br />
# php_tokenstream_autoload<br />
# phpunit_dbunit_autoload<br />
# phpunit_selenium_autoload<br />
# phpunit_story_autoload<br />
# preg_match<br />
# print_r<br />
# proc_close<br />
# realpath<br />
# removeChild<br />
# removeFileFromBlacklist<br />
# removeFileFromWhitelist<br />
# render<br />
# reset<br />
# resourceUsage<br />
# restore_error_handler<br />
# saveXML<br />
# serialize<br />
# setCacheTokens<br />
# setlocale<br />
# settype<br />
# sfYamlDumper<br />
# sizeof<br />
# sort<br />
# spl_object_hash<br />
# start<br />
# stream_get_contents<br />
# stream_resolve_include_path<br />
# stripos<br />
# strlen<br />
# strpos<br />
# strstr<br />
# strtolower<br />
# strtoupper<br />
# substr<br />
# substr_count<br />
# substr_replace<br />
# suite<br />
# sys_get_temp_dir<br />
# testMethod<br />
# text_template_autoload<br />
# trait_exists<br />
# trim<br />
# ucfirst<br />
# unlink<br />
# unserialize<br />
# unset<br />
# utf8_encode<br />
# var_export<br />
# version_compare<br />
# withAnyParamers</div>
Nam
http://wiki3.caucho.com/User:Nam
User:Nam
2012-02-25T00:00:00Z
<p>Nam: Created page with "Just getting the wordpress tests running on zend php was a challenge in itself. Ran into the following problems: * any fatal failure prevents rest of tests from running * do..."</p>
<hr />
<div>Just getting the wordpress tests running on zend php was a challenge in itself. Ran into the following problems:<br />
<br />
* any fatal failure prevents rest of tests from running<br />
* does not list the currently running test nor file<br />
* some tests are using new wordpress features not checked into trunk<br />
* some tests has recent input data changes, but expected output was not updated in tandem<br />
* hopeless trying to run tests on non-trunk wordpress-3.3.1<br />
<br />
All in all, I had to delete about 70 borked tests.<br />
<br />
=Wordpress test results=<br />
==zend php - wordpress trunk==<br />
Tests: 758, Assertions: 4684, Failures: 60, Skipped: 41.<br />
<br />
=PHPUnit=<br />
==php classes used by PHPUnit==<br />
# Countable<br />
# Exception<br />
# RuntimeException<br />
# SOAPClient<br />
# DOMXPath<br />
# InvalidArgumentException<br />
# ReflectionClass<br />
# ReflectionMethod<br />
# ReflectionObject<br />
# ReflectionProperty<br />
# RuntimeException<br />
# SOAPClient<br />
<br />
==php functions used by PHPUnit==<br />
# DOMXPath<br />
# InvalidArgumentException<br />
# ReflectionClass<br />
# ReflectionMethod<br />
# ReflectionObject<br />
# ReflectionProperty<br />
# RuntimeException<br />
# SOAPClient<br />
# TestCase<br />
# abs<br />
# accept<br />
# addFileToBlacklist<br />
# addFileToWhitelist<br />
# addcslashes<br />
# appendChild<br />
# argument<br />
# array_key_exists<br />
# array_keys<br />
# array_merge<br />
# array_pop<br />
# array_push<br />
# array_reverse<br />
# array_shift<br />
# array_unique<br />
# array_unshift<br />
# array_values<br />
# attach<br />
# basename<br />
# bin2hex<br />
# call_user_func_array<br />
# className<br />
# class_exists<br />
# clearstatcache<br />
# constant<br />
# debug_backtrace<br />
# define<br />
# defined<br />
# dirname<br />
# dump<br />
# each<br />
# empty<br />
# error_reporting<br />
# escapeshellcmd<br />
# eval<br />
# exception<br />
# exit<br />
# fclose<br />
# fflush<br />
# file<br />
# file_exists<br />
# file_get_contents<br />
# file_iterator_autoload<br />
# file_put_contents<br />
# filter<br />
# fopen<br />
# fsockopen<br />
# func_get_args<br />
# func_num_args<br />
# fwrite<br />
# getAttribute<br />
# getClass<br />
# getCode<br />
# getConstructor<br />
# getDeclaringClass<br />
# getDefaultValue<br />
# getDocComment<br />
# getElementsByTagName<br />
# getEndLine<br />
# getExtensionName<br />
# getFile<br />
# getFileName<br />
# getFilesAsArray<br />
# getInfo<br />
# getLine<br />
# getMethod<br />
# getParameters<br />
# getParentClass<br />
# getProperty<br />
# getStartLine<br />
# getStaticProperties<br />
# getTrace<br />
# getValue<br />
# get_class<br />
# get_class_methods<br />
# get_declared_classes<br />
# get_defined_vars<br />
# get_include_path<br />
# get_included_files<br />
# gettype<br />
# handler<br />
# hasProperty<br />
# htmlspecialchars<br />
# in_array<br />
# ini_set<br />
# interface_exists<br />
# isAbstract<br />
# isCloneable<br />
# isConstructor<br />
# isFinal<br />
# isInstantiable<br />
# isPublic<br />
# isStatic<br />
# isUserDefined<br />
# is_array<br />
# is_bool<br />
# is_callable<br />
# is_dir<br />
# is_double<br />
# is_file<br />
# is_float<br />
# is_infinite<br />
# is_int<br />
# is_integer<br />
# is_nan<br />
# is_null<br />
# is_numeric<br />
# is_object<br />
# is_readable<br />
# is_resource<br />
# is_scalar<br />
# is_string<br />
# isset<br />
# item<br />
# iterator_count<br />
# join<br />
# json_encode<br />
# libxml_get_errors<br />
# libxml_use_internal_errors<br />
# list<br />
# loadHTML<br />
# loadXML<br />
# mb_convert_encoding<br />
# method_exists<br />
# microtime<br />
# min<br />
# newInstance<br />
# newInstanceArgs<br />
# normalizeDocument<br />
# notifyMethod<br />
# ob_end_clean<br />
# ob_get_clean<br />
# ob_get_contents<br />
# ob_start<br />
# ord<br />
# php_codecoverage_autoload<br />
# php_invoker_autoload<br />
# php_timer_autoload<br />
# php_tokenstream_autoload<br />
# phpunit_dbunit_autoload<br />
# phpunit_selenium_autoload<br />
# phpunit_story_autoload<br />
# preg_match<br />
# print_r<br />
# proc_close<br />
# realpath<br />
# removeChild<br />
# removeFileFromBlacklist<br />
# removeFileFromWhitelist<br />
# render<br />
# reset<br />
# resourceUsage<br />
# restore_error_handler<br />
# saveXML<br />
# serialize<br />
# setCacheTokens<br />
# setlocale<br />
# settype<br />
# sfYamlDumper<br />
# sizeof<br />
# sort<br />
# spl_object_hash<br />
# start<br />
# stream_get_contents<br />
# stream_resolve_include_path<br />
# stripos<br />
# strlen<br />
# strpos<br />
# strstr<br />
# strtolower<br />
# strtoupper<br />
# substr<br />
# substr_count<br />
# substr_replace<br />
# suite<br />
# sys_get_temp_dir<br />
# testMethod<br />
# text_template_autoload<br />
# trait_exists<br />
# trim<br />
# ucfirst<br />
# unlink<br />
# unserialize<br />
# unset<br />
# utf8_encode<br />
# var_export<br />
# version_compare<br />
# withAnyParamers</div>
Nam
http://wiki3.caucho.com/Eclipse
Eclipse
2010-04-06T19:25:12Z
<p>Nam: </p>
<hr />
<div>The Resin Eclipse plugin is available on the Caucho Eclipse update site at [http://caucho.com/eclipse http://caucho.com/eclipse]. It is based on the WTP framework and features deployment modes for Resin 3.1 and 4.0. <br />
<br />
===Deployment styles===<br />
<br />
* .war file (default) - the plugin builds a .war file of your project, then starts Resin and copies the .war to the live deploy directory.<br />
* Temporary directory - the plugin builds a .war file of your project, then starts Resin and copies the .war to a temporary deploy directory.<br />
* In-place - the plugin starts Resin, then points it to server your project directly out of the workspace.<br />
* Hot-deploy - (Resin 4.0 only) the plugin builds a .war file of your project, then starts Resin and uses Resin's Git deployment functionality to deploy <br />
<br />
===Options for configuration===<br />
* The very basic configuration that's included with the plugin itself<br />
* The configuration in the "conf" subdirectory of the Resin home<br />
* A configuration somewhere else in the file system (e.g. /etc/resin). <br />
<br />
If you're starting a new project and don't need to do anything fancy, the first option is recommended, copying the configuration from the plugin. If you do need to use a custom configuration, you may need to modify it to recognize the variables that the plugin sets at runtime. The dialog box tells you what these variables are and how to set them, depending on which server profile you use.<br />
<br />
==Notes==<br />
* Eclipse must be run with a JDK, not simply a JRE, to use the Resin plugin.<br />
* The Resin plugin must be run on Eclipse Galileo with Java EE.<br />
* Windows Vista/7 users: administrator privileges may be required to install plugin.<br />
<br />
==References==<br />
* [http://blog.caucho.com/?p=228 Resin Eclipse plugin snapshot] (2009-08-18) - Blog post about using the plugin's Server configuration<br />
* [http://blog.caucho.com/?p=139 Remote deploy in Resin, Part 2] (2009-01-29) - Blog post about using host deploy</div>
Nam
http://wiki3.caucho.com/Quercus:_Command_Line_Interface_(CLI)
Quercus: Command Line Interface (CLI)
2009-10-21T15:21:29Z
<p>Nam: </p>
<hr />
<div>Quercus 4.0.2+ exposes a command-line interface (CLI) that is easier to use than the javax.script API that comes with Java 1.6. The CLI behaves similarly to PHP's CLI.<br />
<br />
=Executing a script on the command line=<br />
CliQuercus is the class that contains the <code>public void main()</code> method. To execute a script, you would need to pass in the filename to CliQuercus:<br />
<br />
<code><br />
java -cp resin.jar com.caucho.quercus.CliQuercus [flags] <file> [php-args]<br />
</code><br />
<br />
==CliQuercus example==<br />
<code><br />
java -cp resin.jar com.caucho.quercus.CliQuercus foo.php<br />
</code><br />
<br />
==Supported flags==<br />
The following optional flags are supported:<br />
<br />
<code><br />
-f : Explicitly sets the script filename.<br />
-d name=value : Sets a php ini value.<br />
</code><br />
<br />
=Programmatically executing PHP scripts from within Java=<br />
The generic method to call PHP scripts from Java is through the javax.script API. Quercus also offers a simpler interface with the QuercusEngine class. By default, the output goes to <code>System.out</code>.<br />
<br />
==QuercusEngine example==<br />
<code><br />
QuercusEngine engine = new QuercusEngine();<br />
engine.setIni("foo", "bar");<br />
engine.execute("<?php var_dump(ini_get('foo')); ?>");<br />
</code><br />
<br />
==File example==<br />
<code><br />
QuercusEngine engine = new QuercusEngine();<br />
engine.executeFile("/var/www/index.php");<br />
</code><br />
<br />
==Returning objects example==<br />
<code><br />
QuercusEngine engine = new QuercusEngine();<br />
// a com.caucho.quercus.env.ArrayValue is returned<br />
Value value = engine.execute("<?php return array(1, 2, 3) ?>");<br />
</code><br />
<br />
=For more information=<br />
See Resin's Javadocs.</div>
Nam
http://wiki3.caucho.com/Quercus:_Command_Line_Interface_(CLI)
Quercus: Command Line Interface (CLI)
2009-10-21T15:14:16Z
<p>Nam: </p>
<hr />
<div>Quercus 4.0.2+ exposes a command-line interface (CLI) that is easier to use than the javax.script API that comes with Java 1.6. The CLI behaves similarly to PHP's CLI.<br />
<br />
=Executing a script on the command line=<br />
CliQuercus is the class that contains the <code>public void main()</code> method. To execute a script, you would need to pass in the filename to CliQuercus:<br />
<br />
<code><br />
java -cp resin.jar com.caucho.quercus.CliQuercus [flags] <file> [php-args]<br />
</code><br />
<br />
==CliQuercus xample==<br />
<code><br />
java -cp resin.jar com.caucho.quercus.CliQuercus foo.php<br />
</code><br />
<br />
The following optional flags are supported:<br />
<br />
<code><br />
-f : Explicitly sets the script filename.<br />
-d name=value : Sets a php ini value.<br />
</code><br />
<br />
=Programmatically executing PHP scripts from within Java=<br />
The generic method to call PHP scripts from Java is through the javax.script API. Quercus also offers a simpler interface with the QuercusEngine class. By default, the output goes to <code>System.out</code>.<br />
<br />
==QuercusEngine example==<br />
<code><br />
QuercusEngine engine = new QuercusEngine();<br />
engine.setIni("foo", "bar");<br />
engine.execute("<?php var_dump(ini_get('foo')); ?>");<br />
</code><br />
<br />
=For more information=<br />
See Resin's Javadocs.</div>
Nam
http://wiki3.caucho.com/Quercus:_Command_Line_Interface_(CLI)
Quercus: Command Line Interface (CLI)
2009-10-21T15:12:56Z
<p>Nam: </p>
<hr />
<div>Quercus 4.0.2+ exposes a command-line interface (CLI) that is easier to use than the javax.script API that comes with Java 1.6. The CLI behaves similarly to PHP's CLI.<br />
<br />
=Executing a script on the command line=<br />
CliQuercus is the class that contains the <code>public void main()</code> method. To execute a script, you would need to pass in the filename to CliQuercus:<br />
<br />
<code><br />
java -cp resin.jar com.caucho.quercus.CliQuercus [flags] <file> [php-args]<br />
</code><br />
<br />
==CliQuercus xample==<br />
<code><br />
java -cp resin.jar com.caucho.quercus.CliQuercus foo.php<br />
</code><br />
<br />
The following optional flags are supported:<br />
<br />
<code><br />
-f : Explicitly sets the script filename.<br />
-d name=value : Sets a php ini value.<br />
</code><br />
<br />
=Programmatically executing PHP scripts from within Java=<br />
The generic method to call PHP scripts from Java is through the javax.script API. Quercus also offers a simpler interface with the QuercusEngine class. By default, the output goes to <code>System.out</code>.<br />
<br />
==QuercusEngine example==<br />
<code><br />
QuercusEngine engine = new QuercusEngine();<br />
engine.setIni("foo", "bar");<br />
engine.execute("<?php var_dump(ini_get('foo')); ?>");<br />
</code></div>
Nam
http://wiki3.caucho.com/Quercus:_Command_Line_Interface_(CLI)
Quercus: Command Line Interface (CLI)
2009-10-21T13:00:11Z
<p>Nam: New page: Quercus 4.0.2+ exposes a command-line interface (CLI) that is easier to use than the javax.script API that comes with Java 1.6. The CLI behaves similarly to PHP's CLI. =Executing a scrip...</p>
<hr />
<div>Quercus 4.0.2+ exposes a command-line interface (CLI) that is easier to use than the javax.script API that comes with Java 1.6. The CLI behaves similarly to PHP's CLI.<br />
<br />
=Executing a script on the command line=<br />
CliQuercus is the class that contains the <code>public void main()</code> method. To execute a script, you would need to pass in the filename to CliQuercus:<br />
<br />
<code><br />
java -cp resin.jar com.caucho.quercus.CliQuercus [flags] <file> [php-args]<br />
</code><br />
<br />
Example:<br />
<code><br />
java -cp resin.jar com.caucho.quercus.CliQuercus foo.php<br />
</code><br />
<br />
The following optional flags are supported:<br />
<br />
<code><br />
-f : Explicitly sets the script filename.<br />
-d name=value : Sets a php ini value.<br />
</code></div>
Nam
http://wiki3.caucho.com/Main_Page
Main Page
2009-10-21T02:02:49Z
<p>Nam: </p>
<hr />
<div>; [[HowTo]]<br />
<br />
; Rewrite: [[Rewrite WordPress]], [[Rewrite Drupal]], [[Rewrite Mediawiki]]<br />
; Quercus: [[Quercus Google App Engine]], [[Quercus: Tomcat]]<br />
; Applications: [[Confluence]]<br />
; Build/Dependencies: [[Ant]], [[Ivy]], [[Maven2]]<br />
; Databases: [[Mysql]], [[Oracle]], [[Oracle RAC]], [[Postgres]], [[SQLServer]], [[Sybase]]<br />
; Admin: [[Admin Database Connections]]<br />
; Faqs: [[Config_FAQ]], [[Database_FAQ]], [[Install_FAQ]], [[Quercus_FAQ]], [[Security_FAQ]], [[Servlet_FAQ]]<br />
; Frameworks: [[Hibernate]], [[Mule]], [[Spring]], [[Struts2]], [[Wicket]], [[Terracotta]]<br />
; IDEs: [[Intellij]]<br />
; JCA: [[ActiveMQ]], [[Jackrabbit]]<br />
; JSF: [[Trinidad]], [[RichFaces-Ajax4JSF]], [[RichFaces-Fast-JSF]], [[IceFaces]]<br />
; [[Quercus]] : Quercus is a 100% Java implementation of the PHP language and libraries. <br>[[Quercus: Drupal]], [[Quercus: phpMyAdmin]], [[Quercus: linode]], [[Quercus: Tomcat]], [[Quercus: Command Line Interface (CLI)]]<br />
; Remoting: [[CXF]]<br />
; Security: [[Acegi_Security]]<br />
; Testing: [[Hudson]], [[JUnit]]<br />
<br />
; [[Features]] : An overview of the features and capabilities in Resin and Resin Professional.<br />
; [[Installation]] : [[Quick start]] &mdash; [[Resin web server]] &mdash; [[Installation|more...]]<br />
; [[Configuration]] : [[Logging]] &mdash; [[Configuration|more...]]<br />
: [[NewConfiguration]]<br />
; [[Troubleshooting]] : A collection of common problems and their solution.<br />
<br />
; [[Web Application]]s<br />
; [[Servlets and Filters]]<br />
; [[Sessions]]<br />
; [[Clustering and Load Balancing]]<br />
<br />
; [[Administration and JMX]]<br />
<br />
; [[Hessian]] and [[Burlap]] : Web services<br />
; [[Inversion of Control]]<br />
; [[Resources]]<br />
<br />
; [[Amber]] : Amber is the Resin implementation of the javax.persistence specification.<br />
; [[EJB3]]<br />
<br />
; [[JMS]] : Java Messaging Service.<br />
<br />
; [[XML and XSLT]]<br />
<br />
; [[Third Party]]<br />
; [[IDE]] integration<br />
; [[EJB]]<br />
<br />
; [[ClassLoader]]<br />
; [[Profiler]]<br />
; [[Migrate from 2.1 to 3.0]]</div>
Nam
http://wiki3.caucho.com/Quercus:_Tomcat
Quercus: Tomcat
2009-07-21T02:21:13Z
<p>Nam: </p>
<hr />
<div>Quercus is implemented primarily as a servlet and it will run in any application server including Tomcat.<br />
<br />
=Requirements=<br />
# Java 1.5 or higher<br />
# Quercus WAR download at http://quercus.caucho.com<br />
<br />
=Optional=<br />
# MySQL Connector/J Driver<br />
# Java Mail (javax.mail jar)<br />
<br />
=Quick start=<br />
The Quercus WAR is ready to run on Tomcat by placing it inside Tomcat's <code>webapps</code> directory.<br />
<br />
The Quercus servlet is just a plain servlet and it is configured in the web.xml.<br />
<br />
==web.xml==<br />
<code><br />
<pre><br />
&lt;web-app xmlns="http://java.sun.com/xml/ns/javaee"<br />
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br />
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee<br />
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"<br />
version="2.5"><br />
<br />
&lt;display-name>Quercus on Tomcat&lt;/display-name><br />
<br />
&lt;servlet><br />
&lt;servlet-name>Quercus Servlet&lt;/servlet-name><br />
&lt;servlet-class>com.caucho.quercus.servlet.QuercusServlet&lt;/servlet-class><br />
&lt;/servlet><br />
<br />
&lt;servlet-mapping><br />
&lt;servlet-name>Quercus Servlet</servlet-name><br />
&lt;url-pattern>*.php&lt;/url-pattern><br />
&lt;/servlet-mapping><br />
<br />
&lt;welcome-file-list><br />
&lt;welcome-file>index.php&lt;/welcome-file><br />
&lt;/welcome-file-list><br />
<br />
&lt;/web-app><br />
</pre><br />
</code><br />
<br />
=Compilation=<br />
Quercus can compile PHP files down to Java bytecodes for faster performance. However, this feature was only available when Quercus was running inside Resin. Since 4.0.1, this constraint no longer exists and Quercus compilation is now available to all application servers including Tomcat. A valid [http://www.caucho.com/products/sales/ license] is required.<br />
<br />
==Configuration==<br />
<br />
Quercus compilation requires a license. In the web.xml, you will need to specify the directory where the license is located:<br />
<br />
<code><br />
<pre><br />
&lt;web-app xmlns="http://java.sun.com/xml/ns/javaee"<br />
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br />
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee<br />
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"<br />
version="2.5"><br />
<br />
&lt;display-name>Quercus on Tomcat&lt;/display-name><br />
<br />
&lt;servlet><br />
&lt;servlet-name>Quercus Servlet&lt;/servlet-name><br />
&lt;servlet-class>com.caucho.quercus.servlet.QuercusServlet&lt;/servlet-class><br />
&lt;init-param><br />
&lt;param-name>license-directory&lt;/param-name><br />
&lt;param-value>WEB-INF/licenses&lt;/param-value><br />
&lt;/init-param><br />
&lt;/servlet><br />
<br />
&lt;servlet-mapping><br />
&lt;servlet-name>Quercus Servlet</servlet-name><br />
&lt;url-pattern>*.php&lt;/url-pattern><br />
&lt;/servlet-mapping><br />
<br />
&lt;welcome-file-list><br />
&lt;welcome-file>index.php&lt;/welcome-file><br />
&lt;/welcome-file-list><br />
<br />
&lt;/web-app><br />
</pre><br />
</code><br />
<br />
Quercus will place the compiled files in WEB-INF/work.</div>
Nam
http://wiki3.caucho.com/Quercus:_Tomcat
Quercus: Tomcat
2009-07-02T21:43:33Z
<p>Nam: New page: Quercus is implemented primarily as a servlet and it will run in any application server including Tomcat. =Requirements= # Java 1.5 or higher # Quercus WAR download at http://quercus.cauc...</p>
<hr />
<div>Quercus is implemented primarily as a servlet and it will run in any application server including Tomcat.<br />
<br />
=Requirements=<br />
# Java 1.5 or higher<br />
# Quercus WAR download at http://quercus.caucho.com<br />
<br />
=Optional=<br />
# MySQL Connector/J Driver<br />
# Java Mail (javax.mail jar)<br />
<br />
=Quick start=<br />
The Quercus servlet is just a plain servlet. The web.xml should look like the following:<br />
<br />
==web.xml==<br />
<code><br />
<pre><br />
&lt;web-app xmlns="http://java.sun.com/xml/ns/javaee"<br />
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br />
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee<br />
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"<br />
version="2.5"><br />
<br />
&lt;display-name>Quercus on Tomcat&lt;/display-name><br />
<br />
&lt;servlet><br />
&lt;servlet-name>Quercus Servlet&lt;/servlet-name><br />
&lt;servlet-class>com.caucho.quercus.servlet.QuercusServlet&lt;/servlet-class><br />
&lt;/servlet><br />
<br />
&lt;servlet-mapping><br />
&lt;servlet-name>Quercus Servlet</servlet-name><br />
&lt;url-pattern>*.php&lt;/url-pattern><br />
&lt;/servlet-mapping><br />
<br />
&lt;welcome-file-list><br />
&lt;welcome-file>index.php&lt;/welcome-file><br />
&lt;/welcome-file-list><br />
<br />
&lt;/web-app><br />
</pre><br />
</code><br />
<br />
=Compilation=<br />
Quercus can compile PHP files down to Java bytecodes for faster performance. However, this feature was only available when Quercus was running inside Resin. Since 4.0.1, this constraint no longer exists and Quercus compilation is now available to all application servers including Tomcat. A valid [http://www.caucho.com/products/sales/ license] is required.<br />
<br />
==Configuration==<br />
<br />
Quercus compilation requires a license. In the web.xml, you will need to specify the directory where the license is located:<br />
<br />
<code><br />
<pre><br />
&lt;web-app xmlns="http://java.sun.com/xml/ns/javaee"<br />
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br />
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee<br />
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"<br />
version="2.5"><br />
<br />
&lt;display-name>Quercus on Tomcat&lt;/display-name><br />
<br />
&lt;servlet><br />
&lt;servlet-name>Quercus Servlet&lt;/servlet-name><br />
&lt;servlet-class>com.caucho.quercus.servlet.QuercusServlet&lt;/servlet-class><br />
&lt;init-param><br />
&lt;param-name>license-directory&lt;/param-name><br />
&lt;param-value>WEB-INF/licenses&lt;/param-value><br />
&lt;/init-param><br />
&lt;/servlet><br />
<br />
&lt;servlet-mapping><br />
&lt;servlet-name>Quercus Servlet</servlet-name><br />
&lt;url-pattern>*.php&lt;/url-pattern><br />
&lt;/servlet-mapping><br />
<br />
&lt;welcome-file-list><br />
&lt;welcome-file>index.php&lt;/welcome-file><br />
&lt;/welcome-file-list><br />
<br />
&lt;/web-app><br />
</pre><br />
</code><br />
<br />
The compiled files will be located in WEB-INF/work.</div>
Nam
http://wiki3.caucho.com/Quercus:_Drupal
Quercus: Drupal
2009-07-02T21:10:30Z
<p>Nam: </p>
<hr />
<div>[[Category: Quercus]]<br />
<br />
=Running Drupal 6.2 on Resin 3.1.6=<br />
<br />
==Requirements==<br />
# MySQL server<br />
# Java 1.5 or higher<br />
<br />
==Quick start==<br />
Follow these instructions if you would simply like to evaluate running Drupal without doing a system-wide installation.<br />
<br />
# Download Drupal 6.2 from http://drupal.org/drupal-6.2<br />
# Download Resin 3.1.6 from http://www.caucho.com/download<br />
# Unzip Resin 3.1.6<br />
# Unzip Drupal and copy all files and directories to resin-3.1.6/webapps/ROOT<br />
# Create the Drupal database: <pre>mysql -u root</pre><pre>mysql> CREATE DATABASE drupal;</pre><br />
# Create the directory resin-3.1.6/webapps/ROOT/WEB-INF/lib <br />
# Download MySQL Connector/J 5.1.6 (http://dev.mysql.com/downloads/connector/j/5.1.html) <br />
# Unzip MySQL Connector/J and place the mysql-connector-java-5.1.6-bin.jar in resin-3.1.6/webapps/ROOT/WEB-INF/lib <br />
# Create the following resin-3.1.6/webapps/ROOT/WEB-INF/resin-web.xml:<br />
#:<pre><br />
#:<web-app xmlns="http://caucho.com/ns/resin"><br />
#: <welcome-file-list><welcome-file>index.php</welcome-file></welcome-file-list><br />
#:<br />
#: <rewrite-dispatch><br />
#: <dispatch regexp="\.(php|gif|css|jpg|png|ico|js|html|htm|txt)"/><br />
#: <forward regexp="^/" target="/index.php?q="/><br />
#: </rewrite-dispatch><br />
#:</web-app></pre><br />
# Run <pre>java -jar resin-3.1.6/lib/resin.jar</pre><br />
# Browse to http://localhost:8080 and set up Drupal according to the online directions<br />
<br />
==Full installation==<br />
Follow these instructions if you would like to perform a permanent installation with virtual hosts. Follow the above directions for a quick start evaluation.<br />
<br />
# Download Drupal 6.2 from http://drupal.org/drupal-6.2<br />
# Download Resin 3.1.6 from http://www.caucho.com/download<br />
# Unzip Resin 3.1.6 in /usr/local/share<br />
# Copy /usr/local/share/resin-3.1.6/conf/resin.conf to /etc/resin/resin.conf<br />
# Edit /etc/resin/resin.conf to change the host-deploy directory:<pre><host-deploy path="/var/www/hosts"></pre><br />
# Create a virtual host directory for your domain:<pre>/var/www/hosts/drupal.example.com/webapps/ROOT</pre> (in this example, the domain is drupal.example.com)<br />
# Unzip Drupal and copy all files and directories to /var/www/hosts/drupal.example.com/webapps/ROOT<br />
# Create the Drupal database: <pre>mysql -u root</pre><pre>mysql> CREATE DATABASE drupal;</pre><br />
# Create the directory /var/www/hosts/drupal.example.com/webapps/ROOT/WEB-INF/lib <br />
# Download MySQL Connector/J 5.1.6 (http://dev.mysql.com/downloads/connector/j/5.1.html) <br />
# Unzip MySQL Connector/J and place the mysql-connector-java-5.1.6-bin.jar in /var/www/hosts/drupal.example.com/webapps/ROOT/WEB-INF/lib <br />
# Create the following /var/www/hosts/drupal.example.com/webapps/ROOT/WEB-INF/resin-web.xml:<br />
#:<pre><br />
#:<web-app xmlns="http://caucho.com/ns/resin"><br />
#: <welcome-file-list><welcome-file>index.php</welcome-file></welcome-file-list><br />
#:<br />
#: <rewrite-dispatch><br />
#: <dispatch regexp="\.(php|gif|css|jpg|png|ico|js)"/><br />
#: <forward regexp="^/" target="/index.php?q="/><br />
#: </rewrite-dispatch><br />
#:</web-app></pre><br />
# Run <pre>java -jar /usr/local/share/resin-3.1.6/lib/resin.jar -conf /etc/resin/resin.conf start</pre><br />
# Browse to <nowiki>http://drupal.example.com:8080</nowiki> and set up Drupal according to the online directions</div>
Nam
http://wiki3.caucho.com/Main_Page
Main Page
2009-07-02T21:08:24Z
<p>Nam: </p>
<hr />
<div>; [[HowTo]]<br />
<br />
; Rewrite: [[Rewrite WordPress]], [[Rewrite Drupal]], [[Rewrite Mediawiki]]<br />
; Quercus: [[Quercus Google App Engine]]<br />
; Applications: [[Confluence]]<br />
; Build/Dependencies: [[Ant]], [[Ivy]], [[Maven2]]<br />
; Databases: [[Mysql]], [[Oracle]], [[Oracle RAC]], [[Postgres]], [[SQLServer]], [[Sybase]]<br />
; Faqs: [[Config_FAQ]], [[Database_FAQ]], [[Install_FAQ]], [[Quercus_FAQ]], [[Security_FAQ]], [[Servlet_FAQ]]<br />
; Frameworks: [[Hibernate]], [[Mule]], [[Spring]], [[Struts2]], [[Wicket]], [[Terracotta]]<br />
; IDEs: [[Intellij]]<br />
; JCA: [[ActiveMQ]], [[Jackrabbit]]<br />
; JSF: [[Trinidad]], [[RichFaces-Ajax4JSF]], [[RichFaces-Fast-JSF]], [[IceFaces]]<br />
; [[Quercus]] : Quercus is a 100% Java implementation of the PHP language and libraries. <br>[[Quercus: Drupal]], [[Quercus: phpMyAdmin]], [[Quercus: linode]], [[Quercus: Tomcat]]<br />
; Remoting: [[CXF]]<br />
; Security: [[Acegi_Security]]<br />
; Testing: [[Hudson]], [[JUnit]]<br />
<br />
; [[Features]] : An overview of the features and capabilities in Resin and Resin Professional.<br />
; [[Installation]] : [[Quick start]] &mdash; [[Resin web server]] &mdash; [[Installation|more...]]<br />
; [[Configuration]] : [[Logging]] &mdash; [[Configuration|more...]]<br />
: [[NewConfiguration]]<br />
; [[Troubleshooting]] : A collection of common problems and their solution.<br />
<br />
; [[Web Application]]s<br />
; [[Servlets and Filters]]<br />
; [[Sessions]]<br />
; [[Clustering and Load Balancing]]<br />
<br />
; [[Administration and JMX]]<br />
<br />
; [[Hessian]] and [[Burlap]] : Web services<br />
; [[Inversion of Control]]<br />
; [[Resources]]<br />
<br />
; [[Amber]] : Amber is the Resin implementation of the javax.persistence specification.<br />
; [[EJB3]]<br />
<br />
; [[JMS]] : Java Messaging Service.<br />
<br />
; [[XML and XSLT]]<br />
<br />
; [[Third Party]]<br />
; [[IDE]] integration<br />
; [[EJB]]<br />
<br />
; [[ClassLoader]]<br />
; [[Profiler]]<br />
; [[Migrate from 2.1 to 3.0]]</div>
Nam
http://wiki3.caucho.com/PHP_implementation_status
PHP implementation status
2008-08-05T21:35:10Z
<p>Nam: /* Implemented Functions */</p>
<hr />
<div>[[Category:Quercus]]<br />
<br />
= Modules =<br />
<br />
== [http://us2.php.net/manual/en/ref.apache.php Apache Functions] ==<br />
<br />
=== Implemented functions ===<br />
<br />
apache_child_terminate (stub), apache_note, apache_request_headers, apache_reset_timeout (stub), getallheaders, virtual<br />
<br />
=== Unimplemented functions ===<br />
<br />
apache_get_modules, apache_get_version, apache_getenv, apache_lookup_uri, apache_response_headers, apache_setenv, ascii2ebcdic, ebcdic2ascii<br />
<br />
== [http://www.php.net/manual/en/ref.apc.php APC Functions] ==<br />
<br />
=== Complete ===<br />
<br />
== [http://us2.php.net/manual/en/ref.array.php Array Functions] ==<br />
<br />
=== Complete ===<br />
<br />
== [http://us2.php.net/manual/en/ref.classobj.php Class/Object Functions] ==<br />
<br />
=== Implemented functions ===<br />
<br />
class_exists, get_class, get_class_methods, get_class_vars, get_declared_classes, get_object_vars, get_parent_class, is_a, is_object, is_subclass_of, method_exists<br />
<br />
=== Unimplemented functions ===<br />
<br />
call_user_method, call_user_method_array, get_declared_interfaces, interface_exists, property_exists<br />
<br />
== [http://www.php.net/manual/en/ref.bc.php BCMath Functions] ==<br />
<br />
=== Complete ===<br />
<br />
== [http://www.php.net/manual/en/ref.calendar.php Calender Functions] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
cal_days_in_month, easter_date, easter_days<br />
<br />
== [http://www.php.net/manual/en/ref.ctype.php Ctype Functions] ==<br />
<br />
=== Complete ===<br />
<br />
== [http://us2.php.net/manual/en/ref.datetime.php Date and Time Functions] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
checkdate, date, getdate, gettimeofday, gmdate, gmmktime, gmstrftime, microtime, mktime, strftime, strtotime, time<br />
<br />
=== Unimplemented Functions ===<br />
<br />
date_default_timezone_get, date_default_timezone_set, date_sunrise, date_sunset, idate, localtime, strptime<br />
<br />
== [http://us2.php.net/manual/en/ref.dir.php Directory Functions] ==<br />
<br />
===Complete ===<br />
<br />
== [http://us2.php.net/manual/en/ref.errorfunc.php Error Handling and Logging] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
debug_backtrace, error_log, error_reporting, set_error_handler, restore_error_handler, trigger_error, user_error<br />
<br />
=== Unimplemented Functions ===<br />
<br />
debug_print_backtrace, restore_exception_handler, set_exception_handler<br />
<br />
== [http://www.php.net/manual/en/ref.exif.php Exif Functions]==<br />
<br />
=== Implemented Functions ===<br />
<br />
read_exif_data, exif_imagetype<br />
<br />
=== Unimplemented Functions ===<br />
<br />
exif_read_data, exif_thumbnail, exif_tagname<br />
<br />
== [http://us2.php.net/manual/en/ref.filesystem.php Filesystem Functions] ==<br />
<br />
=== Unimplemented Functions ===<br />
<br />
disk_free_space (stub), disk_total_space (stub), readlink, umask (stub)<br />
<br />
== [http://us2.php.net/manual/en/ref.funchand.php Function Handling Functions] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
call_user_func_array, call_user_func, create_function, get_defined_functions, func_get_arg, func_get_args, func_num_args, function_exists, register_shutdown_function<br />
<br />
=== Unimplemented Functions ===<br />
<br />
register_tick_function, unregister_tick_function<br />
<br />
== [http://www.php.net/manual/en/ref.gettext.php Gettext Functions]==<br />
<br />
=== Completed ===<br />
<br />
== [http://www.php.net/manual/en/ref.iconv.php Iconv Functions] ==<br />
<br />
=== Unimplemented Functions ===<br />
<br />
ob_iconv_handler<br />
<br />
== [http://us2.php.net/manual/en/ref.http.php HTTP Functions] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
header, headers_sent, setcookie<br />
<br />
=== Unimplemented Functions ===<br />
<br />
headers_list, setrawcookie<br />
<br />
== [http://us2.php.net/manual/en/ref.image.php Image Functions] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
gd_info, getimagesize, imagetypes, image_type_to_extension, image_type_to_mime_type, imagegif, imagepng, imagejpeg, imagealphablending, imageantialias, imagecolorallocate, imagecolorallocatealpha, imagecolordeallocate, imagecolorat, imagecolorclosest, imagecolorclosestalpha, imagecolorexact, imagecolorexactalpha, imagecolormatch, imagecolorresolve, imagecolorresolvealpha, imagecolorsforindex, imagecreate, imagecreatefromgif, imagecreatefromjpeg, imagecreatefrompng, imagecreatefromxbm, imagecreatefromxpm, imagecreatefromwbmp, imagecreatefromstring, imagecreatetruecolor, imagedestroy, imageistruecolor, imagesetpixel, imageline, imagedashedline, imagearc, imagefilledarc, imageellipse, imagefilledellipse, imagepolygon, imagefilledpolygon, imagerectangle, imagefilledrectangle, imagechar, imagestring, imagecharup, imagesx, imagesy, imagefontheight, imagefontwidth, imagecopy, imagecopymerge, imagecopymergegray, imagecopyresampled, imagecopyresized, imagesetbrush, imagesetstyle, imagesetthickness, imagesavealpha, imagecolortransparent, imagefill, imagefilltoborder, imageconvolution, imagefilter<br />
<br />
== [http://www.php.net/manual/en/ref.json.php JSON] ==<br />
<br />
=== Completed ===<br />
<br />
== [http://us2.php.net/manual/en/ref.mail.php Mail Functions] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
mail<br />
<br />
=== Unimplemented Functions ===<br />
<br />
ezmlm_hash<br />
<br />
== [http://us2.php.net/manual/en/ref.mcrypt.php Mcrypt] ==<br />
<br />
=== Complete ===<br />
<br />
== [http://www.php.net/manual/en/ref.mhash.php Mhash] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
mhash, mhash_count, mhash_get_block_size, mhash_get_hash_name<br />
<br />
=== Unimplemented Functions ===<br />
<br />
mhash_keygen_s2k<br />
<br />
== [http://us2.php.net/manual/en/ref.misc.php Misc Functions] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
constant, define, defined, die, eval, exit, pack, uniqid, unpack<br />
<br />
=== Unimplemented Functions ===<br />
<br />
connection_aborted, connection_status, connection_timeout, get_browser, __halt_compiler, highlight_file, highlight_string, ignore_user_abort, php_check_syntax, php_strip_whitespace, show_source, sleep, time_nanosleep, time_sleep_until, usleep<br />
<br />
== [http://www.php.net/manual/en/ref.mbstring.php Multibyte String] ==<br />
<br />
=== Unimplemented Functions ===<br />
<br />
mb_convert_kana, mb_detect_order, mb_get_info (stub), mb_http_input, mb_http_output, mb_output_handler, mb_regex_set_options, mb_substitute_character<br />
<br />
== [http://us2.php.net/manual/en/ref.mysql.php Mysql Functions] ==<br />
<br />
=== Unimplemented Functions ===<br />
<br />
mysql_change_user, mysql_info, mysql_list_processes, mysql_thread_id<br />
<br />
== [http://us2.php.net/manual/en/ref.mysqli.php Mysql Improved] ==<br />
<br />
=== Unimplemented Functions ===<br />
<br />
mysqli_debug, mysqli_disable_reads_from_master, mysqli_disable_rpl_parse, mysqli_info, mysqli_kill, mysqli_master_query, mysqli_report, mysqli_rpl_parse_enabled, mysqli_rpl_probe, mysqli_rpl_query_type, mysqli_send_long_data, mysqli_send_query, mysqli_server_end, mysqli_server_init, mysqli_ssl_set, mysqli_stmt_send_long_data, mysqli_thread_id, mysqli_thread_safe<br />
<br />
== [http://us2.php.net/manual/en/ref.network.php Network] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
checkdnsrr, closelog, define_syslog_variables(stub), dns_check_record, dns_get_mx, fsockopen, gethostbyaddr, gethostbyname, gethostbynamel, getmxrr, getprotobyname, getprotobynumber, getservbyname, getservbyport, ip2long, openlog(stub), syslog<br />
<br />
=== Unimplemented Functions ===<br />
<br />
dns_get_record, inet_ntop, inet_pton, long2ip, pfsockopen, socket_get_status, socket_get_blocking, socket_get_timeout<br />
<br />
== [http://us2.php.net/manual/en/ref.info.php Options and Information] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
assert, extension_loaded, get_cfg_var, get_defined_constants, get_extension_funcs, get_include_path, get_loaded_extensions, getenv, getlastmod, getmygid, getmyinode, getmypid, getmyuid, ini_alter, ini_get, ini_get_all, ini_set, php_sapi_name, php_uname (stub), phpinfo, phpversion, putenv, restore_include_path, set_inclue_path, set_time_limit, version_compare<br />
<br />
=== Unimplemented Functions ===<br />
<br />
assert_options, dl (stub), get_current_user (stub), get_included_files, get_magic_quotes_gpc, get_magic_quotes_runtime, get_required_files, getopt, getrusage, ini_restore, memory_get_usage, php_ini_scanned_files, php_logo_gid, phpcredits, putenv, restore_include_path, set_magic_quotes_runtime, zend_logo_gid, zend_version<br />
<br />
== [http://www.php.net/manual/en/ref.oci8.php Oracle Functions] ==<br />
<br />
=== Unimplemented Functions ===<br />
<br />
oci_internal_debug, ocicloselob, ocicollappend, ocicollassign, ocicollassignelem, ocicollgetelemn, ocicollmax, ocicollsize, ocicolltrim, ocifetchinfo, ocifreecollection, ocifreedesc, ociloadlob, ocisavelob, ocisavelobfile, ociwritelobtofile, ociwritetemporarylob<br />
<br />
== [http://us2.php.net/manual/en/ref.outcontrol.php Output Control Functions] ==<br />
<br />
=== Complete ===<br />
<br />
== [http://www.php.net/manual/en/ref.pdf.php PDF]==<br />
<br />
=== Implemented Functions ===<br />
<br />
pdf_arc, pdf_arcn, pdf_begin_document, pdf_begin_page_ext, pdf_begin_page, pdf_circle, pdf_clip, pdf_close, pdf_closepath_fill_stroke, pdf_closepath_stroke, pdf_closepath, pdf_concat, pdf_continue_text, pdf_curveto, pdf_delete, pdf_end_document, pdf_end_page_ext, pdf_end_page, pdf_end_path, pdf_fill_stroke, pdf_fill, pdf_fit_image, pdf_get_buffer, pdf_get_errmsg, pdf_get_errnum, pdf_get_image_height, pdf_get_image_width, pdf_get_buffer, pdf_get_parameter, pdf_get_value, pdf_initgraphics, pdf_lineto, pdf_load_font, pdf_load_image, pdf_moveto, pdf_new, pdf_open_file, pdf_open_image_file, pdf_place_image, pdf_place_pdi_page, pdf_rect, pdf_restore, pdf_rotate, pdf_save, pdf_scale, pdf_set_info, pdf_set_parameter, pdf_set_text_pos, pdf_set_value, pdf_setcolor, pdf_setdash, pdf_setdashpattern, pdf_setflat, pdf_setfont, pdf_setgray_fill, pdf_setgray_stroke, pdf_setgray, pdf_setlinecap, pdf_setlinejoin, pdf_setlinewidth, pdf_setmatrix, pdf_setmiterlimit, pdf_setrgbcolor_fill, pdf_setrgbcolor_stroke, pdf_setrgbcolor, pdf_shading_pattern, pdf_shading, pdf_shfill, pdf_show_boxed, pdf_show_xy, pdf_show, pdf_skew, pdf_stringwidth, pdf_stroke, pdf_translate<br />
<br />
== [http://www.php.net/manual/en/ref.pgsql.php Postgres Functions] ==<br />
<br />
=== Unimplemented Functions ===<br />
<br />
pg_options, pg_trace, pg_transaction_status, pg_untrace<br />
<br />
== [http://us2.php.net/manual/en/ref.exec.php Program Execution] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
escapeshellarg, escapeshellcmd, exec, passthru, shell_exec, system<br />
<br />
=== Unimplemented Functions ===<br />
<br />
proc_close, proc_get_status, proc_nice, proc_open, proc_terminate<br />
<br />
== [http://us2.php.net/manual/en/ref.pcre.php Regexp (Perl)] ==<br />
<br />
=== Complete ===<br />
<br />
== [http://us2.php.net/manual/en/ref.regex.php Regexp (POSIX)] ==<br />
<br />
=== Complete ===<br />
<br />
== [http://us2.php.net/manual/en/ref.session.php Session Handling] ==<br />
<br />
=== Complete ===<br />
<br />
== [http://www.php.net/manual/en/ref.simplexml.php SimpleXML] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
simplexml_load_file, simplexml_load_string, SimpleXMLElement->asXML(), SimpleXMLElement->attributes(), SimpleXMLElement->children(), SimpleXMLElement->xpath()<br />
<br />
== [http://us2.php.net/manual/en/ref.stream.php Stream Functions] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
stream_context_create, stream_context_get_default, stream_context_get_options, stream_context_set_option, stream_context_set_params, stream_copy_to_stream, stream_get_contents, stream_get_line, stream_get_transports, stream_get_wrappers, stream_register_wrapper, stream_wrapper_register, stream_wrapper_restore, stream_wrapper_unregister<br />
<br />
=== Unimplemented Functions ===<br />
<br />
stream_bucket_append, stream_bucket_make_writeable, stream_bucket_new, stream_bucket_prepend, stream_filter_append, stream_filter_prepend, stream_filter_register, stream_filter_remove, stream_get_filters, stream_get_meta_data, stream_select, stream_set_blocking, stream_set_timeout (stub), stream_set_write_buffer (stub), stream_socket_accept, stream_socket_server, stream_socket_client, stream_socket_enable_crypto, stream_socket_get_name, stream_socket_pair, stream_socket_recvform, stream_socket_sendto, stream_socket_server<br />
<br />
== [http://us2.php.net/manual/en/ref.strings.php String Functions] ==<br />
<br />
=== Unimplemented Functions ===<br />
<br />
convert_cyr_string, hebrev, hebrevc, htmlspecialchars_decode, levelshtein, localeconv, metaphone, nl_langinfo, similar_text, soundex, strpbrk, substr_compare, vfprintf<br />
<br />
== [http://us2.php.net/manual/en/ref.url.php URL Functions] ==<br />
<br />
=== Complete ===<br />
<br />
== [http://us2.php.net/manual/en/ref.var.php Variable Handling] ==<br />
<br />
=== Complete ===<br />
<br />
== [http://www.php.net/manual/en/ref.xml.php XML] ==<br />
<br />
=== Unimplemented Functions ===<br />
<br />
xml_error_string, xml_get_current_byte_index, xml_get_current_column_number, xml_get_current_line_number, xml_get_error_code, xml_set_external_entity_ref_handler<br />
<br />
== [http://www.php.net/manual/en/ref.zip.php Zip] ==<br />
<br />
=== Implemented Functions ===<br />
<br />
zip_close, zip_open, zip_read, zip_entry_close, zip_entry_compressedsize, zip_entry_compressionmethod, zip_entry_filesize, zip_entry_name, zip_entry_open, zip_entry_read<br />
<br />
== [http://www.php.net/manual/en/ref.zlib.php Zlib] ==<br />
<br />
=== Complete ===</div>
Nam
http://wiki3.caucho.com/Quercus:_Drupal
Quercus: Drupal
2008-07-29T21:19:42Z
<p>Nam: /* Quick start */</p>
<hr />
<div>[[Category: Quercus]]<br />
<br />
=Running Drupal 6.2 on Resin 3.1.6=<br />
<br />
==Requirements==<br />
# MySQL server<br />
# Java 1.5 or higher<br />
<br />
==Quick start==<br />
Follow these instructions if you would simply like to evaluate running Drupal without doing a system-wide installation. Follow the instructions below to perform a system-wide installation.<br />
<br />
# Download Drupal 6.2 from http://drupal.org/drupal-6.2<br />
# Download Resin 3.1.6 from http://www.caucho.com/download<br />
# Unzip Resin 3.1.6<br />
# Unzip Drupal and copy all files and directories to resin-3.1.6/webapps/ROOT<br />
# Create the Drupal database: <pre>mysql -u root</pre><pre>mysql> CREATE DATABASE drupal;</pre><br />
# Create the directory resin-3.1.6/webapps/ROOT/WEB-INF/lib <br />
# Download MySQL Connector/J 5.1.6 (http://dev.mysql.com/downloads/connector/j/5.1.html) <br />
# Unzip MySQL Connector/J and place the mysql-connector-java-5.1.6-bin.jar in resin-3.1.6/webapps/ROOT/WEB-INF/lib <br />
# Create the following resin-3.1.6/webapps/ROOT/WEB-INF/resin-web.xml:<br />
#:<pre><br />
#:<web-app xmlns="http://caucho.com/ns/resin"><br />
#: <welcome-file-list><welcome-file>index.php</welcome-file></welcome-file-list><br />
#:<br />
#: <rewrite-dispatch><br />
#: <dispatch regexp="\.(php|gif|css|jpg|png|ico|js|html|htm|txt)"/><br />
#: <forward regexp="^/" target="/index.php?q="/><br />
#: </rewrite-dispatch><br />
#:</web-app></pre><br />
# Run <pre>java -jar resin-3.1.6/lib/resin.jar</pre><br />
# Browse to http://localhost:8080 and set up Drupal according to the online directions<br />
<br />
==Full installation==<br />
Follow these instructions if you would like to perform a permanent installation with virtual hosts. Follow the above directions for a quick start evaluation.<br />
<br />
# Download Drupal 6.2 from http://drupal.org/drupal-6.2<br />
# Download Resin 3.1.6 from http://www.caucho.com/download<br />
# Unzip Resin 3.1.6 in /usr/local/share<br />
# Copy /usr/local/share/resin-3.1.6/conf/resin.conf to /etc/resin/resin.conf<br />
# Edit /etc/resin/resin.conf to change the host-deploy directory:<pre><host-deploy path="/var/www/hosts"></pre><br />
# Create a virtual host directory for your domain:<pre>/var/www/hosts/drupal.example.com/webapps/ROOT</pre> (in this example, the domain is drupal.example.com)<br />
# Unzip Drupal and copy all files and directories to /var/www/hosts/drupal.example.com/webapps/ROOT<br />
# Create the Drupal database: <pre>mysql -u root</pre><pre>mysql> CREATE DATABASE drupal;</pre><br />
# Create the directory /var/www/hosts/drupal.example.com/webapps/ROOT/WEB-INF/lib <br />
# Download MySQL Connector/J 5.1.6 (http://dev.mysql.com/downloads/connector/j/5.1.html) <br />
# Unzip MySQL Connector/J and place the mysql-connector-java-5.1.6-bin.jar in /var/www/hosts/drupal.example.com/webapps/ROOT/WEB-INF/lib <br />
# Create the following /var/www/hosts/drupal.example.com/webapps/ROOT/WEB-INF/resin-web.xml:<br />
#:<pre><br />
#:<web-app xmlns="http://caucho.com/ns/resin"><br />
#: <welcome-file-list><welcome-file>index.php</welcome-file></welcome-file-list><br />
#:<br />
#: <rewrite-dispatch><br />
#: <dispatch regexp="\.(php|gif|css|jpg|png|ico|js)"/><br />
#: <forward regexp="^/" target="/index.php?q="/><br />
#: </rewrite-dispatch><br />
#:</web-app></pre><br />
# Run <pre>java -jar /usr/local/share/resin-3.1.6/lib/resin.jar -conf /etc/resin/resin.conf start</pre><br />
# Browse to <nowiki>http://drupal.example.com:8080</nowiki> and set up Drupal according to the online directions</div>
Nam
http://wiki3.caucho.com/Hibernate
Hibernate
2008-06-23T19:28:07Z
<p>Nam: Reverted edits by Nam (Talk); changed back to last version by Emil</p>
<hr />
<div>== Hibernate and Resin ==<br />
<br />
This example shows how to use Hibernate EntityManager (Hibernate's JPA implementation) with Resin IoC.<br />
<br />
You'll need a running database in order to run this example. We use MySQL here, but any database with a JDBC driver should work.<br />
<br />
(The following has been tested with Resin 3.1.5, Hibernate Core 3.2 )<br />
<br />
<ol><br />
<li>Download Resin from http://www.caucho.com/download</li><br />
<li>Unzip Resin into <code>/usr/local/share/resin</code></li><br />
<li>Download the MySQL JDBC driver from http://www.mysql.com/products/connector/j/</li><br />
<li>Copy the MySQL JDBC driver jar to <code>/usr/local/share/resin/lib</code></li><br />
<li>Create the Hibernate webapp directory structure:<br />
<pre>mkdir -p /usr/local/share/resin/webapps/hibernate/WEB-INF/lib/<br />
mkdir -p /usr/local/share/resin/webapps/hibernate/WEB-INF/classes/example/<br />
mkdir -p /usr/local/share/resin/webapps/hibernate/WEB-INF/classes/META-INF/<br />
</pre><br />
</li><br />
<li>Download Hibernate Core ''and'' EntityManager from http://www.hibernate.org/</li><br />
<li>Unzip both Hibernate Core and EntityManager</li><br />
<li>Copy all the jars included the Hibernate distributions to<br />
<br/><code>/usr/local/share/resin/webapps/hibernate/WEB-INF/lib/</code> <br />
</li><br />
<li>Initialize the database by executing the following SQL statements:<br />
<pre><br />
CREATE DATABASE Hibernate;<br />
CREATE TABLE Hibernate.basic_courses (id INTEGER PRIMARY KEY auto_increment, course VARCHAR(250), teacher VARCHAR(250));<br />
INSERT INTO Hibernate.basic_courses VALUES('1', 'Potions', 'Severus Snape');<br />
INSERT INTO Hibernate.basic_courses VALUES('2', 'Transfiguration', 'Minerva McGonagall');<br />
</pre><br />
</li><br />
<li>Create the configuration file <code>/usr/local/share/resin/webapps/hibernate/WEB-INF/resin-web.xml</code><br />
<pre><?xml version="1.0" encoding="UTF-8"?><br />
<web-app xmlns="http://caucho.com/ns/resin"><br />
<!-- Make the database accessible to Hibernate --><br />
<database><br />
<jndi-name>jdbc/hibernate</jndi-name><br />
<driver type="org.gjt.mm.mysql.Driver"><br />
<url>jdbc:mysql://localhost:3306/Hibernate</url><br />
<user>root</user><br />
<password/><br />
</driver><br />
</database><br />
<br />
<!-- Set up the example servlet --><br />
<servlet servlet-name="course-servlet" servlet-class="example.CourseServlet"/><br />
<servlet-mapping url-pattern="/*" servlet-name="course-servlet"/><br />
</web-app><br />
</pre><br />
</li><br />
<br />
<li>Create the JPA configuration file <code>/usr/local/share/resin/webapps/hibernate/WEB-INF/classes/META-INF/persistence.xml</code><br />
<pre><?xml version="1.0" encoding="UTF-8"?><br />
<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0"><br />
<persistence-unit name="example"><br />
<provider>org.hibernate.ejb.HibernatePersistence</provider><br />
<br />
<jta-data-source>jdbc/hibernate</jta-data-source><br />
<br />
<class>example.CourseBean</class><br />
<br />
<exclude-unlisted-classes/><br />
<br />
<properties><br />
<property name="hibernate.transaction.manager_lookup_class"<br />
value="org.hibernate.transaction.ResinTransactionManagerLookup"/><br />
</properties><br />
<br />
</persistence-unit><br />
</persistence><br />
</pre><br />
</li><br />
<br />
<li>Create a JPA persisted data bean file <code>/usr/local/share/resin/webapps/hibernate/WEB-INF/classes/example/CourseBean.java</code><br />
<pre>package example;<br />
<br />
import javax.persistence.*;<br />
<br />
@Entity@Table(name="basic_courses")<br />
public class CourseBean {<br />
private int _id;<br />
private String _course;<br />
private String _teacher;<br />
<br />
@Id@Column(name="id")<br />
@GeneratedValue<br />
public int getId()<br />
{<br />
return _id;<br />
}<br />
<br />
public void setId(int id)<br />
{<br />
_id = id;<br />
}<br />
<br />
@Basic<br />
public String getCourse()<br />
{<br />
return _course;<br />
}<br />
<br />
public void setCourse(String course)<br />
{<br />
_course = course;<br />
}<br />
<br />
@Basic<br />
public String getTeacher()<br />
{<br />
return _teacher;<br />
}<br />
<br />
public void setTeacher(String teacher)<br />
{<br />
_teacher = teacher;<br />
}<br />
}<br />
</pre><br />
</li><br />
<li>Create the example servlet<br />
<code>/usr/local/share/resin/webapps/mule/WEB-INF/classes/example/CourseServlet.java</code><br />
<pre>package example;<br />
<br />
import java.io.*;<br />
import javax.servlet.*;<br />
import javax.servlet.http.*;<br />
import javax.persistence.*;<br />
<br />
public class CourseServlet extends HttpServlet<br />
{<br />
// Resin IoC will inject this<br />
@PersistenceContext(name="example")<br />
private EntityManager _manager;<br />
<br />
public void service(HttpServletRequest request, HttpServletResponse response)<br />
throws IOException, ServletException<br />
{<br />
PrintWriter out = response.getWriter();<br />
response.setContentType("text/html");<br />
<br />
out.println("EntityManager = " + _manager + "<br/>");<br />
<br />
CourseBean []course = new CourseBean[2];<br />
<br />
course[0] = _manager.find(CourseBean.class, new Integer(1));<br />
course[1] = _manager.find(CourseBean.class, new Integer(2));<br />
<br />
out.println("Course Details<br/><br/>");<br />
<br />
for (int i = 0; i < course.length; i++) {<br />
out.println("course: " + course[i].getCourse() + "<br/>");<br />
out.println("teacher: " + course[i].getTeacher() + "<br/>");<br />
}<br />
}<br />
}<br />
</pre><br />
</li><br />
<li>Start Resin with <code>java -jar /usr/local/share/resin/lib/resin.jar</code></li><br />
<li>Look at http://localhost:8080/hibernate<br />
<br/>It should show <br />
<pre><br />
EntityManager = org.hibernate.ejb.EntityManagerImpl@113cf49<br />
Course Details<br />
<br />
course: Potions<br />
teacher: Severus Snape<br />
<br />
course: Transfiguration<br />
teacher: Minerva McGonagall<br />
</pre><br />
</ol><br />
Compare this example to http://www.caucho.com/resin/examples/amber-basic/index.xtp</div>
Nam
http://wiki3.caucho.com/Hibernate
Hibernate
2008-06-23T19:26:27Z
<p>Nam: </p>
<hr />
<div>== Hibernate and Resin ==<br />
<br />
This example shows how to use Hibernate EntityManager (Hibernate's JPA implementation) with Resin IoC.<br />
<br />
You'll need a running database in order to run this example. We use MySQL here, but any database with a JDBC driver should work.<br />
<br />
(The following has been tested with Resin 3.1.5, Hibernate Core 3.2 )<br />
<br />
<ol><br />
<li>Download Resin from http://www.caucho.com/download</li><br />
<li>Unzip Resin into <code>/usr/local/share/resin</code></li><br />
<li>Download the MySQL JDBC driver from http://www.mysql.com/products/connector/j/</li><br />
<li>Copy the MySQL JDBC driver jar to <code>/usr/local/share/resin/lib</code></li><br />
<li>Create the Hibernate webapp directory structure:<br />
<pre>mkdir -p /usr/local/share/resin/webapps/hibernate/WEB-INF/lib/<br />
mkdir -p /usr/local/share/resin/webapps/hibernate/WEB-INF/classes/example/<br />
mkdir -p /usr/local/share/resin/webapps/hibernate/WEB-INF/classes/META-INF/<br />
</pre><br />
</li><br />
<li>Download Hibernate Core ''and'' EntityManager from http://www.hibernate.org/</li><br />
<li>Unzip both Hibernate Core and EntityManager</li><br />
<li>Copy all the jars included the Hibernate distributions to<br />
<br/><code>/usr/local/share/resin/webapps/hibernate/WEB-INF/lib/</code> <br />
</li><br />
<li>Initialize the database by executing the following SQL statements:<br />
<pre><br />
CREATE DATABASE Hibernate;<br />
CREATE TABLE Hibernate.basic_courses (id INTEGER PRIMARY KEY auto_increment, course VARCHAR(250), teacher VARCHAR(250));<br />
INSERT INTO Hibernate.basic_courses VALUES('1', 'Potions', 'Severus Snape');<br />
INSERT INTO Hibernate.basic_courses VALUES('2', 'Transfiguration', 'Minerva McGonagall');<br />
</pre><br />
</li><br />
<li>Create the configuration file <code>/usr/local/share/resin/webapps/hibernate/WEB-INF/resin-web.xml</code><br />
<pre><?xml version="1.0" encoding="UTF-8"?><br />
<web-app xmlns="http://caucho.com/ns/resin"><br />
<!-- Make the database accessible to Hibernate --><br />
<database><br />
<jndi-name>jdbc/hibernate</jndi-name><br />
<driver type="org.gjt.mm.mysql.Driver"><br />
<url>jdbc:mysql://localhost:3306/Hibernate</url><br />
<user>root</user><br />
<password/><br />
</driver><br />
</database><br />
<br />
<!-- Set up the example servlet --><br />
<servlet servlet-name="course-servlet" servlet-class="example.CourseServlet"/><br />
<servlet-mapping url-pattern="/*" servlet-name="course-servlet"/><br />
</web-app><br />
</pre><br />
</li><br />
<br />
<li>Create the JPA configuration file <code>/usr/local/share/resin/webapps/hibernate/WEB-INF/classes/META-INF/persistence.xml</code><br />
<pre><?xml version="1.0" encoding="UTF-8"?><br />
<persistence xmlns="http://java.sun.com/xml/ns/persistence" version="1.0"><br />
<persistence-unit name="example"><br />
<provider>org.hibernate.ejb.HibernatePersistence</provider><br />
<br />
<jta-data-source>jdbc/hibernate</jta-data-source><br />
<br />
<class>example.CourseBean</class><br />
<br />
<exclude-unlisted-classes/><br />
<br />
<properties><br />
<property name="hibernate.transaction.manager_lookup_class"<br />
value="org.hibernate.transaction.ResinTransactionManagerLookup"/><br />
</properties><br />
<br />
</persistence-unit><br />
</persistence><br />
</pre><br />
</li><br />
<br />
<li>Create a JPA persisted data bean file <code>/usr/local/share/resin/webapps/hibernate/WEB-INF/classes/example/CourseBean.java</code><br />
<pre>package example;<br />
<br />
import javax.persistence.*;<br />
<br />
@EntityTable(name="basic_courses")<br />
public class CourseBean {<br />
private int _id;<br />
private String _course;<br />
private String _teacher;<br />
<br />
@Id@Column(name="id")<br />
@GeneratedValue<br />
public int getId()<br />
{<br />
return _id;<br />
}<br />
<br />
public void setId(int id)<br />
{<br />
_id = id;<br />
}<br />
<br />
@Basic<br />
public String getCourse()<br />
{<br />
return _course;<br />
}<br />
<br />
public void setCourse(String course)<br />
{<br />
_course = course;<br />
}<br />
<br />
@Basic<br />
public String getTeacher()<br />
{<br />
return _teacher;<br />
}<br />
<br />
public void setTeacher(String teacher)<br />
{<br />
_teacher = teacher;<br />
}<br />
}<br />
</pre><br />
</li><br />
<li>Create the example servlet<br />
<code>/usr/local/share/resin/webapps/mule/WEB-INF/classes/example/CourseServlet.java</code><br />
<pre>package example;<br />
<br />
import java.io.*;<br />
import javax.servlet.*;<br />
import javax.servlet.http.*;<br />
import javax.persistence.*;<br />
<br />
public class CourseServlet extends HttpServlet<br />
{<br />
// Resin IoC will inject this<br />
@PersistenceContext(name="example")<br />
private EntityManager _manager;<br />
<br />
public void service(HttpServletRequest request, HttpServletResponse response)<br />
throws IOException, ServletException<br />
{<br />
PrintWriter out = response.getWriter();<br />
response.setContentType("text/html");<br />
<br />
out.println("EntityManager = " + _manager + "<br/>");<br />
<br />
CourseBean []course = new CourseBean[2];<br />
<br />
course[0] = _manager.find(CourseBean.class, new Integer(1));<br />
course[1] = _manager.find(CourseBean.class, new Integer(2));<br />
<br />
out.println("Course Details<br/><br/>");<br />
<br />
for (int i = 0; i < course.length; i++) {<br />
out.println("course: " + course[i].getCourse() + "<br/>");<br />
out.println("teacher: " + course[i].getTeacher() + "<br/>");<br />
}<br />
}<br />
}<br />
</pre><br />
</li><br />
<li>Start Resin with <code>java -jar /usr/local/share/resin/lib/resin.jar</code></li><br />
<li>Look at http://localhost:8080/hibernate<br />
<br/>It should show <br />
<pre><br />
EntityManager = org.hibernate.ejb.EntityManagerImpl@113cf49<br />
Course Details<br />
<br />
course: Potions<br />
teacher: Severus Snape<br />
<br />
course: Transfiguration<br />
teacher: Minerva McGonagall<br />
</pre><br />
</ol><br />
Compare this example to http://www.caucho.com/resin/examples/amber-basic/index.xtp</div>
Nam
http://wiki3.caucho.com/Quercus:_Drupal
Quercus: Drupal
2008-02-14T22:06:52Z
<p>Nam: Reverted edits by Nam (Talk); changed back to last version by Emil</p>
<hr />
<div>[[Category:Quercus]]<br />
<br />
[http://drupal.org Drupal], a forum/blog content management system, now works on Quercus (requires the latest snapshot or 3.0.18). The [http://forum.caucho.com Caucho Forum] is now running using Drupal.<br />
<br />
== installation ==<br />
<br />
Drupal requires [[JavaMail]] to send user confirmation and passwords. You will need to download JavaMail from the Sun site and install it in resin/lib for Drupal to work. This example also uses MySQL as Drupal's database. In order to connect to MySQL through Java, you will need to download MySQL Connector/J and install the jar file in resin/lib.<br />
<br />
To install Drupal, just expand the Drupal .tar file into [[webapps]]/drupal (or [[webapps]]/ROOT). From there, follow the Drupal documentation. Essentially, you'll just need to:<br />
<br />
* modify drupal/sites/default/settings.php (to set the expected URL)<br />
* create the database with 'mysql drupal < drupal/database/database.mysql'<br />
* Add a drupal/WEB-INF/resin-web.xml to configure Quercus and modify the URLs<br />
<br />
== resin-web.xml configuration file ==<br />
<br />
The [[resin-web.xml]] file is placed in [[webapps]]/drupal/WEB-INF/resin-web.xml.<br />
<br />
Configuring the <[[database]]> is optional, but allows you complete control over the database connections Drupal uses. If you do not configure the <[[database]]>, Quercus will create a new database pool automatically.<br />
<br />
The <[[rewrite-dispatch]]> lets you use clean URLs, so your paths will look like http://windansea.caucho.com/forum instead of http://windansea.caucho.com/index.php?q=forum<br />
<br />
<web-app xmlns="http://caucho.com/ns/resin"><br />
<database jndi-name="jdbc/drupal"><br />
<driver type="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource"><br />
<url>jdbc:mysql://localhost:3306/drupal</url><br />
<user>root</user><br />
<password></password><br />
</driver><br />
</database><br />
<br />
<servlet servlet-name="php"<br />
servlet-class="com.caucho.quercus.servlet.QuercusServlet"><br />
<init database="jdbc/drupal"/><br />
</servlet><br />
<br />
<servlet-mapping url-pattern="*.php" servlet-name="php"/><br />
<br />
<welcome-file-list><welcome-file>index.php</welcome-file></welcome-file-list><br />
<br />
<rewrite-dispatch><br />
<dispatch regexp="\.(php|gif|css|jpg|png|ico|js)"/><br />
<forward regexp="^/" target="/index.php?q="/><br />
</rewrite-dispatch><br />
</web-app></div>
Nam
http://wiki3.caucho.com/Quercus:_Drupal
Quercus: Drupal
2008-02-14T22:05:36Z
<p>Nam: </p>
<hr />
<div>[[Category:Quercus]]<br />
<br />
==Download Resin 3.1.1+==<br />
The newest Resin versions have several bug fixes for Drupal.<br />
<br />
==Download Drupal==<br />
Download [http://drupal.org/download Drupal] into $resin_home/webapps/ROOT/drupal.<br />
<br />
==Download MySQL JDBC Driver==<br />
Download [http://www.mysql.com/products/connector/j/ MySQL Connector/J JDBC Driver] into $resin_home/lib. Any version is fine.<br />
<br />
==Add resin-web.xml==<br />
Add the following resin-web.xml file to $resin_home/webapps/ROOT/drupal/WEB-INF. Customize email settings to allow the sending of emails from PHP. Anything not in <b>bold</b> is optional.<br />
<br />
The resin-web.xml needs to have the QuercusServlet mapped to *.php. Optionally, it can have a <[[database]]> as PHP's database. Quercus can automatically create database pools if you omit the <[[database]]> configuration, but it's better to configure it explicitly.<br />
<br />
<b><web-app xmlns="http://caucho.com/ns/resin"></b><br />
<database jndi-name='jdbc/drupal'><br />
<driver type="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource"><br />
<url>jdbc:mysql://localhost:3306/drupal</url><br />
<user></user><br />
<password></password><br />
</driver><br />
</database><br />
<br />
<b><servlet-mapping url-pattern="*.php"<br />
servlet-class="com.caucho.quercus.servlet.QuercusServlet"><br />
<init></b><br />
<database>jdbc/drupal</database><br />
<compile>true</compile><br />
<b><php-ini><br />
<sendmail_from>my_email_address</sendmail_from><br />
<smtp_username>my_email_username</smtp_username><br />
<smtp_password>my_email_password</smtp_password><br />
</php-ini><br />
</init><br />
</servlet-mapping></b><br />
<br />
<b><welcome-file-list>index.php</welcome-file-list><br />
</web-app></b><br />
<br />
==Finish==<br />
Run Drupal's installation. That's it!</div>
Nam
http://wiki3.caucho.com/MediaWiki:Sidebar
MediaWiki:Sidebar
2008-02-14T10:08:40Z
<p>Nam: </p>
<hr />
<div>* navigation<br />
** mainpage|mainpage<br />
** recentchanges-url|recentchanges<br />
** randompage-url|randompage<br />
** helppage|help</div>
Nam
http://wiki3.caucho.com/MediaWiki:Sidebar
MediaWiki:Sidebar
2008-02-14T10:08:00Z
<p>Nam: New page: * navigation ** mainpage|mainpage ** portal-url|portal ** currentevents-url|currentevents ** recentchanges-url|recentchanges ** randompage-url|randompage ** helppage|help</p>
<hr />
<div>* navigation<br />
** mainpage|mainpage<br />
** portal-url|portal<br />
** currentevents-url|currentevents<br />
** recentchanges-url|recentchanges<br />
** randompage-url|randompage<br />
** helppage|help</div>
Nam
http://wiki3.caucho.com/Quercus:_Mantis
Quercus: Mantis
2007-07-12T10:37:06Z
<p>Nam: New page: In file core/print_api.php of Mantis, inside function print_news_string_by_news_id(), there is a 'continue' that is not inside any loop. This is a Mantis bug. Fortunately, that function ...</p>
<hr />
<div>In file core/print_api.php of Mantis, inside function print_news_string_by_news_id(), there is a 'continue' that is not inside any loop. This is a Mantis bug. Fortunately, that function does not appear to be used by any major functionality. Unfortunately, Quercus cannot compile that file because the Java compiler would complain about a dangling 'continue'.<br />
<br />
So Mantis requires no modifications to work in Quercus interpreted mode. But a 'return' needs to replace the 'continue' in order for Mantis to work in Quercus compiled mode.</div>
Nam
http://wiki3.caucho.com/Quercus
Quercus
2007-07-12T10:27:15Z
<p>Nam: </p>
<hr />
<div>[[Category:Quercus]]<br />
<br />
== topics ==<br />
<br />
[http://forum.caucho.com Quercus News and Discussion]<br />
<br />
<br />
[[PHP Hello World]]<br />
<br />
[[PHP Hello World Class]]<br />
<br />
[[PHP Hello World Module]]<br />
<br />
[[PHP Hello World Module (jar version)]]<br />
<br />
[[PHP implementation status]]<br />
<br />
[[PHP and MySQL]]<br />
<br />
[[Quercus: Env]]<br />
<br />
[[Quercus: Interpreted, compiled, and lazy]]<br />
<br />
[[Quercus: Image Library example]]<br />
<br />
[[Quercus: POSIX]]<br />
<br />
[[Quercus: JSON]]<br />
<br />
== software running on Quercus (Resin 3.1.1+) ==<br />
<br />
[[Quercus: activeCollab]]<br />
<br />
[[Quercus: DokuWiki]] 2006-11-06<br />
<br />
[[Quercus: Dragonfly CMS]] 9.0.6.1.7<br />
<br />
[[Quercus: Drupal]] 5.1<br />
<br />
[[Quercus: Gallery2]] 2.2.2<br />
<br />
[[Quercus: Joomla]] 1.0.11<br />
<br />
[[Quercus: Mantis]] 1.0.8<br />
<br />
[[Quercus: Mediawiki]] 1.9.3<br />
<br />
[[Quercus: Openads]] 2.0.11-pr1<br />
<br />
[[Quercus: Phorum]] 5.1.16a<br />
<br />
[[Quercus: PHP-Nuke]] 7.9<br />
<br />
[[Quercus: phpBB]] 2.0.21<br />
<br />
[[Quercus: phpMyAdmin]] 2.9.1.1<br />
<br />
[[Quercus: PHProjekt]] 5.2<br />
<br />
[[Quercus: Vanilla]] 1.1.2<br />
<br />
[[Quercus: Wordpress]] 2.0.5<br />
<br />
[[Quercus: Xoops]] 2.0.16</div>
Nam
http://wiki3.caucho.com/Quercus:_Gallery2
Quercus: Gallery2
2007-07-11T09:56:53Z
<p>Nam: </p>
<hr />
<div>Required resin-web.xml configuration:<br />
<br />
<web-app xmlns="http://caucho.com/ns/resin"><br />
<servlet-mapping url-pattern="*.php"<br />
servlet-class="com.caucho.quercus.servlet.QuercusServlet"><br />
<init><br />
<script-encoding>ISO-8859-1</script-encoding><br />
<php-ini><br />
<unicode.runtime_encoding>ISO-8859-1</unicode.runtime_encoding><br />
</php-ini><br />
</init><br />
</servlet-mapping><br />
</web-app></div>
Nam
http://wiki3.caucho.com/Quercus:_Gallery2
Quercus: Gallery2
2007-07-11T09:52:58Z
<p>Nam: </p>
<hr />
<div>Required resin-web.xml configuration for 3.1.2:<br />
<br />
<web-app xmlns="http://caucho.com/ns/resin"><br />
<servlet-mapping url-pattern="*.php"<br />
servlet-class="com.caucho.quercus.servlet.QuercusServlet"><br />
<init><br />
<script-encoding>ISO-8859-1</script-encoding><br />
</init><br />
</servlet-mapping><br />
</web-app><br />
<br />
<br />
Required resin-web.xml configuration for 3.1.1:<br />
<br />
<web-app xmlns="http://caucho.com/ns/resin"><br />
<servlet-mapping url-pattern="*.php"<br />
servlet-class="com.caucho.quercus.servlet.QuercusServlet"><br />
<init><br />
<script-encoding>ISO-8859-1</script-encoding><br />
<php-ini><br />
<unicode.runtime_encoding>ISO-8859-1</unicode.runtime_encoding><br />
</php-ini><br />
</init><br />
</servlet-mapping><br />
</web-app></div>
Nam
http://wiki3.caucho.com/Quercus
Quercus
2007-07-11T09:51:36Z
<p>Nam: </p>
<hr />
<div>[[Category:Quercus]]<br />
<br />
== topics ==<br />
<br />
[http://forum.caucho.com Quercus News and Discussion]<br />
<br />
<br />
[[PHP Hello World]]<br />
<br />
[[PHP Hello World Class]]<br />
<br />
[[PHP Hello World Module]]<br />
<br />
[[PHP Hello World Module (jar version)]]<br />
<br />
[[PHP implementation status]]<br />
<br />
[[PHP and MySQL]]<br />
<br />
[[Quercus: Env]]<br />
<br />
[[Quercus: Interpreted, compiled, and lazy]]<br />
<br />
[[Quercus: Image Library example]]<br />
<br />
[[Quercus: POSIX]]<br />
<br />
[[Quercus: JSON]]<br />
<br />
== software running on Quercus (Resin 3.1.1+) ==<br />
<br />
[[Quercus: activeCollab]]<br />
<br />
[[Quercus: DokuWiki]] 2006-11-06<br />
<br />
[[Quercus: Dragonfly CMS]] 9.0.6.1.7<br />
<br />
[[Quercus: Drupal]] 5.1<br />
<br />
[[Quercus: Gallery2]] 2.2.2<br />
<br />
[[Quercus: Joomla]] 1.0.11<br />
<br />
[[Quercus: Mediawiki]] 1.9.3<br />
<br />
[[Quercus: Openads]] 2.0.11-pr1<br />
<br />
[[Quercus: Phorum]] 5.1.16a<br />
<br />
[[Quercus: PHP-Nuke]] 7.9<br />
<br />
[[Quercus: phpBB]] 2.0.21<br />
<br />
[[Quercus: phpMyAdmin]] 2.9.1.1<br />
<br />
[[Quercus: PHProjekt]] 5.2<br />
<br />
[[Quercus: Vanilla]] 1.1.2<br />
<br />
[[Quercus: Wordpress]] 2.0.5<br />
<br />
[[Quercus: Xoops]] 2.0.16</div>
Nam
http://wiki3.caucho.com/Quercus:_WordPress_on_Resin_3.1
Quercus: WordPress on Resin 3.1
2007-07-11T08:08:23Z
<p>Nam: </p>
<hr />
<div>[[Category: Quercus]]<br />
<br />
Running Wordpress 2.2.1 on Resin 3.1.2<br />
--------------------------------------<br />
Wordpress 2.2 will run on Resin without modification. However, Wordpress 2.2.1 will require a fix to wp-includes/formatting.php. The Wordpress function js_escape() was changed in 2.2.1 to use conditional constructs in regular expressions. Java does not support conditional constructs. The workaround is to revert the change to that function detailed here:<br />
<br />
http://trac.wordpress.org/changeset/5736<br />
<br />
<br />
Running Wordpress 2.0.3 on Resin<br />
--------------------------------<br />
Created: July 9, 2006<br />
Tested on: Mac OS X 10.4.7 on an Intel Mac, July 9, 2006)<br />
Author: Tony Field<br />
<br />
You can't install WordPress 2.0.3 on Resin 3.0.19 and configure it "just like that" - <br />
there were apparently some problems with Quercus that have since been fixed: the <br />
install script fails part-way through. However, you can indeed run WordPress on<br />
Resin 3.0.19 after you get it running using a more recent snapshot. Here are the instructions.<br />
<br />
1. Download WordPress 2.0.3 <http://www.wordpress.org/download/><br />
<br />
2. Download & install/configure a snapshot of Resin 3, July 5 or later (I haven't tried earlier snapshots)<br />
<br />
3. Extract the WordPress zip file and put it into your webapps folder.<br />
<br />
4. Create your database, datasource, and add the driver to <resin_home>/lib/local<br />
<br />
5. Tell Quercus about this php app: Create a WEB-INF folder and put this content inside a web.xml file:<br />
<br />
<web-app xmlns="http://caucho.com/ns/resin"><br />
<servlet-mapping url-pattern="*.php" servlet-class="com.caucho.quercus.servlet.QuercusServlet"><br />
<init><br />
<compile><br />
false<br />
</compile><br />
<database><br />
jdbc/<your-dsn><br />
</database><br />
<php-ini SMTP="smtp.your-isp.ca" sendmail_from="your@email.address.ca"/><br />
</init><br />
</servlet-mapping><br />
</web-app><br />
<br />
6. Fix WordPress problems - 2 current issues:<br />
<br />
Fix, the first:<br />
<br />
Remove the trailing '-' on line 101 of /webapps/wordpress/wp-includes/functions-formatting.php :<br />
/webapps/wordpress/wp-includes/functions-formatting.php:102:<br />
-$text is an invalid left-hand side of an assignment. in<br />
functions-formatting.php:101: $text = preg_replace('/&([^#])(?![a-z1-4]{1,8};)/','&#038;$1', $text);-<br />
<br />
Fix, the second:<br />
<br />
Open the file /webapps/wordpress/wp-includes/class-snoopy.php<br />
and re-save it as UTF-8 if it is not already in UTF-8. (Required for Mac OS X, as the file opens <br />
as "Western (Mac OS Roman)" by default).<br />
<br />
7. Start the Resin snapshot and run the installation wizard <br />
<http://localhost:8080/wordpress/wp-admin/install.php>. <br />
You'll see numerous exceptions where WordPress is looking for a table that doesn't exist. These will <br />
continue throughout the wizard then stop forever once you're all set up.<br />
<br />
8. Shut down the Resin snapshot and move your webapp to resin-3.0.19<br />
<br />
9. Start resin-3.0.19 and visit your blog: <http://localhost:8080/wordpress/></div>
Nam
http://wiki3.caucho.com/Quercus:_Openads
Quercus: Openads
2007-05-23T18:19:13Z
<p>Nam: </p>
<hr />
<div>Openads-2.0.11-pr1,<br />
Resin 3.1.1<br />
<br />
===1. download Mysql Connector/J JDBC Driver into your [Resin or webapp] lib directory.===<br />
===2. set <script-encoding> in [ROOT or webapp] WEB-INF/resin-web.xml:===<br />
<br />
<web-app xmlns="http://caucho.com/ns/resin"><br />
<servlet-mapping url-pattern="*.php"<br />
servlet-class="com.caucho.quercus.servlet.QuercusServlet"><br />
<init><br />
<script-encoding>ISO-8859-1</script-encoding><br />
</init><br />
</servlet-mapping><br />
</web-app></div>
Nam
http://wiki3.caucho.com/Quercus:_Openads
Quercus: Openads
2007-05-23T18:19:02Z
<p>Nam: </p>
<hr />
<div>Openads-2.0.11-pr1<br />
Resin 3.1.1<br />
<br />
===1. download Mysql Connector/J JDBC Driver into your [Resin or webapp] lib directory.===<br />
===2. set <script-encoding> in [ROOT or webapp] WEB-INF/resin-web.xml:===<br />
<br />
<web-app xmlns="http://caucho.com/ns/resin"><br />
<servlet-mapping url-pattern="*.php"<br />
servlet-class="com.caucho.quercus.servlet.QuercusServlet"><br />
<init><br />
<script-encoding>ISO-8859-1</script-encoding><br />
</init><br />
</servlet-mapping><br />
</web-app></div>
Nam
http://wiki3.caucho.com/Quercus:_Openads
Quercus: Openads
2007-05-23T18:17:28Z
<p>Nam: New page: Openads-2.0.11-pr1 Resin 3.1.1 1. download Mysql Connector/J JDBC Driver into your [Resin or webapp] lib directory. 2. set <script-encoding> in [ROOT or webapp] WEB-INF/resin-web.xml: <w...</p>
<hr />
<div>Openads-2.0.11-pr1<br />
Resin 3.1.1<br />
<br />
1. download Mysql Connector/J JDBC Driver into your [Resin or webapp] lib directory.<br />
2. set <script-encoding> in [ROOT or webapp] WEB-INF/resin-web.xml:<br />
<br />
<web-app xmlns="http://caucho.com/ns/resin"><br />
<servlet-mapping url-pattern="*.php"<br />
servlet-class="com.caucho.quercus.servlet.QuercusServlet"><br />
<init><br />
<script-encoding>ISO-8859-1</script-encoding><br />
</init><br />
</servlet-mapping><br />
</web-app></div>
Nam
http://wiki3.caucho.com/Quercus
Quercus
2007-05-23T18:15:14Z
<p>Nam: </p>
<hr />
<div>[[Category:Quercus]]<br />
<br />
== topics ==<br />
<br />
[http://forum.caucho.com Quercus News and Discussion]<br />
<br />
<br />
[[PHP Hello World]]<br />
<br />
[[PHP Hello World Class]]<br />
<br />
[[PHP Hello World Module]]<br />
<br />
[[PHP Hello World Module (jar version)]]<br />
<br />
[[PHP implementation status]]<br />
<br />
[[PHP and MySQL]]<br />
<br />
[[Quercus: Env]]<br />
<br />
[[Quercus: Interpreted, compiled, and lazy]]<br />
<br />
[[Quercus: Image Library example]]<br />
<br />
[[Quercus: POSIX]]<br />
<br />
[[Quercus: JSON]]<br />
<br />
== software running on Quercus (Resin 3.1.1+) ==<br />
<br />
[[Quercus: activeCollab]]<br />
<br />
[[Quercus: DokuWiki]] 2006-11-06<br />
<br />
[[Quercus: Dragonfly CMS]] 9.0.6.1.7<br />
<br />
[[Quercus: Drupal]] 5.1<br />
<br />
[[Quercus: Gallery2]] 2.1.2<br />
<br />
[[Quercus: Joomla]] 1.0.11<br />
<br />
[[Quercus: Mediawiki]] 1.9.3<br />
<br />
[[Quercus: Openads]] 2.0.11-pr1<br />
<br />
[[Quercus: Phorum]] 5.1.16a<br />
<br />
[[Quercus: PHP-Nuke]] 7.9<br />
<br />
[[Quercus: phpBB]] 2.0.21<br />
<br />
[[Quercus: phpMyAdmin]] 2.9.1.1<br />
<br />
[[Quercus: PHProjekt]] 5.2<br />
<br />
[[Quercus: Vanilla]] 1.1.2<br />
<br />
[[Quercus: Wordpress]] 2.0.5<br />
<br />
[[Quercus: Xoops]] 2.0.16</div>
Nam
http://wiki3.caucho.com/Quercus:_Gallery2
Quercus: Gallery2
2007-04-26T19:33:00Z
<p>Nam: New page: Required resin-web.xml configuration: <web-app xmlns="http://caucho.com/ns/resin"> <servlet-mapping url-pattern="*.php" servlet-class="com.caucho.quercus.servlet.Quer...</p>
<hr />
<div>Required resin-web.xml configuration:<br />
<br />
<web-app xmlns="http://caucho.com/ns/resin"><br />
<servlet-mapping url-pattern="*.php"<br />
servlet-class="com.caucho.quercus.servlet.QuercusServlet"><br />
<init><br />
<script-encoding>ISO-8859-1</script-encoding><br />
<php-ini><br />
<unicode.runtime_encoding>ISO-8859-1</unicode.runtime_encoding><br />
</php-ini><br />
</init><br />
</servlet-mapping><br />
</web-app></div>
Nam
http://wiki3.caucho.com/Quercus:_Vanilla
Quercus: Vanilla
2007-03-21T23:50:03Z
<p>Nam: </p>
<hr />
<div>I have verified that Vanilla 1.1.2 works in Resin 3.1+. All I did was follow the standards steps to install any PHP app:<br />
<br />
1. Download the the MySQL Connector/J database driver into Resin's lib directory. 2. create database for vanilla<br />
3. begin Vanilla's setup. <br />
<br />
-- Nam<br />
<br />
----------<br />
<br />
There may be an issue with Vanilla 1.0.3 running on Resin 3.1. The vanilla wizard fails on page that attempts to connect to the database. I've triple-confirmed that the username and password, as well as the permissions, for the vanilla mysql account are correct and that the permissions are wide open (i.e. accessible from any IP, etc.). Any thoughts?</div>
Nam
http://wiki3.caucho.com/Talk:Quercus:_Vanilla
Talk:Quercus: Vanilla
2007-03-21T23:48:30Z
<p>Nam: New page: I have verified that Vanilla 1.1.2 works in Resin 3.1+. All I did was follow the standards steps to install any PHP app: 1. Download the the MySQL Connector/J database driver into Resin'...</p>
<hr />
<div>I have verified that Vanilla 1.1.2 works in Resin 3.1+. All I did was follow the standards steps to install any PHP app:<br />
<br />
1. Download the the MySQL Connector/J database driver into Resin's lib directory.<br />
2. create database for vanilla<br />
3. begin Vanilla's setup.</div>
Nam
http://wiki3.caucho.com/Quercus
Quercus
2007-03-21T23:44:56Z
<p>Nam: </p>
<hr />
<div>[[Category:Quercus]]<br />
<br />
== topics ==<br />
<br />
[http://forum.caucho.com Quercus News and Discussion]<br />
<br />
<br />
[[PHP Hello World]]<br />
<br />
[[PHP Hello World Class]]<br />
<br />
[[PHP Hello World Module]]<br />
<br />
[[PHP Hello World Module (jar version)]]<br />
<br />
[[PHP implementation status]]<br />
<br />
[[PHP and MySQL]]<br />
<br />
[[Quercus: Env]]<br />
<br />
[[Quercus: Interpreted, compiled, and lazy]]<br />
<br />
[[Quercus: Image Library example]]<br />
<br />
[[Quercus: POSIX]]<br />
<br />
[[Quercus: JSON]]<br />
<br />
== software running on Quercus (Resin 3.1.1+) ==<br />
<br />
[[Quercus: activeCollab]]<br />
<br />
[[Quercus: DokuWiki]] 2006-11-06<br />
<br />
[[Quercus: Dragonfly CMS]] 9.0.6.1.7<br />
<br />
[[Quercus: Drupal]] 5.1<br />
<br />
[[Quercus: Gallery2]] 2.1.2<br />
<br />
[[Quercus: Joomla]] 1.0.11<br />
<br />
[[Quercus: Mediawiki]] 1.9.3<br />
<br />
[[Quercus: Phorum]] 5.1.16a<br />
<br />
[[Quercus: PHP-Nuke]] 7.9<br />
<br />
[[Quercus: phpBB]] 2.0.21<br />
<br />
[[Quercus: phpMyAdmin]] 2.9.1.1<br />
<br />
[[Quercus: PHProjekt]] 5.2<br />
<br />
[[Quercus: Vanilla]] 1.1.2<br />
<br />
[[Quercus: Wordpress]] 2.0.5<br />
<br />
[[Quercus: Xoops]] 2.0.16</div>
Nam
http://wiki3.caucho.com/Quercus
Quercus
2007-03-13T05:20:05Z
<p>Nam: </p>
<hr />
<div>[[Category:Quercus]]<br />
<br />
== topics ==<br />
<br />
[http://forum.caucho.com Quercus News and Discussion]<br />
<br />
<br />
[[PHP Hello World]]<br />
<br />
[[PHP Hello World Class]]<br />
<br />
[[PHP Hello World Module]]<br />
<br />
[[PHP Hello World Module (jar version)]]<br />
<br />
[[PHP implementation status]]<br />
<br />
[[PHP and MySQL]]<br />
<br />
[[Quercus: Env]]<br />
<br />
[[Quercus: Interpreted, compiled, and lazy]]<br />
<br />
[[Quercus: Image Library example]]<br />
<br />
[[Quercus: POSIX]]<br />
<br />
[[Quercus: JSON]]<br />
<br />
== software running on Quercus (Resin 3.1.1+) ==<br />
<br />
[[Quercus: activeCollab]]<br />
<br />
[[Quercus: DokuWiki]] 2006-11-06<br />
<br />
[[Quercus: Dragonfly CMS]] 9.0.6.1.7<br />
<br />
[[Quercus: Drupal]] 5.1<br />
<br />
[[Quercus: Gallery2]] 2.1.2<br />
<br />
[[Quercus: Joomla]] 1.0.11<br />
<br />
[[Quercus: Mediawiki]] 1.9.3<br />
<br />
[[Quercus: Phorum]] 5.1.16a<br />
<br />
[[Quercus: PHP-Nuke]] 7.9<br />
<br />
[[Quercus: phpBB]] 2.0.21<br />
<br />
[[Quercus: phpMyAdmin]] 2.9.1.1<br />
<br />
[[Quercus: PHProjekt]] 5.2<br />
<br />
[[Quercus: Vanilla]]<br />
<br />
[[Quercus: Wordpress]] 2.0.5<br />
<br />
[[Quercus: Xoops]] 2.0.16</div>
Nam
http://wiki3.caucho.com/Quercus:_Mediawiki
Quercus: Mediawiki
2007-03-13T05:07:07Z
<p>Nam: </p>
<hr />
<div>[[Category:Quercus]]<br />
<br />
==Download Resin 3.1.1+==<br />
The newest Resin versions have several bug fixes for MediaWiki.<br />
<br />
==Download MediaWiki==<br />
Download [http://www.mediawiki.org/wiki/Download MediaWiki] into $resin_home/webapps/ROOT/mediawiki.<br />
<br />
==Download MySQL JDBC Driver==<br />
Download [http://www.mysql.com/products/connector/j/ MySQL Connector/J JDBC Driver] into $resin_home/lib. Any version is fine.<br />
<br />
==Add resin-web.xml==<br />
Add the following resin-web.xml file to $resin_home/webapps/ROOT/mediawiki/WEB-INF. Customize email settings to allow the sending of emails from PHP. Anything not in bold is optional.<br />
<br />
The resin-web.xml has the QuercusServlet mapped to *.php. Optionally, it has a <[[database]]> as PHP's database. Quercus can automatically create database pools if you omit the <[[database]]> configuration, but it's better to configure it explicitly.<br />
<br />
<b><web-app xmlns="http://caucho.com/ns/resin"></b><br />
<database jndi-name='jdbc/mediawiki'><br />
<driver type="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource"><br />
<url>jdbc:mysql://localhost:3306/mediawiki</url><br />
<user></user><br />
<password></password><br />
</driver><br />
</database><br />
<br />
<b><servlet-mapping url-pattern="*.php"<br />
servlet-class="com.caucho.quercus.servlet.QuercusServlet"><br />
<init></b><br />
<database>jdbc/mediawiki</database><br />
<compile>true</compile><br />
<b><script-encoding>ISO-8859-1</script-encoding><br />
<php-ini><br />
<sendmail_from>foo@bar.com</sendmail_from><br />
</php-ini><br />
</init><br />
</servlet-mapping></b><br />
<br />
<b><welcome-file-list>index.php</welcome-file-list><br />
</web-app></b><br />
<br />
==Finish==<br />
Run MediaWiki's installation. That's it!</div>
Nam
http://wiki3.caucho.com/Quercus:_Mediawiki
Quercus: Mediawiki
2007-03-13T05:05:57Z
<p>Nam: /* Download Resin 3.1.1+ */</p>
<hr />
<div>[[Category:Quercus]]<br />
<br />
==Download Resin 3.1.1+==<br />
The newest Resin versions have several bug fixes for MediaWiki. We also release snapshot releases that contain the newest fixes.<br />
<br />
====Download MySQL JDBC Driver==<br />
<br />
====Add resin-web.xml======Finish====</div>
Nam
http://wiki3.caucho.com/Quercus
Quercus
2007-02-15T21:18:18Z
<p>Nam: /* software running on Quercus (Resin 3.1.1) */</p>
<hr />
<div>[[Category:Quercus]]<br />
<br />
== topics ==<br />
<br />
[http://forum.caucho.com Quercus News and Discussion]<br />
<br />
<br />
[[PHP Hello World]]<br />
<br />
[[PHP Hello World Class]]<br />
<br />
[[PHP Hello World Module]]<br />
<br />
[[PHP Hello World Module (jar version)]]<br />
<br />
[[PHP implementation status]]<br />
<br />
[[PHP and MySQL]]<br />
<br />
[[Quercus: Env]]<br />
<br />
[[Quercus: Interpreted, compiled, and lazy]]<br />
<br />
[[Quercus: Image Library example]]<br />
<br />
[[Quercus: POSIX]]<br />
<br />
[[Quercus: JSON]]<br />
<br />
== software running on Quercus (Resin 3.1.1+) ==<br />
<br />
[[Quercus: activeCollab]]<br />
<br />
[[Quercus: DokuWiki]] 2006-11-06<br />
<br />
[[Quercus: Dragonfly CMS]] 9.0.6.1.7<br />
<br />
[[Quercus: Drupal]] 5.1<br />
<br />
[[Quercus: Gallery2]] 2.1.2<br />
<br />
[[Quercus: Joomla]] 1.0.11<br />
<br />
[[Quercus: Mediawiki]] 1.9.2<br />
<br />
[[Quercus: Phorum]] 5.1.16a<br />
<br />
[[Quercus: PHP-Nuke]] 7.9<br />
<br />
[[Quercus: phpBB]] 2.0.21<br />
<br />
[[Quercus: phpMyAdmin]] 2.9.1.1<br />
<br />
[[Quercus: PHProjekt]] 5.2<br />
<br />
[[Quercus: Vanilla]]<br />
<br />
[[Quercus: Wordpress]] 2.0.5<br />
<br />
[[Quercus: Xoops]] 2.0.16</div>
Nam