[PHP-DOC] cvs: phpdoc /en language-snippets.ent

2006-10-05 Thread TAKAGI Masahiro
takagi  Fri Oct  6 03:31:27 2006 UTC

  Modified files:  
/phpdoc/en  language-snippets.ent 
  Log:
  Keep 'em sorted :-)
  
  
http://cvs.php.net/viewvc.cgi/phpdoc/en/language-snippets.ent?r1=1.174&r2=1.175&diff_format=u
Index: phpdoc/en/language-snippets.ent
diff -u phpdoc/en/language-snippets.ent:1.174 
phpdoc/en/language-snippets.ent:1.175
--- phpdoc/en/language-snippets.ent:1.174   Thu Oct  5 16:16:16 2006
+++ phpdoc/en/language-snippets.ent Fri Oct  6 03:31:27 2006
@@ -1,4 +1,4 @@
-
+
 
 
 
@@ -223,12 +223,12 @@
 This function is only available if
 PHP is compiled with the bundled version of the GD library.'>
 
-This function requires GD 2.0.1 or later 
(2.0.28 or later is recommended).'>
-
 This function is only available if
 PHP is compiled with freetype support (--with-freetype-dir=DIR)
 '>
 
+This function requires GD 2.0.1 or later 
(2.0.28 or later is recommended).'>
+
 
 
 Every call to a date/time function will generate a 
E_NOTICE 


[PHP-DOC] cvs: phpdoc /en/reference/icap reference.xml

2006-10-05 Thread Friedhelm Betz
betzThu Oct  5 16:32:29 2006 UTC

  Modified files:  
/phpdoc/en/reference/icap   reference.xml 
  Log:
  icap _is_ removed
  
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/icap/reference.xml?r1=1.5&r2=1.6&diff_format=u
Index: phpdoc/en/reference/icap/reference.xml
diff -u phpdoc/en/reference/icap/reference.xml:1.5 
phpdoc/en/reference/icap/reference.xml:1.6
--- phpdoc/en/reference/icap/reference.xml:1.5  Sun Sep  4 19:39:15 2005
+++ phpdoc/en/reference/icap/reference.xml  Thu Oct  5 16:32:29 2006
@@ -1,9 +1,9 @@
 
-
+
 
 
  
-  ICAP Functions [deprecated]
+  ICAP Functions [removed]
   ICAP
 
   
@@ -11,7 +11,7 @@
 &reftitle.intro;
 
  
-  Icap will be removed in near future. Neither this module, nor
+  Icap was removed from PHP. Neither this module, nor
   those versions of icap library are supported any longer. If you
   want to use calendar capabilities in PHP, use mcal instead.


[PHP-DOC] #39031 [Ana->Csd]: call to undefined function in imageftbbox()

2006-10-05 Thread betz
 ID:   39031
 Updated by:   [EMAIL PROTECTED]
 Reported By:  vijijvs at yahoo dot co dot in
-Status:   Analyzed
+Status:   Closed
 Bug Type: Documentation problem
 Operating System: Mandrake Linux
 PHP Version:  Irrelevant
 New Comment:

Still undocumented, but freetype requirement mentioned.



Previous Comments:


[2006-10-05 08:54:34] [EMAIL PROTECTED]

imageftbbox, imagefttext requires freetype-support in gd.
your output from gd shows, that your gd is not compiled with
freetype-support.



[2006-10-05 04:31:52] vijijvs at yahoo dot co dot in

Following is the information got for gdinfo:

