[PHP-DOC] Übersetzungsteam Deutsch
Hallo, ich würde gerne mitwirken das PHP-Handbuch auf Deutsch zu übersetzen. Es wäre sehr nett wenn ich Informationen darüber erhalten könnte. Mit freundlichen Grüßen Marcus Lehrmann
Re: [PHP-DOC] Übersetzungsteam Deutsch
[EMAIL PROTECTED] wrote: Hallo, ich würde gerne mitwirken das PHP-Handbuch auf Deutsch zu übersetzen. Es wäre sehr nett wenn ich Informationen darüber erhalten könnte. Mit freundlichen Grüßen Marcus Lehrmann Please contact the german translators: [EMAIL PROTECTED] Volunteers are very welcome! A good start is to read our howto: http://doc.php.net/php/dochowto/ Information for Translators http://doc.php.net/php/dochowto/chapter-translation.php Please ask further questions on [EMAIL PROTECTED] (and exclude [EMAIL PROTECTED]@php.net from the cc) Friedhelm
[PHP-DOC] #33772 [Opn-Asn]: __destruct is run too early (session_save_handler)
ID: 33772 Updated by: [EMAIL PROTECTED] Reported By: msipria at suomi24 dot fi -Status: Open +Status: Assigned Bug Type: Documentation problem Operating System: * PHP Version: 5CVS-2005-07-19 -Assigned To: +Assigned To: sniper Previous Comments: [2005-09-10 12:34:54] zulan at zulan dot net If this is the egg, the chicken is: http://bugs.php.net/bug.php?id=27555 Is there a way to make it ini_set-able if objects-__destruct or sess_write_close first? [2005-09-09 22:01:22] earnest dot berry at gmail dot com I also am having the issue. I'm using 5.1.0b3 with mysql 4.1.13a-nt. Will this be fixed in the next relase of PHP? [2005-09-09 21:56:34] tss24 at cornell dot edu Experiencing the same exact problem with PHP 5.0.5 and MySQL 4.1.11 Was this a new bug with PHP 5.0.5 / 5.1.x? [2005-08-24 23:58:03] webmaster at vintagegaming dot org I want to enter this as a new bug report but I expect it would be kicked out as a duplicate of 33635, which links to this bug. This seems related in that something has changed so that my mysqli link is closed before the shutdown_function is executed. The following code works in all php5 versions before 5.1beta3. ?php function shutdown() { global $link; echo mysqli_real_escape_string($link, 'foo'); } $servername = 'localhost'; $username = 'username'; $password = 'password'; $link = mysqli_init(); mysqli_real_connect($link, $servername, $username, $password); echo mysqli_real_escape_string($link, 'foo') . 'br /'; register_shutdown_function('shutdown'); ? Expected Result: foo foo Actual Result: foo Warning: Couldn't fetch mysqli in c:\program files\apache group\Apache\htdocs\foo.php on line 7 and to further this annoying issue, why is it that the equivalent mysql function still works in 5.1b3? ?php function shutdown() { global $link; echo mysql_real_escape_string('foo', $link); } $servername = 'localhost'; $username = 'username'; $password = 'password'; $link = mysql_connect($servername, $username, $password); echo mysql_real_escape_string('foo', $link) . 'br /'; register_shutdown_function('shutdown'); ? Expected Result: foo foo Actual Result: foo foo [2005-08-23 03:03:36] [EMAIL PROTECTED] Reclassified as documentation issue. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/33772 -- Edit this bug report at http://bugs.php.net/?id=33772edit=1
[PHP-DOC] #33772 [Asn-Opn]: __destruct is run too early (session_save_handler)
ID: 33772 Updated by: [EMAIL PROTECTED] Reported By: msipria at suomi24 dot fi -Status: Assigned +Status: Open Bug Type: Documentation problem Operating System: * PHP Version: 5CVS-2005-07-19 Previous Comments: [2005-09-10 12:34:54] zulan at zulan dot net If this is the egg, the chicken is: http://bugs.php.net/bug.php?id=27555 Is there a way to make it ini_set-able if objects-__destruct or sess_write_close first? [2005-09-09 22:01:22] earnest dot berry at gmail dot com I also am having the issue. I'm using 5.1.0b3 with mysql 4.1.13a-nt. Will this be fixed in the next relase of PHP? [2005-09-09 21:56:34] tss24 at cornell dot edu Experiencing the same exact problem with PHP 5.0.5 and MySQL 4.1.11 Was this a new bug with PHP 5.0.5 / 5.1.x? [2005-08-24 23:58:03] webmaster at vintagegaming dot org I want to enter this as a new bug report but I expect it would be kicked out as a duplicate of 33635, which links to this bug. This seems related in that something has changed so that my mysqli link is closed before the shutdown_function is executed. The following code works in all php5 versions before 5.1beta3. ?php function shutdown() { global $link; echo mysqli_real_escape_string($link, 'foo'); } $servername = 'localhost'; $username = 'username'; $password = 'password'; $link = mysqli_init(); mysqli_real_connect($link, $servername, $username, $password); echo mysqli_real_escape_string($link, 'foo') . 'br /'; register_shutdown_function('shutdown'); ? Expected Result: foo foo Actual Result: foo Warning: Couldn't fetch mysqli in c:\program files\apache group\Apache\htdocs\foo.php on line 7 and to further this annoying issue, why is it that the equivalent mysql function still works in 5.1b3? ?php function shutdown() { global $link; echo mysql_real_escape_string('foo', $link); } $servername = 'localhost'; $username = 'username'; $password = 'password'; $link = mysql_connect($servername, $username, $password); echo mysql_real_escape_string('foo', $link) . 'br /'; register_shutdown_function('shutdown'); ? Expected Result: foo foo Actual Result: foo foo [2005-08-23 03:03:36] [EMAIL PROTECTED] Reclassified as documentation issue. The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/33772 -- Edit this bug report at http://bugs.php.net/?id=33772edit=1
[PHP-DOC] #34493 [NEW]: mysqli_stmt_bind_param
From: terry dot long at prodigy dot net Operating system: windows xp PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: mysqli_stmt_bind_param Description: The on-line documentation has two simple examples but needs two added complete samples to show how to pass arrays to this function instead of the typed in $variable names. I know that it's possible because Bug report #31096 has a response with a short (I don't understand how it works enough to get my code to work correctly) code snipet. Expected result: Examples that show how to use arrary's of variables with the mysqli_stmt_bind_param and mysqli_execute functions. -- Edit bug report at http://bugs.php.net/?id=34493edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34493r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34493r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34493r=trysnapshot51 Fixed in CVS:http://bugs.php.net/fix.php?id=34493r=fixedcvs Fixed in release:http://bugs.php.net/fix.php?id=34493r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34493r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34493r=needscript Try newer version: http://bugs.php.net/fix.php?id=34493r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34493r=support Expected behavior: http://bugs.php.net/fix.php?id=34493r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34493r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34493r=submittedtwice register_globals:http://bugs.php.net/fix.php?id=34493r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34493r=php3 Daylight Savings:http://bugs.php.net/fix.php?id=34493r=dst IIS Stability: http://bugs.php.net/fix.php?id=34493r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34493r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34493r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34493r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34493r=mysqlcfg
[PHP-DOC] #34493 [Opn]: mysqli_stmt_bind_param
ID: 34493 User updated by: terry dot long at prodigy dot net Reported By: terry dot long at prodigy dot net Status: Open Bug Type: Documentation problem Operating System: windows xp PHP Version: Irrelevant New Comment: I'm using the procedural code style, not the object style, at this point. thanks Previous Comments: [2005-09-13 19:55:32] terry dot long at prodigy dot net Description: The on-line documentation has two simple examples but needs two added complete samples to show how to pass arrays to this function instead of the typed in $variable names. I know that it's possible because Bug report #31096 has a response with a short (I don't understand how it works enough to get my code to work correctly) code snipet. Expected result: Examples that show how to use arrary's of variables with the mysqli_stmt_bind_param and mysqli_execute functions. -- Edit this bug report at http://bugs.php.net/?id=34493edit=1
[PHP-DOC] cvs: phpdoc /en/reference/zlib reference.xml
betzTue Sep 13 18:39:35 2005 EDT Modified files: /phpdoc/en/reference/zlib reference.xml Log: rewording, usage of compression.zlib, link to compression wrappers http://cvs.php.net/diff.php/phpdoc/en/reference/zlib/reference.xml?r1=1.15r2=1.16ty=u Index: phpdoc/en/reference/zlib/reference.xml diff -u phpdoc/en/reference/zlib/reference.xml:1.15 phpdoc/en/reference/zlib/reference.xml:1.16 --- phpdoc/en/reference/zlib/reference.xml:1.15 Sun Sep 4 07:49:43 2005 +++ phpdoc/en/reference/zlib/reference.xml Tue Sep 13 18:39:34 2005 @@ -1,5 +1,5 @@ ?xml version=1.0 encoding=iso-8859-1? -!-- $Revision: 1.15 $ -- +!-- $Revision: 1.16 $ -- !-- Purpose: compression -- !-- Membership: bundled -- @@ -20,20 +20,21 @@ note para Version 4.0.4 introduced a fopen-wrapper for .gz-files, so that - you can use a special 'zlib:' URL to access compressed files - transparently using the normal f*() file access functions if you - prepend the filename or path with a 'zlib:' prefix when calling - functionfopen/function. + you can use a special filenamezlib:/filename URL to access + compressed files transparently using the normal f*() file access + functions if you prefix the filename or path with + filenamezlib:/filename when calling functionfopen/function. This + feature requires a C runtime library that provides the + literalfopencookie()/literal function. Up to now the GNU libc + seems to be the only library that provides this feature. /para para - In version 4.3.0, this special prefix has been changed to 'zlib://' - to prevent ambiguities with filenames containing ':'. - /para - para - This feature requires a C runtime library that provides the - literalfopencookie()/literal function. To my current - knowledge the GNU libc is the only library that provides - this feature. + In PHP 4.3.0, filenamezlib:/filename has been changed to + filenamecompress.zlib:///filename to prevent ambiguities with + filenames containing ':' characters. The + literalfopencookie()/literal function is not longer required. + More information is available in the section about + xref linkend=wrappers.compression /. /para /note /section
[PHP-DOC] cvs: phpdoc /scripts make-partial.php
techtonik Tue Sep 13 19:41:21 2005 EDT Modified files: /phpdoc/scripts make-partial.php Log: * sync with peardoc http://cvs.php.net/diff.php/phpdoc/scripts/make-partial.php?r1=1.1r2=1.2ty=u Index: phpdoc/scripts/make-partial.php diff -u phpdoc/scripts/make-partial.php:1.1 phpdoc/scripts/make-partial.php:1.2 --- phpdoc/scripts/make-partial.php:1.1 Fri Jan 28 10:17:01 2005 +++ phpdoc/scripts/make-partial.php Tue Sep 13 19:41:19 2005 @@ -1,6 +1,7 @@ #!/usr/bin/env php ?php /** vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: + * * Script to trigger partial builds of the PEAR manual * * LICENSE: This source file is subject to version 3.0 of the PHP license @@ -11,30 +12,21 @@ * * @authorMartin Jansen [EMAIL PROTECTED] * @copyright 2005 The PEAR Group - * @version CVS: $Id: make-partial.php,v 1.1 2005/01/28 15:17:01 sean Exp $ + * @version CVS: $Id: make-partial.php,v 1.2 2005/09/13 23:41:19 techtonik Exp $ */ // NOTE: originally from peardoc:/make-partial.php ; // these files should be kept in sync +if (substr(PHP_VERSION, 0, 1) == 4) { +require_once PHP/Compat.php; +$components = PHP_Compat::loadVersion('5.0.0'); +} + require_once Console/Getopt.php; $console = new Console_Getopt; $args = $console-getopt($console-readPHPArgv(), array(), - array(format=, include=)); - -if (!function_exists(readline)) { -echo Error: The readline extension could not be found!; -exit(1); -} - -$file = file(manual.xml.in); -if (!$file) { -echo Error: Unable to read manual.xml.in!; -exit(1); -} - -copy(manual.xml.in, manual.xml.in.partial-backup); -register_shutdown_function(restoreFile); + array(format=, include=, help)); // {{{ gather arguments @@ -42,7 +34,10 @@ $sections = array(); foreach ($args[0] as $arg) { -if ($arg[0] == --format) { +if ($arg[0] == --help) { +showHelp(); +exit(0); +} elseif ($arg[0] == --format) { $format = $arg[1]; } elseif ($arg[0] == '--include') { $sections[] = $arg[1]; @@ -51,6 +46,25 @@ // }}} +$hasReadline = true; +if (!function_exists(readline)) { +$hasReadline = false; +echo Warning: The readline extension could not be found!\n; +if (count($sections) == 0) { +showHelp(); +echo Exiting because no --include parameters were specified.\n; +exit(1); +} +} + +$file = file(manual.xml.in); +if (!$file) { +echo Error: Unable to read manual.xml.in!; +exit(1); +} + +copy(manual.xml.in, manual.xml.in.partial-backup); +register_shutdown_function(restoreFile, filemtime(manual.xml.in)); $newFile = ; $partStack = array(); @@ -68,12 +82,12 @@ if ($sections) { echo Including . $matches[1] .? ; -if ($includePart = in_string($sections, $matches[1])) { +if ($includePart = inString($sections, $matches[1])) { echo YES\n; } else { echo NO\n; } -} else { +} else if ($hasReadline) { $include = readline(Include . $matches[1] . ? [NO] ); $includePart = evaluate($include); } @@ -117,12 +131,12 @@ if ($sections) { echo Including . $matches[2] .? ; -if ($include = in_string($sections, $matches[2])) { +if ($include = inString($sections, $matches[2])) { echo YES\n; } else { echo NO\n; } -} else { +} else if ($hasReadline) { $include = evaluate(readline(Include . $matches[2] . ? [NO] )); } @@ -148,12 +162,14 @@ /** * Restores the original manual.xml.in file */ -function restoreFile() { +function restoreFile($savedmtime) { if (!is_file(manual.xml.in.partial-backup)) { return; } +unlink(manual.xml.in); rename(manual.xml.in.partial-backup, manual.xml.in); +touch(manual.xml.in, $savedmtime); } /** @@ -170,12 +186,16 @@ } /** - * $needle (array) is in $haystack? + * Checks if one element of the first parameter is part of the second parameter * + * @param array List of needles + * @param string Haystack + * @return boolean True if one of the needles is in the haystack, + * false otherwise. */ -function in_string($needle, $haystack) +function inString($needle, $haystack) { -foreach ((array) $needle AS $n) { +foreach ((array) $needle as $n) { if (stripos($haystack, $n) !== false) { return true; } @@ -183,4 +203,22 @@ return false; } +/** + * Prints a usage notice for the script + * + * @return void + */ +function showHelp() +{ +echo Usage: make-partial.php [--format format] [--include section1] [--include section2] ...\n; +echomake-partial.php --help\n; +echo