array(10) { ["GD Version"]=>  string(13) "2.0 or higher" ["FreeType
Support"]=>  bool(false) ["T1Lib Support"]=>  bool(false) ["GIF Read
Support"]=>  bool(true) ["GIF Create Support"]=>  bool(true) ["JPG
Support"]=>  bool(true) ["PNG Support"]=>  bool(true) ["WBMP
Support"]=>  bool(true) ["XBM Support"]=>  bool(false) ["JIS-mapped
Japanese Font Support"]=>  bool(false) }



[2006-10-04 18:23:37] [EMAIL PROTECTED]

According to the source (gd.c):

ifdef ENABLE_GD_TTF
 PHP_FE(imagettfbbox, arginfo_imagettfbbox)
 PHP_FE(imagettftext, arginfo_imagettftext)
#if HAVE_LIBFREETYPE && HAVE_GD_STRINGFTEX
 PHP_FE(imageftbbox,
 arginfo_imageftbbox)
 PHP_FE(imagefttext,
 arginfo_imagefttext)
#endif
#endif


Currently both imageftbbox() and imagefttext() have the undocumented
status so essentially this bug report asks them to be documented. There
are currently ~700* functions with the undocumented status but let's
leave this one open anyways...

* http://doc.php.net/php/undoc_functions.php




[2006-10-04 17:07:36] judas dot iscariote at gmail dot com

Your PHP is compiled against a GD version that doesn't support this.

what gdinfo says ?





[2006-10-04 06:52:03] vijijvs at yahoo dot co dot in

Description:

I get a fatal error:

Fatal error: Call to undefined function: imageftbbox()in php4.3.9 even
though other image functions are working.

Reproduce code:
---
$fontSize = 5; 
$lineSpacing = 1;   
list($llx, $lly, $lrx, $lry, $urx, $ury, $ulx, $uly) =
imageftbbox($fontSize, 0, $fontFileName, $text, array("linespacing" =>
$lineSpacing));
$textWidth = $lrx - $llx;
$textHeight = $lry - $ury; 
$angle = 0;

Actual result:
--
Fatal error: Call to undefined function: imageftbbox()





-- 
Edit this bug report at http://bugs.php.net/?id=39031&edit=1


[PHP-DOC] cvs: phpdoc /en/reference/image/functions imageftbbox.xml imagefttext.xml

2006-10-05 Thread Friedhelm Betz
betzThu Oct  5 16:18:12 2006 UTC

  Modified files:  
/phpdoc/en/reference/image/functionsimageftbbox.xml 
imagefttext.xml 
  Log:
  fix #39031, funcs require freetype support
  
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/image/functions/imageftbbox.xml?r1=1.5&r2=1.6&diff_format=u
Index: phpdoc/en/reference/image/functions/imageftbbox.xml
diff -u phpdoc/en/reference/image/functions/imageftbbox.xml:1.5 
phpdoc/en/reference/image/functions/imageftbbox.xml:1.6
--- phpdoc/en/reference/image/functions/imageftbbox.xml:1.5 Thu Sep 16 
15:02:51 2004
+++ phpdoc/en/reference/image/functions/imageftbbox.xml Thu Oct  5 16:18:12 2006
@@ -1,5 +1,5 @@
 
-
+
 
   

@@ -19,6 +19,7 @@
 
  &warn.undocumented.func;
  ¬e.gd.2;
+ ¬e.freetype;
 
 
  
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/image/functions/imagefttext.xml?r1=1.6&r2=1.7&diff_format=u
Index: phpdoc/en/reference/image/functions/imagefttext.xml
diff -u phpdoc/en/reference/image/functions/imagefttext.xml:1.6 
phpdoc/en/reference/image/functions/imagefttext.xml:1.7
--- phpdoc/en/reference/image/functions/imagefttext.xml:1.6 Thu Sep 16 
15:02:51 2004
+++ phpdoc/en/reference/image/functions/imagefttext.xml Thu Oct  5 16:18:12 2006
@@ -1,5 +1,5 @@
 
-
+
 
   

@@ -23,6 +23,7 @@
 
  &warn.undocumented.func;
  ¬e.gd.2;
+ ¬e.freetype;
 
 
  


[PHP-DOC] cvs: phpdoc /en language-snippets.ent

2006-10-05 Thread Friedhelm Betz
betzThu Oct  5 16:16:16 2006 UTC

  Modified files:  
/phpdoc/en  language-snippets.ent 
  Log:
  note about freetype requirement
  
http://cvs.php.net/viewvc.cgi/phpdoc/en/language-snippets.ent?r1=1.173&r2=1.174&diff_format=u
Index: phpdoc/en/language-snippets.ent
diff -u phpdoc/en/language-snippets.ent:1.173 
phpdoc/en/language-snippets.ent:1.174
--- phpdoc/en/language-snippets.ent:1.173   Fri Sep  8 08:56:01 2006
+++ phpdoc/en/language-snippets.ent Thu Oct  5 16:16:16 2006
@@ -1,4 +1,4 @@
-
+
 
 
 
@@ -225,6 +225,10 @@
 
 This function requires GD 2.0.1 or later 
(2.0.28 or later is recommended).'>
 
+This function is only available if
+PHP is compiled with freetype support (--with-freetype-dir=DIR)
+'>
+
 
 
 Every call to a date/time function will generate a 
E_NOTICE 


[PHP-DOC] cvs: phpdoc /en/reference/mysqli/functions mysqli-stmt-prepare.xml

2006-10-05 Thread Nuno Lopes
nlopess Thu Oct  5 13:45:36 2006 UTC

  Modified files:  
/phpdoc/en/reference/mysqli/functions   mysqli-stmt-prepare.xml 
  Log:
  fix example (user note)
  
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/mysqli/functions/mysqli-stmt-prepare.xml?r1=1.3&r2=1.4&diff_format=u
Index: phpdoc/en/reference/mysqli/functions/mysqli-stmt-prepare.xml
diff -u phpdoc/en/reference/mysqli/functions/mysqli-stmt-prepare.xml:1.3 
phpdoc/en/reference/mysqli/functions/mysqli-stmt-prepare.xml:1.4
--- phpdoc/en/reference/mysqli/functions/mysqli-stmt-prepare.xml:1.3Fri Nov 
12 14:01:04 2004
+++ phpdoc/en/reference/mysqli/functions/mysqli-stmt-prepare.xmlThu Oct 
 5 13:45:36 2006
@@ -1,5 +1,5 @@
 
-
+
   

 mysqli_stmt_prepare
@@ -142,7 +142,7 @@
 $city = "Amersfoort";
 
 /* create a prepared statement */
-$stmt = mysqli_stmt_init();
+$stmt = mysqli_stmt_init($link);
 if ($stmt = mysqli_stmt_prepare($stmt, "SELECT District FROM City WHERE 
Name=?")) {
 
 /* bind parameters for markers */


[PHP-DOC] #38986 [Opn->Bgs]: Wrong example 1 -> Hash values of Password

2006-10-05 Thread colder
 ID:  38986
 Updated by:  [EMAIL PROTECTED]
 Reported By: charlie28u798r at web dot de
-Status:  Open
+Status:  Bogus
 Bug Type:Documentation problem
 PHP Version: Irrelevant
 New Comment:

Because the salt is random, the resulting hash will be random.
To test this hash against an user input, you'll use $hash as the salt:
if(crypt($input, $hash) == $hash)

The hash can always be used as the salt:
crypt($p, crypt($p, $salt)) == crypt($p, $salt) // true

Example1 looks perfectly clear to me.
Example2 is correct, apache handles crypt()'ed passwords.


Previous Comments:


[2006-09-28 20:49:31] charlie28u798r at web dot de

Description:

There are 2 examples given in the documentation of crypt(), which cant
work the way their shown.

Example 2 will, as read in the documentation, give a different hash
values each time its called. But it looks like its supposed to give the
same hash for same passwords so a user given password can be compared
with the one saved in a databank (or the on in htpasswd).



Reproduce code:
---
On the other hand example 1 is not clear. This wont work either, unless
$user_input is given and it won't really state what it should do. From
the code i would state it should be used to compare passwords, but like
i said its not clear.

 

Expected result:

Password verified

Actual result:
--
Wrong Password





-- 
Edit this bug report at http://bugs.php.net/?id=38986&edit=1


Re: [PHP-DOC] cvs: phpdoc /en/reference/sdo reference.xml

2006-10-05 Thread Nuno Lopes

no problem ;)

Thanks,
Nuno


- Original Message - 
Humble apols, I had reinstalled my XML editor and not set the defaults 
correctly. Should be OK now.


Nuno Lopes wrote:

Caroline,

Please replace the tabs with spaces in your commit to conform with our 
conventions (http://doc.php.net/php/dochowto/chapter-conventions.php).


Thanks,
Nuno


- Original Message - From: "Caroline Maynard" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, October 04, 2006 5:02 PM
Subject: [PHP-DOC] cvs: phpdoc /en/reference/sdo reference.xml



cem Wed Oct  4 16:02:24 2006 UTC

 Modified files:
   /phpdoc/en/reference/sdo reference.xml
 Log:
 The XML DAS no longer has its own separate shared library.


Re: [PHP-DOC] cvs: phpdoc /en/reference/sdo reference.xml

2006-10-05 Thread Caroline Maynard
Humble apols, I had reinstalled my XML editor and not set the defaults 
correctly. Should be OK now.


Nuno Lopes wrote:

Caroline,

Please replace the tabs with spaces in your commit to conform with our 
conventions (http://doc.php.net/php/dochowto/chapter-conventions.php).


Thanks,
Nuno


- Original Message - From: "Caroline Maynard" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, October 04, 2006 5:02 PM
Subject: [PHP-DOC] cvs: phpdoc /en/reference/sdo reference.xml



cem Wed Oct  4 16:02:24 2006 UTC

 Modified files:
   /phpdoc/en/reference/sdo reference.xml
 Log:
 The XML DAS no longer has its own separate shared library.



[PHP-DOC] cvs: phpdoc /en/reference/image reference.xml

2006-10-05 Thread Friedhelm Betz
betzThu Oct  5 10:53:33 2006 UTC

  Modified files:  
/phpdoc/en/reference/image  reference.xml 
  Log:
  move exif info to intro, rewording
  
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/image/reference.xml?r1=1.27&r2=1.28&diff_format=u
Index: phpdoc/en/reference/image/reference.xml
diff -u phpdoc/en/reference/image/reference.xml:1.27 
phpdoc/en/reference/image/reference.xml:1.28
--- phpdoc/en/reference/image/reference.xml:1.27Tue Jun  6 15:10:33 2006
+++ phpdoc/en/reference/image/reference.xml Thu Oct  5 10:53:33 2006
@@ -1,5 +1,5 @@
 
-
+
 
 
 
@@ -26,11 +26,20 @@
  TIFF and JPEG2000 images.
 
 
+  With the exif extension, you are able
+  to work with information stored in headers of
+  JPEG and TIFF images. This way you 
can
+  read meta data generated by digital cameras. The exif
+  functions do not require the GD library.
+
+
+
  
   
-   Read requirements section about how to expand image capabilities
-   to read, write and modify images and to read meta data of pictures
-   taken by digital cameras.
+   Read the requirements section about how to expand image capabilities
+   to read, write and modify images. To read meta data of pictures
+   taken by digital cameras you need the above mentioned
+   exif extension.
   
  
 
@@ -143,21 +152,13 @@
  T1lib
  &url.t1lib;)
  
-  Support for Type 1 fonts.
+  Support for Postscript Type 1 fonts.
  
 

   
  
 
-
-
- If you have PHP compiled with --enable-exif
- you are able to work with information stored in headers of
- JPEG and TIFF images. This way you 
can
- read meta data generated by digital cameras as mentioned above. These
- functions do not require the GD library.
-

 
&reference.image.configure;


[PHP-DOC] cvs: phpdoc /en/reference/sdo reference.xml

2006-10-05 Thread Caroline Maynard
cem Thu Oct  5 10:48:58 2006 UTC

  Modified files:  
/phpdoc/en/reference/sdoreference.xml 
  Log:
  Formatting changes only
  http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/sdo/reference.xml?r1=1.24&r2=1.25&diff_format=u
Index: phpdoc/en/reference/sdo/reference.xml
diff -u phpdoc/en/reference/sdo/reference.xml:1.24 
phpdoc/en/reference/sdo/reference.xml:1.25
--- phpdoc/en/reference/sdo/reference.xml:1.24  Wed Oct  4 16:02:24 2006
+++ phpdoc/en/reference/sdo/reference.xml   Thu Oct  5 10:48:58 2006
@@ -1,5 +1,5 @@
 
-
+
 
 
 
@@ -73,175 +73,171 @@
 
   
&reftitle.required;
-The SDO extension requires PHP 5.1 or higher. It also requires the 
libxml2 library.
-Normally libxml2 will already be installed, but if not, it can be 
downloaded from
-&url.libxml;.
+   
+The SDO extension requires PHP 5.1 or higher. It also requires the
+libxml2 library. Normally libxml2 will already be installed, but if
+not, it can be downloaded from
+
+ &url.libxml;
+
+.

   
 
   
-   &reftitle.install;
-   
-   
-   Earlier versions of the SDO extension required a 
separate
-   shared library for the XML DAS. This is now obsolete and
-   any references to
-   php_sdo_das_xml.dll
-   or
-   sdo_das_xml.so
-   should be removed from your &php.ini;.
-   .
-   
-   
-   
-   Unix systems
-   
-   
-   You can download and install the latest stable 
release
-   of all three SDO components - the SDO core, the 
XML
-   DAS and the Relational DAS - with the command:
-   
-   
-   
-   
-   
-   This command will build the SDO shared library 
as well
-   as installing the PHP files that make the 
Relational
-   DAS.
-   
-   
-   If you want to use the latest beta version, then
-   instead run:
-   
-   
-   
-   
-   
-   
-   
-   The
-   pecl
-   command automatically installs the SDO module 
into
-   your PHP extensions directory. To enable the SDO
-   extension you must add the following line to
-   &php.ini;
-   :
-   
-   
-   
-   
-   
-   For more information about building PECL 
packages,
-   consult the
-   PECL 
installation
-   section of the manual.
-   
-   
-   
-
-   
-   Windows
-   
-   
-   The latest SDO DLL can be downloaded from
-   
-   php_sdo.dll
-   
-   .
-   
-   
-   Note that currently the
-   pecl4win
-   site does not provide this binary at the current
-   release level; you can only download the latest 
level.
-   
-   
-   
-   
-   The
-   pecl
-   command automatically installs the SDO module 
into
-   your PHP extensions directory. To enable the SDO
-   extension you must add the following line to
-   &php.ini;
-   :
-   
-   
-   
-   
-   
-   
-   
-   The Relational DAS can be downloaded and 
installed
-   with the command:
-   
-   
-   
-   
-   

[PHP-DOC] cvs: phpdoc /en/reference/image configure.xml

2006-10-05 Thread Friedhelm Betz
betzThu Oct  5 10:14:53 2006 UTC

  Modified files:  
/phpdoc/en/reference/image  configure.xml 
  Log:
  remove unrelated exif not for windows, clarify what T1 fonts are
  
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/image/configure.xml?r1=1.10&r2=1.11&diff_format=u
Index: phpdoc/en/reference/image/configure.xml
diff -u phpdoc/en/reference/image/configure.xml:1.10 
phpdoc/en/reference/image/configure.xml:1.11
--- phpdoc/en/reference/image/configure.xml:1.10Tue Sep 14 09:26:27 2004
+++ phpdoc/en/reference/image/configure.xml Thu Oct  5 10:14:53 2006
@@ -1,5 +1,5 @@
 
-
+
 
  &reftitle.install;
  
@@ -17,12 +17,6 @@
   removed in PHP 4.3.2. Also note that the preferred truecolor image
   functions, such as imagecreatetruecolor, require GD2.
  
- 
-  
-   To enable exif support in Windows, php_mbstring.dll must be loaded prior
-   to php_exif.dll in php.ini.
-  
- 
  
   To disable GD support in PHP 3 add
   --without-gd to your configure line.
@@ -109,7 +103,7 @@
  
   T1lib
   
-   To enable support for T1lib (Type 1 fonts) add
+   To enable support for T1lib (Postscript Type 1 fonts) add
--with-t1lib[=DIR].
   
  


[PHP-DOC] #39031 [Opn->Ana]: call to undefined function in imageftbbox()

2006-10-05 Thread betz
 ID:   39031
 Updated by:   [EMAIL PROTECTED]
 Reported By:  vijijvs at yahoo dot co dot in
-Status:   Open
+Status:   Analyzed
 Bug Type: Documentation problem
 Operating System: Mandrake Linux
 PHP Version:  Irrelevant
 New Comment:

imageftbbox, imagefttext requires freetype-support in gd.
your output from gd shows, that your gd is not compiled with
freetype-support.


Previous Comments:


[2006-10-05 04:31:52] vijijvs at yahoo dot co dot in

Following is the information got for gdinfo:

array(10) { ["GD Version"]=>  string(13) "2.0 or higher" ["FreeType
Support"]=>  bool(false) ["T1Lib Support"]=>  bool(false) ["GIF Read
Support"]=>  bool(true) ["GIF Create Support"]=>  bool(true) ["JPG
Support"]=>  bool(true) ["PNG Support"]=>  bool(true) ["WBMP
Support"]=>  bool(true) ["XBM Support"]=>  bool(false) ["JIS-mapped
Japanese Font Support"]=>  bool(false) }



[2006-10-04 18:23:37] [EMAIL PROTECTED]

According to the source (gd.c):

ifdef ENABLE_GD_TTF
 PHP_FE(imagettfbbox, arginfo_imagettfbbox)
 PHP_FE(imagettftext, arginfo_imagettftext)
#if HAVE_LIBFREETYPE && HAVE_GD_STRINGFTEX
 PHP_FE(imageftbbox,
 arginfo_imageftbbox)
 PHP_FE(imagefttext,
 arginfo_imagefttext)
#endif
#endif


Currently both imageftbbox() and imagefttext() have the undocumented
status so essentially this bug report asks them to be documented. There
are currently ~700* functions with the undocumented status but let's
leave this one open anyways...

* http://doc.php.net/php/undoc_functions.php




[2006-10-04 17:07:36] judas dot iscariote at gmail dot com

Your PHP is compiled against a GD version that doesn't support this.

what gdinfo says ?





[2006-10-04 06:52:03] vijijvs at yahoo dot co dot in

Description:

I get a fatal error:

Fatal error: Call to undefined function: imageftbbox()in php4.3.9 even
though other image functions are working.

Reproduce code:
---
$fontSize = 5; 
$lineSpacing = 1;   
list($llx, $lly, $lrx, $lry, $urx, $ury, $ulx, $uly) =
imageftbbox($fontSize, 0, $fontFileName, $text, array("linespacing" =>
$lineSpacing));
$textWidth = $lrx - $llx;
$textHeight = $lry - $ury; 
$angle = 0;

Actual result:
--
Fatal error: Call to undefined function: imageftbbox()





-- 
Edit this bug report at http://bugs.php.net/?id=39031&edit=1