[PHP-DEV] New Version Released. Upgrade Online

2001-03-17 Thread Support
Title: Click Here To Visit Our Site at www.mewsoft.com






Dear Mewsoft Customer,
Great News. Mewsoft released Auction
Software version 3.00 the unbeatable in its features and prices.
Now only special offer get 50% off and if you
already have any software from any competitor get more
40% on the other 50%, what
amazing offer. This offer will only be for 5 days starting March 17.
Please note we will verify what competitor you have (Bidder Network, Hyperseek,
perlauction, e-classifieds)
or others. Please check the online live demo and customers sites at http://www.mewsoft.com
.
Get Your auction site running in less than 3 minutes with our online auto
installer and upgrade system.
If you receive this email by mistake please reply with "remove" in
the subject to avoid receiving any more upgrades.

  
  

  
 

  
  

  
The First
Multi-Lingual
Auction Software


  
We Guarantee
to setup and run your auction site in 20 minutes from your order


  
Click
Here To Visit Our Site at www.mewsoft.com



  
Now only 50%
off and Free Installation


  
See our Live
Demo and Customers Live Sites


  



  



  
Click
Here To Visit Our Site at www.mewsoft.com



  
50% Discount - for a
limited time only and free installation.
  


  
Run your own
Auction Site now in 20 Minutes


  Mewsoft
Auction is a real time Multilingual, auction software. Complete
ecommerce solution.  


  
Fully customizable from the web based
administration interface. Customization can be done through the
online template editor or editing the template with any html
editor. Every thing that you imagined you need, is already built
in to the package for you. Compare our software features and
prices with those of other similar software that cost $100,000
and more!. We sincerely believe that prohibitive costs should
not stop any one from testing & trying his/her luck. With
this in mind, we decided our price should be affordable to just
about everyone - individuals and small companies included.
Mewsoft Auction Software tested at 300,000 lots without change
in the program speed and virtually it is unlimited in its
database capacity.


  
50% Discount - for a
limited time only.
  


  We guarantee to setup and
have your auction site running within 20 minutes from the time
your order is processed. Join the online business community
within minutes!


  
Software General Features:

  Full accounting system for users and administration.
  Built in file locking system for all platforms and
using binary DBM fast database system.
  Built in HTML editor in auction submission form for
users.
  Images and Files upload for users so you host their
files and charge for it (i.e. You run your own image host
service).
  Different options to charge users: insertion fees,
featured home, featured category, image and file upload,
title, gift icon, reserve, buy, final value fees, charge for
registration, charge fixed value for insertion.
  Links for New, Hot, Cool, Going, Featured, and Big
Ticket auctions in each category and all categories
  Feedback forum for users to rate and leave comments on
each other.
  HTML template based for easy customization to any look.
  All program functions are controlled and
customized from the admin center.
   

[PHP-DEV] PHP 4.0 Bug #9804: Incorrect File type check

2001-03-17 Thread the_man01

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.0.4pl1
PHP Bug Type: GD related
Bug description:  Incorrect File type check

I'm attempting to create a script that accepts  bmp and jpg files uploaded by a user 
and converts them into jpg or bmp files as requested by the user, using the 
ImageCreateFromWBMP, and ImageJPEG functions. But, each time I upload a BMP or JPEG 
image, I get the message:

"Warning: imagecreatefromwbmp: 'image.bmp' is not a valid WBMP file in 
/script/location/here.php on line#"

These BMP and jpeg images are created in photoshop 5.5, and windows paint program on 
win 2000, and 98 platforms and according to thos programs, the file-types are valid.

But, if I use the imagecreate function to generate a  jpeg image (from a string of 
text), save, and upload that jpeg file to my server, then run the same script on it to 
convert it to another file format, no error/warning messages are generated So 
apparantly, php can work on images generated by a php script, but no others.

What makes it even more odd, is that upon uploading an image (one made in photoshop or 
paint) using my script, I have it setup such that a confirmation screen is generated 
where the users are provided with the size and format/type of the uploaded file, and 
theyre always reported as being:
image/jpg
or image/bmp
yet they are flagged as invalid when another php script attempts to manipulate them.

is the problem on my end, am I doing something wrong? Is it that php can't handle 
images created by photoshop  and paint?  or is that the criteria used to validate the 
image format in php is flawed?

Thanx.


-- 
Edit Bug report at: http://bugs.php.net/?id=9804&edit=1



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9804 Updated: Incorrect File type check

2001-03-17 Thread the_man01

ID: 9804
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: GD related
Description: Incorrect File type check

in my original post, I made refernce to WBMP files.  that should have been GIF files, 
not WBMP. So the problem im having is with GIF, and JPEG files.

Previous Comments:
---

[2001-03-17 04:22:24] [EMAIL PROTECTED]
I'm attempting to create a script that accepts  bmp and jpg files uploaded by a user 
and converts them into jpg or bmp files as requested by the user, using the 
ImageCreateFromWBMP, and ImageJPEG functions. But, each time I upload a BMP or JPEG 
image, I get the message:

"Warning: imagecreatefromwbmp: 'image.bmp' is not a valid WBMP file in 
/script/location/here.php on line#"

These BMP and jpeg images are created in photoshop 5.5, and windows paint program on 
win 2000, and 98 platforms and according to thos programs, the file-types are valid.

But, if I use the imagecreate function to generate a  jpeg image (from a string of 
text), save, and upload that jpeg file to my server, then run the same script on it to 
convert it to another file format, no error/warning messages are generated So 
apparantly, php can work on images generated by a php script, but no others.

What makes it even more odd, is that upon uploading an image (one made in photoshop or 
paint) using my script, I have it setup such that a confirmation screen is generated 
where the users are provided with the size and format/type of the uploaded file, and 
theyre always reported as being:
image/jpg
or image/bmp
yet they are flagged as invalid when another php script attempts to manipulate them.

is the problem on my end, am I doing something wrong? Is it that php can't handle 
images created by photoshop  and paint?  or is that the criteria used to validate the 
image format in php is flawed?

Thanx.

---


Full Bug description available at: http://bugs.php.net/?id=9804


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9805: ob_start("my_gzhandler1"); - not worked

2001-03-17 Thread vvtk

From: [EMAIL PROTECTED]
Operating system: RedHat 6.1
PHP version:  4.0 Latest CVS (17/03/2001)
PHP Bug Type: Output Control
Bug description:  ob_start("my_gzhandler1"); - not worked

In latest CVS, my Script



can't work.

With php-4.0.4pl1 - all work fine.



-- 
Edit Bug report at: http://bugs.php.net/?id=9805&edit=1



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #8981 Updated: Apache fails to load PHP module

2001-03-17 Thread hholzgra

ID: 8981
Updated by: hholzgra
Reported By: [EMAIL PROTECTED]
Old-Status: Closed
Status: Analyzed
Bug Type: Dynamic loading
Assigned To: 
Comments:

dynamic libraries on HP-UX are implemented
different, on needs a very recent(?) HP-UX or
wrapper code to fix this

Previous Comments:
---

[2001-03-16 16:50:28] [EMAIL PROTECTED]
No feedback and should be fixed.

--Jani


---

[2001-01-29 18:47:55] [EMAIL PROTECTED]
Could you please try  PHP 4.0.4pl1 ? This should be fixed..

--Jani

---

[2001-01-29 10:08:27] [EMAIL PROTECTED]
Cannot start httpd 

/usr/lib/dld.sl: Unresolved symbol: DL_UNLOAD (code)  from 
/home/akiselev/apache/libexec/libphp4.sl
Syntax error on line 208 of /home/akiselev/apache/conf/httpd.conf:
Cannot load /home/akiselev/apache/libexec/libphp4.sl into server: Unresolved external
./apachectl startssl: httpd could not be started

compiled from source with-apxs 

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8981&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] New functions (patch included): str_uri_escape andunescape

2001-03-17 Thread Fredrik Ohrn

On Sat, 17 Mar 2001, Gavin Sherry wrote:

> What's wrong with rawurl(en)(de)code() ?
>
> Gavin
>

Well, nothing I guess, except that I didnt find them... :)

They do encode a lot of characters that are allowed thou. I'll just write
it off as practice.


Regards,
Fredrik

-- 
Do fish get thirsty?

Fredrik Öhrn   Chalmers University of Technology
[EMAIL PROTECTED]  Sweden


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9806: fwrite doesn't work on Windows 2000 with Apache Server.

2001-03-17 Thread leonardo

From: [EMAIL PROTECTED]
Operating system: Windows 2000
PHP version:  4.0.4pl1
PHP Bug Type: Filesystem function related
Bug description:  fwrite doesn't work on Windows 2000 with Apache Server.

I have two web servers with Windows 2000 running on them.
One of them uses as a web server Microsoft IIS and the other one Apache 1.3.19 for 
Windows. I have a php script which connects to a remote web server and grabs an image. 
The image is written on a file (with fwrite function) and saved on the local harddisk. 
If I run the php script on IIS the image is saved correctly. If I run the php script 
on Apache the image is corrupted (has a larger length in bytes; usually, between 1-50 
bytes).


-- 
Edit Bug report at: http://bugs.php.net/?id=9806&edit=1



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9531 Updated: make fails at "make ." -> /usr/bin/ld: cannot open -lxmltok

2001-03-17 Thread php

ID: 9531
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Compile Failure
Description: make fails at "make ." -> /usr/bin/ld: cannot open -lxmltok

Joy! We're getting further! :-)
But what's that:

gcc  -I. -I/home/family/php-4.0.4pl1/ext/standard -I/home/family/php-4.0.4pl1/ma
in -I/home/family/php-4.0.4pl1 -I/home/family/php-4.0.4pl1/Zend -I/home/family/l
ibxml2-2.3.3/include -I/usr/local/mysql/include -I/home/family/php-4.0.4pl1/ext/
xml/expat/xmltok -I/home/family/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/fami
ly/php-4.0.4pl1/TSRM  -DXML_BYTE_ORDER=12 -g -O2  -c crypt.c && touch crypt.lo
make[3]: *** [crypt.lo] Interrupt
make[2]: *** [all-recursive] Interrupt
make[1]: *** [all-recursive] Interrupt
make: *** [all-recursive] Interrupt

Previous Comments:
---

[2001-03-11 21:59:17] [EMAIL PROTECTED]
--with-zlib=/path/to/libz/install/dir

--Jani


---

[2001-03-11 17:42:08] [EMAIL PROTECTED]
o well, it would have been to nice ...

Making all in .
make[1]: Entering directory `/home/family/php-4.0.4pl1'
gcc  -I. -I/home/family/php-4.0.4pl1/ -I/home/family/php-4.0.4pl1/main -I/home/f
amily/php-4.0.4pl1 -I/home/family/php-4.0.4pl1/Zend -I/home/family/libxml2-2.3.3
/include -I/usr/local/mysql/include -I/home/family/php-4.0.4pl1/ext/xml/expat/xm
ltok -I/home/family/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/family/php-4.0.4
pl1/TSRM  -DXML_BYTE_ORDER=12 -g -O2  -c stub.c && touch stub.lo
/bin/sh /home/family/php-4.0.4pl1/libtool --silent --mode=link gcc  -I. -I/home/
family/php-4.0.4pl1/ -I/home/family/php-4.0.4pl1/main -I/home/family/php-4.0.4pl
1 -I/home/family/php-4.0.4pl1/Zend -I/home/family/libxml2-2.3.3/include -I/usr/l
ocal/mysql/include -I/home/family/php-4.0.4pl1/ext/xml/expat/xmltok -I/home/fami
ly/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/family/php-4.0.4pl1/TSRM  -DXML_B
YTE_ORDER=12 -g -O2   -o libphp4.la -rpath /home/family/php-4.0.4pl1/libs -L/hom
e/family/libxml2-2.3.3/lib -L/usr/local/mysql/lib  -R /home/family/libxml2-2.3.3
/lib -R /usr/local/mysql/lib stub.lo  Zend/libZend.la sapi/cgi/libsapi.la main/l
ibmain.la regex/libregex.la ext/domxml/libdomxml.la ext/mysql/libmysql.la ext/pc
re/libpcre.la ext/posix/libposix.la ext/session/libsession.la ext/standard/libst
andard.la ext/xml/libxml.la TSRM/libtsrm.la -ldl -lmysqlclient -lz -lxml -lresol
v -lm -ldl -lcrypt -lnsl -lresolv -L/home/family/libxml2-2.3.3/lib -lz
/bin/sh /home/family/php-4.0.4pl1/libtool --silent --mode=link gcc  -I. -I/home/
family/php-4.0.4pl1/ -I/home/family/php-4.0.4pl1/main -I/home/family/php-4.0.4pl
1 -I/home/family/php-4.0.4pl1/Zend -I/home/family/libxml2-2.3.3/include -I/usr/l
ocal/mysql/include -I/home/family/php-4.0.4pl1/ext/xml/expat/xmltok -I/home/fami
ly/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/family/php-4.0.4pl1/TSRM  -DXML_B
YTE_ORDER=12 -g -O2   -o php -export-dynamic stub.lo libphp4.la
/usr/bin/ld: cannot open -lz: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1
make[1]: Leaving directory `/home/family/php-4.0.4pl1'
make: *** [all-recursive] Error 1

---

[2001-03-11 17:29:02] [EMAIL PROTECTED]
thanks, it seems to work (just compiling...)

---

[2001-03-11 17:03:39] [EMAIL PROTECTED]
And that configure option is only available in PHP 4.0.5-dev
(ie. the CVS snapshot!)

--Jani


---

[2001-03-11 17:03:02] [EMAIL PROTECTED]
Of course it didn't. You didn't read my reply.
The configure option is: --with-expat-dir=/path/to/expat

--Jani


---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.

Full Bug description available at: http://bugs.php.net/?id=9531


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] New functions with patch: cpdf_set_font_directories andcpdf_set_font_map_file

2001-03-17 Thread Fredrik Ohrn


Hello!

Let's try again, this time I'm sure the functionality doesn't
already exist. :)



void cpdf_set_font_directories(int pdfdoc, string pfmdir, string pfbdir)

Set the directories in which PFM and PFB files are located. See the
ClibPDF Manual for further details.


void cpdf_set_font_map_file(int pdfdoc, string filename)

Set a fontname to PFM and PFB file translation map. See the ClibPDF Manual
for details on the map file format.



Please CC any comments directly to me, I'm not subscribed to the list.


Regards,
Fredrik

-- 
Do fish get thirsty?

Fredrik Öhrn   Chalmers University of Technology
[EMAIL PROTECTED]  Sweden




*** cpdf.c.orig Sat Mar 17 12:22:35 2001
--- cpdf.c  Sat Mar 17 12:52:24 2001
***
*** 97,102 
--- 97,104 
PHP_FE(cpdf_text, NULL)
PHP_FE(cpdf_continue_text, NULL)
PHP_FE(cpdf_set_font, NULL)
+   PHP_FE(cpdf_set_font_directories, NULL)
+   PHP_FE(cpdf_set_font_map_file, NULL)
PHP_FE(cpdf_set_leading, NULL)
PHP_FE(cpdf_set_text_rendering, NULL)
PHP_FE(cpdf_set_horiz_scaling, NULL)
***
*** 810,815 
--- 812,872 
}
  */
cpdf_setFont(pdf, arg2->value.str.val, arg4->value.str.val, (float) 
arg3->value.dval);
+
+   RETURN_TRUE;
+ }
+ /* }}} */
+
+ /* {{{ proto void cpdf_set_font_directories(int pdfdoc, string pfmdir, string pfbdir)
+Set directories to search when using external fonts. */
+ PHP_FUNCTION(cpdf_set_font_directories) {
+   pval *arg1, *arg2, *arg3;
+   int id, type;
+   CPDFdoc *pdf;
+   CPDF_TLS_VARS;
+
+   if (ZEND_NUM_ARGS() != 3 || getParameters(ht, 3, &arg1, &arg2, &arg3) == 
+FAILURE) {
+   WRONG_PARAM_COUNT;
+   }
+
+   convert_to_long(arg1);
+   convert_to_string(arg2);
+   convert_to_string(arg3);
+   id=arg1->value.lval;
+   pdf = zend_list_find(id,&type);
+   if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
+   php_error(E_WARNING,"Unable to find identifier %d",id);
+   RETURN_FALSE;
+   }
+
+   cpdf_setFontDirectories(pdf, arg2->value.str.val, arg3->value.str.val);
+
+   RETURN_TRUE;
+ }
+ /* }}} */
+
+ /* {{{ proto void cpdf_set_font_map_file(int pdfdoc, string filename)
+Set fontname to filename translation map when using external fonts. */
+ PHP_FUNCTION(cpdf_set_font_map_file) {
+   pval *arg1, *arg2;
+   int id, type;
+   CPDFdoc *pdf;
+   CPDF_TLS_VARS;
+
+   if (ZEND_NUM_ARGS() != 2 || getParameters(ht, 2, &arg1, &arg2) == FAILURE) {
+   WRONG_PARAM_COUNT;
+   }
+
+   convert_to_long(arg1);
+   convert_to_string(arg2);
+   id=arg1->value.lval;
+   pdf = zend_list_find(id,&type);
+   if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
+   php_error(E_WARNING,"Unable to find identifier %d",id);
+   RETURN_FALSE;
+   }
+
+   cpdf_setFontMapFile(pdf, arg2->value.str.val);

RETURN_TRUE;
  }
*** php_cpdf.h.orig Sat Mar 17 12:22:42 2001
--- php_cpdf.h  Sat Mar 17 12:44:32 2001
***
*** 60,65 
--- 60,67 
  PHP_FUNCTION(cpdf_continue_text);
  PHP_FUNCTION(cpdf_text);
  PHP_FUNCTION(cpdf_set_font);
+ PHP_FUNCTION(cpdf_set_font_directories);
+ PHP_FUNCTION(cpdf_set_font_map_file);
  PHP_FUNCTION(cpdf_set_leading);
  PHP_FUNCTION(cpdf_set_text_rendering);
  PHP_FUNCTION(cpdf_set_horiz_scaling);

 cpdf.tgz

-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


[PHP-DEV] "Independent" comments on a bug.

2001-03-17 Thread Fredrik Ohrn


In the bug tracker, is it possible to add a comment to a bug already filed
by someone else?

If it is, please explain coz I'm to dumb to figure it out.


Regards,
Fredrik

-- 
Do fish get thirsty?

Fredrik Öhrn   Chalmers University of Technology
[EMAIL PROTECTED]  Sweden


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9695 Updated: memory leak when using fsockopen & fclose

2001-03-17 Thread sas

ID: 9695
Updated by: sas
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Sockets related
Assigned To: 
Comments:

Not reproducible.  The latest PHP CVS with AOLserver 3.3.1 on FreeBSD 4.3-BETA does 
not exhibit this behaviour. 

Previous Comments:
---

[2001-03-12 02:26:49] [EMAIL PROTECTED]
When I using PHP4 in AOLSerevr3.2 at FreeBSD,
It seems to get memory leak when I using fsockopen() & fclose(),
and the memory usage is gettiing bigger & bigger
configure option --with libgcc.


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9695&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9807: ereg_replace returns "Warning: Invalid content of \{\}"

2001-03-17 Thread ppavlovic

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.0.1
PHP Bug Type: *Function Specific
Bug description:  ereg_replace returns "Warning: Invalid content of \{\}"

I also encountered this problem. I called ereg_replace from function such as this:

function replace_var($var, $replacement, $v) 
{ 
return ereg_replace("\{$var\}", htmlspecialchars($replacement), $v); 
}

Call to this function was
$form = replace_var("MODEL", $model, $form); 

$form is piece of HTML, and MODEL is template variable defined in HTML code like 
{MODEL}

$var is passed to my replace_var function as is.




-- 
Edit Bug report at: http://bugs.php.net/?id=9807&edit=1



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] RE: 4.0.5RC1 static build with Apache 1.3.19 problem

2001-03-17 Thread Andi Gutmans

Did you configure Apache after you did the make install from PHP? In the 
PHP directory run make install-sapi and see that PHP copies everything to 
the right directory.

Andi

At 07:12 PM 3/16/2001 -0800, Steven Roussey wrote:
> > Subject: 4.0.5RC1 static build with Apache 1.3.19 problem
>
>Also happens in Apache 1.3.12
>
>Sincerely,
>
>Steven Roussey
>Network54.com
>http://network54.com/?pp=e
>
>cd apache_1.3.12
>CC=gcc CFLAGS="-O6  -march=i686 " CXX=gcc CXXFLAGS="-O6  -march=i686  " \
>./configure \
>--activate-module=src/modules/php4/libphp4.a --enable-module=rewrite
>cd ..
>
>cd php-4.0.5RC1
>CC=gcc CFLAGS="-O6  -march=i686 " CXX=gcc CXXFLAGS="-O6  -march=i686 " \
>./configure --with-mysql --with-xml --with-dom --with-zlib --with-gd  \
>--with-openssl --with-sablot --with-apache=../apache_1.3.12 --enable-inline-
>optimization
>make
>make install
>cd ..
>
>cd apache_1.3.12
>make
>===> src/modules/php4
>make[4]: *** No rule to make target `all'.  Stop.
>make[3]: *** [all] Error 1
>make[2]: *** [subdirs] Error 1
>make[2]: Leaving directory `/home/network54/webserver/apache_1.3.12/src'
>make[1]: *** [build-std] Error 2
>make[1]: Leaving directory `/home/network54/webserver/apache_1.3.12'
>make: *** [build] Error 2
>
>
>--
>PHP Development Mailing List 
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9808: crypt function not supported

2001-03-17 Thread manandhar_sachin

From: [EMAIL PROTECTED]
Operating system: windows ME
PHP version:  4.0.4pl1
PHP Bug Type: Strings related
Bug description:  crypt function not supported 

i use personal web server
when i try to use crypt function i get error message
function called not supported


-- 
Edit Bug report at: http://bugs.php.net/?id=9808&edit=1



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9808 Updated: crypt function not supported

2001-03-17 Thread derick

ID: 9808
Updated by: derick
Reported By: [EMAIL PROTECTED]
Status: Open
Old-Bug Type: Strings related
Bug Type: Feature/Change Request
Assigned To: 
Comments:

>From the manual:

crypt() will return an encrypted string using the standard Unix DES
encryption method.

It only works on Unix, so moving to a feature request

Previous Comments:
---

[2001-03-17 11:09:06] [EMAIL PROTECTED]
i use personal web server
when i try to use crypt function i get error message
function called not supported

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9808&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9808 Updated: crypt function not supported

2001-03-17 Thread manandhar_sachin

ID: 9808
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Description: crypt function not supported

what other option to crypt function 
that would be compactable with windows system.
 

Previous Comments:
---

[2001-03-17 11:14:22] [EMAIL PROTECTED]
>From the manual:

crypt() will return an encrypted string using the standard Unix DES
encryption method.

It only works on Unix, so moving to a feature request

---

[2001-03-17 11:09:06] [EMAIL PROTECTED]
i use personal web server
when i try to use crypt function i get error message
function called not supported

---


Full Bug description available at: http://bugs.php.net/?id=9808


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] PHP 4.0 Bug #9808 Updated: crypt function not supported

2001-03-17 Thread Daniel Beulshausen

At 16:14 17.03.2001 +, [EMAIL PROTECTED] wrote:
>ID: 9808
>Updated by: derick
>Reported By: [EMAIL PROTECTED]
>Status: Open
>Old-Bug Type: Strings related
>Bug Type: Feature/Change Request
>Assigned To:
>Comments:
>
> From the manual:
>
>crypt() will return an encrypted string using the standard Unix DES
>encryption method.
>
>It only works on Unix, so moving to a feature request

the offical binarys should be compiled with crypt() as well. atleast i 
think i've done it in every release, maybe i missed it in pl1...
you'll just need to define HAVE_CRYPT & HAVE_CRYPT_H. i've put up an 
libcrypt port at www.php4win.de

daniel

/*--
daniel beulshausen - [EMAIL PROTECTED]
using php on windows? http://www.php4win.de


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9809: Extensions can't be loaded at startup

2001-03-17 Thread loic-info

From: [EMAIL PROTECTED]
Operating system: win 98SE
PHP version:  4.0 Latest CVS (17/03/2001)
PHP Bug Type: *Configuration Issues
Bug description:  Extensions can't be loaded at startup

Hi!

I'm under Win 98SE, Apache 1.3.19 and php4.0.5-RC1 (from www.php4win.de) as an Apache 
module ("php4apache.dll" or "php4apache-eapi.dll", the problem is the same for both).

It seems that extensions can't be loaded at startup (from the "php.ini" file) because 
their filenames are replaced by strange words!

For example if I uncomment the line "extension=php_zlib.dll" and only this one, Apache 
crash and the Apache log shows "PHP Warning:  Unable to load dynamic library 
'C:\EasyPHP\php\extensions\php_zlib!'" 
(sometimes the name of the file is also replaced by 'localhost' or '@E').
This was an example, but I can reproduce the problem for each one of the extensions.

It's not related to my "php.ini" file because this one works with the previous version 
of php4.0.5-dev.

Thanks in advance,
Loïc


-- 
Edit Bug report at: http://bugs.php.net/?id=9809&edit=1



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] PHP 4.0 Bug #9809: Extensions can't be loaded at startup

2001-03-17 Thread Alexander Bokovoy

On Sat, Mar 17, 2001 at 04:48:07PM -, [EMAIL PROTECTED] wrote:
> From: [EMAIL PROTECTED]
> Operating system: win 98SE
> PHP version:  4.0 Latest CVS (17/03/2001)
> PHP Bug Type: *Configuration Issues
> Bug description:  Extensions can't be loaded at startup
> 
> Hi!
> 
> I'm under Win 98SE, Apache 1.3.19 and php4.0.5-RC1 (from www.php4win.de) as an 
>Apache module ("php4apache.dll" or "php4apache-eapi.dll", the problem is the same for 
>both).
> 
> It seems that extensions can't be loaded at startup (from the "php.ini" file) 
>because their filenames are replaced by strange words!
> 
> For example if I uncomment the line "extension=php_zlib.dll" and only this one, 
>Apache crash and the Apache log shows "PHP Warning:  Unable to load dynamic library 
>'C:\EasyPHP\php\extensions\php_zlib!'" 
> (sometimes the name of the file is also replaced by 'localhost' or '@E').
> This was an example, but I can reproduce the problem for each one of the extensions.
> 
> It's not related to my "php.ini" file because this one works with the previous 
>version of php4.0.5-dev.
This is known problem, I've reported about it a week ago or so.
Solution is to apply this patch:
--- main/php_ini.c.orig Tue Mar  6 13:38:55 2001
+++ main/php_ini.c  Thu Mar 15 13:12:04 2001
@@ -165,6 +165,8 @@
 {
if(php_load_extension_list) {
zend_llist_apply(php_load_extension_list, 
php_startup_loaded_extension_cb);
+   zend_llist_destroy(php_load_extension_list);
+   php_load_extension_list = NULL;
}
return SUCCESS;
 }

Unfortunately, I have no enough karma to apply it myself to CVS.

-- 
Sincerely yours, Alexander Bokovoy 
  The Midgard Project   | www.midgard-project.org |Aurora R&D team 
Minsk Linux Users Group |www.minsk-lug.net|  www.aurora-linux.com  
ALT Linux Team  |www.alt-linux.org| Architecte Open Source
-- Revenge is a form of nostalgia.

-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 3.0 Bug Summary Report

2001-03-17 Thread php-dev

 PHP 3.0 Bug Database summary - http://bugs.php.net

 Num Status Summary (526 total including feature requests)
===[*General Issues]==
4180 Open   is_link returns false when target doesnt exist (should return true)
9610 Bogus  Dead link
===[*Install and Config]==
7386 Feedback   referenced symbol not found when starting Apache
===[Compile Failure]==
1145 Open   Ypu cannot compile with --with-ldap using the Solaris7 bundled 
ldap-libs/header
1298 Open   need to use -taso with Netscape LDAP libs
1461 Open   won't compile with Stronghold 2.2 or 2.3
1933 Open   Unable to compile PHP3 with Oracle8 support
1997 Open   Compilation Problems
2225 Open   Compile error in ldap.c
2282 Open   Compile failure with Stronghold 2.4.1
2490 Open   Perl regular expression functions not available in windows binary
2585 Open   Error linking Oracle 7.3.2 libraries on SCO OpenServer 5.0.4
2658 Open   error while compiling PHP as apache module
2729 Open   Fatal error: Unable to open ???  in - on line 0
2751 Open   Storage size of "buf isn't known
2823 Open   undefined symbol: SQLParamData
2824 Open   Inconsistent parameter list declaration for...
2903 Open   fails to compile ifx.ec, report a syntax-error
3033 Open   Fatal compile error on functions/ldap.c
3185 Open   Undefined symbol
3217 Open   ld error when compiling as Apache DSO and --with-mysql
3218 Open   Can't compile php_ftp.dll
3426 Open   make with iodbc failed and I've found the problem
3501 Open   Compiling errors with Oracle-Funktions
3528 Open   Can't compile php 3.0.14 with Oracle support
3677 Open   files not found
3766 Open   configure doesn't allow for the Oracle N32 client SDK to be used
3776 Open   functions/db.c:107: parse error before '*'
4028 Open   wrong directories included for oracle 8.1.6
4217 Open   IBM DB2 will not compile.
4233 Open   The Interbase module won't compile.
4266 Open   Undeclared variables in function/imap.c starting ar line 435
4392 Open   Compile failure with GD 1.7, possibly others
4412 Open   xml failure
4417 Open   Informix specific parse error in functions/ifx.ec
4544 Open   Incompatiblility with latest (3.0) version of PDFlib
4899 Open   PHP Core Dumps With Apache 1.3.12
7734 Open   missing php3_ifx.h
===[Compile Warning]==
3151 Open   php.exe compile warnings because of arpa/inet.h
6942 Open   php sockets unusable with irix-OS
===[dBase related]
3091 Open   dbase_replace_record miscounts number of fields
3429 Open   Warning: Unable to open database...
4802 Open   php.exe crashes while trying to execute the get_record function
===[DBM/DBA related]==
2890 Open   DBM extension on win32 does not valid database identifier error
3371 Open   dbmfetch reurns an empty string
3423 Open   dbmopen() not thread-safe
3809 Duplicate  DBM extension for Win32 PHP3 is malfunctioning and/or has a flaw
3862 Open   dbmReplace & dbmDelete return inverse value
6720 Open   persistent "Warning: driver initialization failed" on db_open db2 2.7.7
===[Dynamic loading related]==
1188 Open   Configuration not work
1586 Open   In the compiled Win32 package, the php3_ldap doesn't load.
1993 Open   Startup failure of liphp3.so
2027 Open   Can't dynamicly load any extension dll file
2250 Open   nt-service problem
2414 Open   php3_vmailmgr.so refuses to load
2862 Open   LDAP in Win32 Bin dist is linked to MSVCRTD.DLL
3168 Open   cannot start apache 1.3.9 if mysql is compiled in, but can RESTART 
successfully
3292 Open   MySQL module causes DSO to fail.
3321 Open   Apache Complaining about undefined symbol: dlst_first
3659 Open   mod_php + apache w/mod_so hangs in sched_yield
3680 Open   Apache won't start after install php3
3752 Open   Apache configtest dumps core with DSO & versioning
3781 Open   Cannot load /libexec/libphp3.so
3861 Open   php as a dyn. mod. & configured with IBM db2 support prevents svr 
startup
9565 Open   php3_ldap.dll is compiled as DEBUG
===[IMAP related]=
2816 Open   Imap_open error when user_id length=3 char
2847 Open   imap_search - dates don't work
3040 Duplicate  imap_open
3236 Open   Email message bodies show as mime type application/octet-stream/plain
3843 Open   seg fault when recieving headers
6882 Open   imap_fetch_overview does no return anything even thought there is mail
===[Inst

[PHP-DEV] PHP 4.0 Bug #9810: Apache 1.3.17 & 19 crash at shutdown

2001-03-17 Thread loic-info

From: [EMAIL PROTECTED]
Operating system: win 98SE
PHP version:  4.0 Latest CVS (17/03/2001)
PHP Bug Type: Reproduceable crash
Bug description:  Apache 1.3.17 & 19 crash at shutdown

Hi!

I'm under win 98SE, Apache 1.3.17 or 19, php4.0.5-RC1 from php4win.de as an Apache 
module (no problem with php as a CGI).

Each time I shut down Apache, it crashes twices. I can't produce a backtrace (winwin 
fault) but here is the failure messages I can grab (french messages, sorry):

APACHE a causé une défaillance de page dans
 le module OLEAUT32.DLL à 016f:65352c3c.
Registres :
EAX=00bd CS=016f EIP=65352c3c EFLGS=00010212
EBX=0008 SS=0177 ESP=0159f7a4 EBP=653c9048
ECX=653c7030 DS=0177 ESI=00a8 FS=67f7
EDX=0008 ES=0177 EDI=00a8 GS=
Octets à CS : EIP :
8b 47 04 8b 0f 3b c2 89 4c 24 14 8b f1 8d 9f f8 
État de la pile :
653c7048 00a8 653c9048 0008 65352c0c 00a8 00bd 0008  
 bff76ec4 0080 653c7030 65352aff 0008  

APACHE a causé une défaillance de page dans
 le module KERNEL32.DLL à 016f:bff8ac13.
Registres :
EAX= CS=016f EIP=bff8ac13 EFLGS=0246
EBX=0001 SS=0177 ESP=0159fc2c EBP=0159fc70
ECX=7ffd3058 DS=0177 ESI=7ffd3038 FS=67f7
EDX=bffc9490 ES=0177 EDI=0001 GS=
Octets à CS : EIP :
a1 10 9d fc bf 50 e8 96 95 fe ff ff 76 04 e8 35 
État de la pile :
7ffd3510 7ff2a1ed 7ffd3038 7ff49d83  818a1b78 7ff49d45   
0001 7ff42092 7ff4203d 7ff2  0001  

Moreover FileMon produces these lines (don't know if it helps...):

Filemon ReadC:\WINDOWS\SYSTEM\OLEAUT32.DLL  SUCCESS Offset: 40960 Length: 1024 
 
Filemon Ioctl   C:  INVALIDFUNC Subfunction: 0Dh
Filemon Ioctl   D:  INVALIDFUNC Subfunction: 0Dh
Filemon Ioctl   E:  INVALIDFUNC Subfunction: 0Dh
Filemon Ioctl   E:  SUCCESS Subfunction: 0Dh
Filemon Ioctl   F:  INVALIDFUNC Subfunction: 0Dh
Filemon Ioctl   F:  GENFAILURE  Subfunction: 0Dh
Filemon Ioctl   F:  GENFAILURE  Subfunction: 0Dh
Filemon Ioctl   G:  INVALIDFUNC Subfunction: 0Dh
Filemon Ioctl   G:  GENFAILURE  Subfunction: 0Dh
Filemon Ioctl   G:  GENFAILURE  Subfunction: 0Dh
Filemon ReadC:\EASYPHP\APACHE\PHP.INI   SUCCESS Offset: 303104 Length: 4096
 


Thanks in advance,
Loïc

PS: These crashes already occurs with the previous 4.0.5-dev release.


-- 
Edit Bug report at: http://bugs.php.net/?id=9810&edit=1



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9264 Updated: Using session_encode with user-level session storage functions causes a crash

2001-03-17 Thread lolo

ID: 9264
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: *Session related
Description: Using session_encode with user-level session storage functions causes a 
crash

Hi!

I've done a test with the new php4.0.5-RC1 from php4win.de and the crash still occurs.

Regards,
Loïc

Previous Comments:
---

[2001-02-15 11:05:27] [EMAIL PROTECTED]
Oups, in the code before I omited to put the 'open session' function. Here it is:

function dbSessionOpen($savePath, $sessionName)
{
return true;
}


---

[2001-02-14 12:39:47] [EMAIL PROTECTED]
Hi!

Be indulgent for my poorly english level please...

To force session data to be saved when using a database based session storage system 
and 'register_globals' is set to off I've build this (very) simplified structure of 
script:

function dbSessionClose()
{
return true;
}

function dbSessionRead($id)
{
return true;
}

function dbSessionWrite($id, $data)
{
return true;
}

function dbSessionDestroy($id)
{
return true;
}

function dbSessionGarbageCollector($sessionLifeTime)
{
return true;
}

function dbSessionSave()
{
return dbSessionWrite(session_id(), session_encode());  // The note below is about 
this line
}

session_set_save_handler('dbSessionOpen', 'dbSessionClose', 'dbSessionRead', 
'dbSessionWrite', 'dbSessionDestroy', 'dbSessionGarbageCollector');


/**
 * Uses session
 */
session_start();
session_register('myVar');

$myVar = 'crash';

dbSessionSave();


Then each time I run it with the latest PHP 4.0.5dev loaded as an apache module, PHP 
crash and produces this error:

APACHE a causé une défaillance de page dans
 le module PHP4TS.DLL à 016f:008a533e.
Registres :
EAX= CS=016f EIP=008a533e EFLGS=00010246
EBX= SS=0177 ESP=01e2f274 EBP=007f7df0
ECX=007ee7a0 DS=0177 ESI=007ee164 FS=2217
EDX=007ee130 ES=0177 EDI=007f7c46 GS=
Octets à CS : EIP :
8b 00 8b 4c 24 0c 8b 54 24 08 51 8b 4c 24 08 42 
État de la pile :
008a57b4 007f7c40 0005 01e2f2a4 007ee7a0 007ee130 007dd720 0001  
007dd720 007f7b10 007f7c40   007ee7a0 007dd720


An amazing note: if...
- ... at the first run I replace the call to the session_encode() function by the 
string 'crash', fire the script...
- ... then resume to the original 'dbSessionSave()' function and run the script 
again...
... everything go right!

---


Full Bug description available at: http://bugs.php.net/?id=9264


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9809 Updated: Extensions can't be loaded at startup

2001-03-17 Thread loic-info

ID: 9809
User Update by: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: *Configuration Issues
Description: Extensions can't be loaded at startup

Ok, a fix has been posted to the developer mailing-list (message from Alexander 
Bokovoy on On Sat, Mar 17, 2001 at 16:51).

So I close myself the bug.
Thanks,

Previous Comments:
---

[2001-03-17 11:48:07] [EMAIL PROTECTED]
Hi!

I'm under Win 98SE, Apache 1.3.19 and php4.0.5-RC1 (from www.php4win.de) as an Apache 
module ("php4apache.dll" or "php4apache-eapi.dll", the problem is the same for both).

It seems that extensions can't be loaded at startup (from the "php.ini" file) because 
their filenames are replaced by strange words!

For example if I uncomment the line "extension=php_zlib.dll" and only this one, Apache 
crash and the Apache log shows "PHP Warning:  Unable to load dynamic library 
'C:EasyPHPphpextensionsphp_zlib!'" 
(sometimes the name of the file is also replaced by 'localhost' or '@E').
This was an example, but I can reproduce the problem for each one of the extensions.

It's not related to my "php.ini" file because this one works with the previous version 
of php4.0.5-dev.

Thanks in advance,
Loïc

---


Full Bug description available at: http://bugs.php.net/?id=9809


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9661 Updated: PHP sometimes dumps core

2001-03-17 Thread sniper

ID: 9661
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Reproduceable crash
Assigned To: 
Comments:

Closed per user request.



Previous Comments:
---

[2001-03-16 21:00:37] [EMAIL PROTECTED]
Sorry, this problem is not MySQL related after all. It's caused by calls to mcrypt 
functions used in my database php file. I have created a new bug report under "mcrypt 
related". Please close this one.

---

[2001-03-16 20:20:43] [EMAIL PROTECTED]
Please add a shortest possible script into this bug report, which can be used to 
reproduce this.

--Jani


---

[2001-03-10 21:08:10] [EMAIL PROTECTED]
I have tried with the CVS snapshot from 09/03/2001, but can try with a newer snapshot 
if you need it.

I use MySQL version 3.22

---

[2001-03-10 19:59:08] [EMAIL PROTECTED]
ehm..sorry, I just noticed that you had tried with
latest CVS. Or have you? Could you please try and update
your checkout?

--Jani


---

[2001-03-10 19:58:04] [EMAIL PROTECTED]
What is the mysql version you are using?
And have you tried the latest CVS snapshot from http://snaps.php.net/ as I can't 
reproduce this with
latest CVS.

--Jani


---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9661&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #8392 Updated: crash with --enable-debug, backtrace sourcefile

2001-03-17 Thread sniper

ID: 8392
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Reproduceable crash
Assigned To: 
Comments:

Not able to reproduce -> closed. (reopen if you get it to crash again.. :)


--Jani


Previous Comments:
---

[2001-03-16 21:12:43] [EMAIL PROTECTED]
Hello.

I'm sorry i haven't been able to reproduce this for a long
time. I think this bug is dependend on certain db structure
and code of other files included from the main file.

And the new code doesn't use =& even though it doesn't crash
when using it. Might be because the db was cleared and refilled.

Anyway thanks for the (little late) feedback.

- Mog

---

[2001-03-16 20:29:29] [EMAIL PROTECTED]
Does this happen with latest CVS snapshot from http://snaps.php.net/ ??

--Jani


---

[2000-12-23 21:44:21] [EMAIL PROTECTED]
hi agin

if i use:
$PHORUM_ROWS[$row["message_id"]] = $PHORUM_ROWS_UNSORTED[$key];

instead of:
$PHORUM_ROWS[$row["message_id"]] =&
$PHORUM_ROWS_UNSORTED[$key];

the crash doesn't occur, so apparantly it has to do with
variable references and arrays or something

thanks, keep up the good work!

// Morgan


---

[2000-12-23 21:32:21] [EMAIL PROTECTED]
for some reason it just crashes

the distro is a standard redhat 7 with compiled php
configured with

'./configure' '--with-gd' '--with-mysql' '--with-xml'
'--with-apxs'

--enable-debug too, but phpinfo() apparantly didn't list it

the php file that crashes is available at:
http://hem.netlink.se/~sft3905/list.php

phpinfo(); output is available at:
http://hem.netlink.se/~sft3905/phpinfo.html

backtrace:

(gdb) r -X -D HAVE_PHP4
Starting program: /usr/sbin/httpd -X -D HAVE_PHP4

Program received signal SIGSEGV, Segmentation fault.
0x402d8f71 in _efree (ptr=0x8125184) at zend_alloc.c:232
232
REMOVE_POINTER_FROM_LIST(p);
(gdb) bt
#0  0x402d8f71 in _efree (ptr=0x8125184) at zend_alloc.c:232
#1  0x402f0591 in _zval_dtor (zvalue=0x81237e4) at
zend_variables.c:62
#2  0x402e8afe in zend_assign_to_variable (result=0x80f04ec,
op1=0x80f04fc,
op2=0x80f050c, value=0x80ecbbc, type=4, Ts=0xbfffb230)
at ./zend_execute.c:357
#3  0x402e2525 in execute (op_array=0x80f2ee0) at
./zend_execute.c:1261
#4  0x402e375a in execute (op_array=0x8121ec4) at
./zend_execute.c:1559
#5  0x402e5d1d in execute (op_array=0x80e80a4) at
./zend_execute.c:2063
#6  0x402f18c1 in zend_execute_scripts (type=8,
file_count=3) at zend.c:729
#7  0x40302aaf in php_execute_script
(primary_file=0xb860) at main.c:1221
#8  0x402ff3e2 in apache_php_module_main (r=0x80e1c0c,
display_source_mode=0)
at sapi_apache.c:89
#9  0x402ffcf5 in send_php (r=0x80e1c0c,
display_source_mode=0, filename=0x0)
at mod_php4.c:506
#10 0x402ffd2a in send_parsed_php (r=0x80e1c0c) at
mod_php4.c:517
#11 0x80538b9 in ap_invoke_handler ()
#12 0x80638d2 in ap_some_auth_required ()
#13 0x806393f in ap_process_request ()
#14 0x805cf37 in ap_child_terminate ()
#15 0x805d0bf in ap_child_terminate ()
#16 0x805d1d4 in ap_child_terminate ()
#17 0x805d6ff in ap_child_terminate ()
#18 0x805de38 in main ()
---Type  to continue, or q  to quit---
#19 0x40145a7c in __libc_start_main (main=0x805db00 ,
argc=4,
ubp_av=0xbaf4, init=0x804f1d0 <_init>,
fini=0x807e98c <_fini>,
rtld_fini=0x4000d684 <_dl_fini>, stack_end=0xbaec)
at ../sysdeps/generic/libc-start.c:111


thanks for your help!
 - Mog


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8392&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9803 Updated: php.ini not being parsed at start up

2001-03-17 Thread sniper

ID: 9803
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Old-Bug Type: *General Issues
Bug Type: *Configuration Issues
Assigned To: 
Comments:

By default, PHP looks for php.ini in /usr/local/lib
Is that the directory you have php.ini in?

--Jani


Previous Comments:
---

[2001-03-16 23:21:42] [EMAIL PROTECTED]
A change I've made to  php.ini has no effect.  Iv'e tried restarting apache and 
re-booting linux with no results. I tried renaming the php.ini file to see if apache 
or php4 would complain but , neither did. So I suspect that the php.ini file is not 
being parsed at startup of apache. I am using the dynamic model of apache and php4, 
4.0.4pl1 with apache 1.3.3. 

How can I solve this problem?

configure --with-apxs --with-mysql=/path /to/mysql

I tried to change: magic_quotes_gpc, from 'On' to 'Off'.



---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9803&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9605 Updated: There is no file: sqlcli1.h.

2001-03-17 Thread sniper

ID: 9605
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Compile Failure
Assigned To: 
Comments:

works -> closed.

--Jani


Previous Comments:
---

[2001-03-17 01:05:29] [EMAIL PROTECTED]
I got this message when I first installed DB2.  The problem was I didn't install 
enough things from the DB2 setup.  Go back and make sure you install the DB2 
development tools, and then all will work properly.  I guarantee :)

---

[2001-03-12 15:22:55] [EMAIL PROTECTED]
User feedback:
---
Sorry for your time. 
I hadn't all necessary db2 libraries.
Now compilation is OK,
but I cannot finish compilation of Apache.
I will make new position in bug list.


Please don't open any new bug reports. 
Does the compile stop with some error?
 

--Jani

---

[2001-03-08 18:14:58] [EMAIL PROTECTED]
User feedback:
--
I cannot find way to reply to your response.

My bug is 9605.
I didn't give path, because it was default path.
---

The link to the correct web page can be found
in the end of this email.

And try adding that 'default' path into the --with-ibm-db2
configuration option as I suggested. 
And please check where exactly the file 'sqlcli1.h'
is in your system.

--Jani


---

[2001-03-07 16:13:29] [EMAIL PROTECTED]
Where is your DB2 installed? Have you tried adding the install
base directory ? ie. --with-ibm-db2=/db2/install/base ??

--Jani


---

[2001-03-07 14:54:37] [EMAIL PROTECTED]
Configuration:
-with-apache=../apache_1.3.12 --enable-sigchild --enable-track-vars --with-xml 
--disable-debug --with-oci8 --with-ibm-db2

Problem encountered first time after adding "--with-ibm-db2".

Error message:
In file included from internal_functions.c:38:
/usr/local/src/php-4.0.4pl1/ext/odbc/php_odbc.h:160: sqlcli1.h: No such file or 
directory


---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9605&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #8053 Updated: PGSQL doesn't detects on FBSD4

2001-03-17 Thread sniper

ID: 8053
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: PostgreSQL related
Assigned To: 
Comments:

User feedback:
--
It was a bug of 4.0.3plX version, with 4.0.4 it seems to be OK

-

Closed.

--Jani


Previous Comments:
---

[2001-03-16 08:42:59] [EMAIL PROTECTED]
I'm unable to reproduce this locally, if you could please provide some more 
information, or try a newer version and see if this continues.

As far as the mysql bit is concerned, the flag --without-mysql will help.  

Marking this as feedback until we hear otherwise.  

---

[2000-11-30 09:45:21] [EMAIL PROTECTED]
I try to configure PHP4 for work with PostgreSQL server (v7.0.2) with
the following line:
./configure --with-apache=../apache --with-mod_charset --enable-bcmath 
--enable-calendar --enable-sockets --enable-ftp --with-pgsql
After running this, I find in log, that detection of PGSQL failed.
config.log contains:
gcc -o conftest -g -O2 conftest.c -L/usr/local/pgsql/include -lpq  -l
-lm -lcrypt 1>&5
This line is incorrect, and I don't know, why $LIBS is formed in such
way.

I have PostgreSQL installed at /usr/local/pgsql in standart
configuration. Version of FreeBSD used is a 4.0-Release.

PS I haven't MySQL, but PHP4 tries to process libmysql directory make.
It is correct ?
PPS FreeBSD >=4.0 HAS pthread library. But it must be included as a
-lpthread. Your configure doesn't detect this library (at least on my
machine).
PPPS Sorry for my worst english.


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=8053&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9804 Updated: Incorrect File type check

2001-03-17 Thread sniper

ID: 9804
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: GD related
Assigned To: 
Comments:

Please add a shortest possible script into this bug report
which can be used to reproduce this problem.


--Jani

Previous Comments:
---

[2001-03-17 05:28:56] [EMAIL PROTECTED]
in my original post, I made refernce to WBMP files.  that should have been GIF files, 
not WBMP. So the problem im having is with GIF, and JPEG files.

---

[2001-03-17 04:22:24] [EMAIL PROTECTED]
I'm attempting to create a script that accepts  bmp and jpg files uploaded by a user 
and converts them into jpg or bmp files as requested by the user, using the 
ImageCreateFromWBMP, and ImageJPEG functions. But, each time I upload a BMP or JPEG 
image, I get the message:

"Warning: imagecreatefromwbmp: 'image.bmp' is not a valid WBMP file in 
/script/location/here.php on line#"

These BMP and jpeg images are created in photoshop 5.5, and windows paint program on 
win 2000, and 98 platforms and according to thos programs, the file-types are valid.

But, if I use the imagecreate function to generate a  jpeg image (from a string of 
text), save, and upload that jpeg file to my server, then run the same script on it to 
convert it to another file format, no error/warning messages are generated So 
apparantly, php can work on images generated by a php script, but no others.

What makes it even more odd, is that upon uploading an image (one made in photoshop or 
paint) using my script, I have it setup such that a confirmation screen is generated 
where the users are provided with the size and format/type of the uploaded file, and 
theyre always reported as being:
image/jpg
or image/bmp
yet they are flagged as invalid when another php script attempts to manipulate them.

is the problem on my end, am I doing something wrong? Is it that php can't handle 
images created by photoshop  and paint?  or is that the criteria used to validate the 
image format in php is flawed?

Thanx.

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9804&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9806 Updated: fwrite doesn't work on Windows 2000 with Apache Server.

2001-03-17 Thread sniper

ID: 9806
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Filesystem function related
Assigned To: 
Comments:

What was the fopen() line you have used?

--Jani


Previous Comments:
---

[2001-03-17 06:51:05] [EMAIL PROTECTED]
I have two web servers with Windows 2000 running on them.
One of them uses as a web server Microsoft IIS and the other one Apache 1.3.19 for 
Windows. I have a php script which connects to a remote web server and grabs an image. 
The image is written on a file (with fwrite function) and saved on the local harddisk. 
If I run the php script on IIS the image is saved correctly. If I run the php script 
on Apache the image is corrupted (has a larger length in bytes; usually, between 1-50 
bytes).

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9806&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9531 Updated: make fails at "make ." -> /usr/bin/ld: cannot open -lxmltok

2001-03-17 Thread sniper

ID: 9531
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: Compile Failure
Assigned To: 
Comments:

You pressed ctrl+c to interrupt the make process.
Please ask further install questions on [EMAIL PROTECTED] mailing list.

--Jani


Previous Comments:
---

[2001-03-17 07:46:17] [EMAIL PROTECTED]
Joy! We're getting further! :-)
But what's that:

gcc  -I. -I/home/family/php-4.0.4pl1/ext/standard -I/home/family/php-4.0.4pl1/ma
in -I/home/family/php-4.0.4pl1 -I/home/family/php-4.0.4pl1/Zend -I/home/family/l
ibxml2-2.3.3/include -I/usr/local/mysql/include -I/home/family/php-4.0.4pl1/ext/
xml/expat/xmltok -I/home/family/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/fami
ly/php-4.0.4pl1/TSRM  -DXML_BYTE_ORDER=12 -g -O2  -c crypt.c && touch crypt.lo
make[3]: *** [crypt.lo] Interrupt
make[2]: *** [all-recursive] Interrupt
make[1]: *** [all-recursive] Interrupt
make: *** [all-recursive] Interrupt

---

[2001-03-11 21:59:17] [EMAIL PROTECTED]
--with-zlib=/path/to/libz/install/dir

--Jani


---

[2001-03-11 17:42:08] [EMAIL PROTECTED]
o well, it would have been to nice ...

Making all in .
make[1]: Entering directory `/home/family/php-4.0.4pl1'
gcc  -I. -I/home/family/php-4.0.4pl1/ -I/home/family/php-4.0.4pl1/main -I/home/f
amily/php-4.0.4pl1 -I/home/family/php-4.0.4pl1/Zend -I/home/family/libxml2-2.3.3
/include -I/usr/local/mysql/include -I/home/family/php-4.0.4pl1/ext/xml/expat/xm
ltok -I/home/family/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/family/php-4.0.4
pl1/TSRM  -DXML_BYTE_ORDER=12 -g -O2  -c stub.c && touch stub.lo
/bin/sh /home/family/php-4.0.4pl1/libtool --silent --mode=link gcc  -I. -I/home/
family/php-4.0.4pl1/ -I/home/family/php-4.0.4pl1/main -I/home/family/php-4.0.4pl
1 -I/home/family/php-4.0.4pl1/Zend -I/home/family/libxml2-2.3.3/include -I/usr/l
ocal/mysql/include -I/home/family/php-4.0.4pl1/ext/xml/expat/xmltok -I/home/fami
ly/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/family/php-4.0.4pl1/TSRM  -DXML_B
YTE_ORDER=12 -g -O2   -o libphp4.la -rpath /home/family/php-4.0.4pl1/libs -L/hom
e/family/libxml2-2.3.3/lib -L/usr/local/mysql/lib  -R /home/family/libxml2-2.3.3
/lib -R /usr/local/mysql/lib stub.lo  Zend/libZend.la sapi/cgi/libsapi.la main/l
ibmain.la regex/libregex.la ext/domxml/libdomxml.la ext/mysql/libmysql.la ext/pc
re/libpcre.la ext/posix/libposix.la ext/session/libsession.la ext/standard/libst
andard.la ext/xml/libxml.la TSRM/libtsrm.la -ldl -lmysqlclient -lz -lxml -lresol
v -lm -ldl -lcrypt -lnsl -lresolv -L/home/family/libxml2-2.3.3/lib -lz
/bin/sh /home/family/php-4.0.4pl1/libtool --silent --mode=link gcc  -I. -I/home/
family/php-4.0.4pl1/ -I/home/family/php-4.0.4pl1/main -I/home/family/php-4.0.4pl
1 -I/home/family/php-4.0.4pl1/Zend -I/home/family/libxml2-2.3.3/include -I/usr/l
ocal/mysql/include -I/home/family/php-4.0.4pl1/ext/xml/expat/xmltok -I/home/fami
ly/php-4.0.4pl1/ext/xml/expat/xmlparse -I/home/family/php-4.0.4pl1/TSRM  -DXML_B
YTE_ORDER=12 -g -O2   -o php -export-dynamic stub.lo libphp4.la
/usr/bin/ld: cannot open -lz: No such file or directory
collect2: ld returned 1 exit status
make[1]: *** [php] Error 1
make[1]: Leaving directory `/home/family/php-4.0.4pl1'
make: *** [all-recursive] Error 1

---

[2001-03-11 17:29:02] [EMAIL PROTECTED]
thanks, it seems to work (just compiling...)

---

[2001-03-11 17:03:39] [EMAIL PROTECTED]
And that configure option is only available in PHP 4.0.5-dev
(ie. the CVS snapshot!)

--Jani


---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9531&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9806 Updated: fwrite doesn't work on Windows 2000 with Apache Server.

2001-03-17 Thread leonardo

ID: 9806
User Update by: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Open
Bug Type: Filesystem function related
Description: fwrite doesn't work on Windows 2000 with Apache Server.

Thank you Jani!
This is the code:

if($fd_url = fopen("http://www.some_site.com/some_picture.jpg", "r"))
{
$fd_img = fopen("c:\\some_picture.jpg", "w");

while (!feof($fd_url))
{
$buffer = fread($fd_url, 4096);
fwrite($fd_img, $buffer, strlen(buffer));
}

fclose($fd_img);
fclose($fd_url);
}

Previous Comments:
---

[2001-03-17 13:20:17] [EMAIL PROTECTED]
What was the fopen() line you have used?

--Jani


---

[2001-03-17 06:51:05] [EMAIL PROTECTED]
I have two web servers with Windows 2000 running on them.
One of them uses as a web server Microsoft IIS and the other one Apache 1.3.19 for 
Windows. I have a php script which connects to a remote web server and grabs an image. 
The image is written on a file (with fwrite function) and saved on the local harddisk. 
If I run the php script on IIS the image is saved correctly. If I run the php script 
on Apache the image is corrupted (has a larger length in bytes; usually, between 1-50 
bytes).

---


Full Bug description available at: http://bugs.php.net/?id=9806


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Re: PHP 4.0 Bug #9793 Updated: ldap_mod_add with bad params cause Segfault

2001-03-17 Thread Ondřej Surý
 ldap.php.strace


-- 
Ondřej Surý <[EMAIL PROTECTED]> Globe Internet s.r.o. http://globe.cz/
Tel: +420235365000   Fax: +420235365009 Pláničkova 1, 162 00 Praha 6
Mob: +420605204544   ICQ: 24944126 Mapa: http://globe.namape.cz/
GPG fingerprint:  CC91 8F02 8CDE 911A 933F  AE52 F4E6 6A7C C20D F273



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


[PHP-DEV] PHP 4.0 Bug #9541 Updated: New Feature Patch

2001-03-17 Thread dirk

ID: 9541
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: PostgreSQL related
Description: New Feature Patch

Is this going to make it into 4.0.5?

Previous Comments:
---

[2001-03-04 01:16:57] [EMAIL PROTECTED]

Hi - I ran into the problem that the notices that are sent from the postgres backend 
are being ignored by php. Most of the time this doesn't matter, but it would be nice 
to be able to profile an application by running explains (which show sql cost) on 
every  sql statement that is executed that way you can find where your problems are as 
you develop the software.  Below is a patch to add this php4 (Although I don't have a 
cvs I account - I did built it against the 200103031945 snap shot so it should be easy 
to integrate into the source tree) Can you please add this before the next release :)

new php function - I wasn't sure how to document this in the code so here is is in the 
bug report

pg_last_notice(int connection)
returns either an empty string or the contents of the last notice sent  out by the 
database.
This can be useful to get the output from the explain command.

see patch below


--- php4-200103031945/ext/pgsql/pgsql.c Mon Feb 26 00:45:27 2001
+++ php4-200103031945/ext/pgsql/pgsql.c.notice  Sat Mar  3 23:40:55 2001
@@ -46,6 +46,7 @@
PHP_FE(pg_pconnect, NULL)
PHP_FE(pg_close,NULL)
PHP_FE(pg_cmdtuples,NULL)
+   PHP_FE(pg_last_notice,  NULL)
PHP_FE(pg_dbname,   NULL)
PHP_FE(pg_errormessage, NULL)
PHP_FE(pg_trace,NULL)
@@ -146,12 +147,31 @@
PQfinish(link);
PGG(num_persistent)--;
PGG(num_links)--;
+   if (PGG(last_notice) != NULL) 
+   {
+   efree(PGG(last_notice));
+   }
 }
 
+/* This function is used to silence the notice messages sent by the postgres back 
+end. This can be useful when you know you are going to trigger a notice and don't 
+care 
+ */
 static void _be_quiet(void * arg, const char * message)
 {
 }
 
+/*This function is used to store the last notice for later retreval
+ */
+static void _store_notice(void * arg, const char * message)
+{
+   char *copy_of_message = NULL;
+
+   if (PGG(last_notice) != NULL) 
+   {
+   efree(PGG(last_notice));
+   }
+   PGG(last_notice) = estrdup(message);
+}
+
 static int _rollback_transactions(zend_rsrc_list_entry *rsrc)
 {
PGconn *link = (PGconn *)rsrc->ptr;
@@ -194,6 +214,7 @@
 static void php_pgsql_init_globals(PGLS_D)
 {
PGG(num_persistent) = 0;
+   PGG(last_notice) = NULL;
 }
 
 PHP_MINIT_FUNCTION(pgsql)
@@ -465,6 +486,9 @@
}
efree(hashed_details);
php_pgsql_set_default_link(return_value->value.lval);
+   /* Set the notice handler so we can keep notices for later*/
+   PQsetNoticeProcessor(pgsql, _store_notice, NULL);
+
 }
 
 
@@ -854,6 +878,20 @@
 }
 /* }}} */
 
+/* {{{ proto int pg_last_notice(int connection)
+   Returns the last notice set by the backend */
+PHP_FUNCTION(pg_last_notice)
+{
+   if (PGG(last_notice) == NULL) 
+   {
+   RETURN_FALSE;
+   }
+   else 
+   {   
+   RETURN_STRING(PGG(last_notice),0);
+   }
+}
+/* }}} */
 
 char *get_field_name(PGconn *pgsql, Oid oid, HashTable *list)
 {
--- php4-200103031945/ext/pgsql/php_pgsql.h Mon Feb 26 00:45:27 2001
+++ php4-200103031945/ext/pgsql/php_pgsql.h.notice  Sat Mar  3 23:40:55 2001
@@ -64,6 +64,7 @@
 PHP_FUNCTION(pg_numrows);
 PHP_FUNCTION(pg_numfields);
 PHP_FUNCTION(pg_cmdtuples);
+PHP_FUNCTION(pg_last_notice);
 PHP_FUNCTION(pg_fieldname);
 PHP_FUNCTION(pg_fieldsize);
 PHP_FUNCTION(pg_fieldtype);
@@ -119,6 +120,7 @@
long max_links,max_persistent;
long allow_persistent;
int le_lofp,le_string;
+   char *last_notice;
 } php_pgsql_globals;
 
 


---


Full Bug description available at: http://bugs.php.net/?id=9541


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9806 Updated: fwrite doesn't work on Windows 2000 with Apache Server.

2001-03-17 Thread sniper

ID: 9806
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Filesystem function related
Assigned To: 
Comments:

RTFM: http://www.php.net/fopen

ie. Just add  the 'b':

fopen("http://www.some_site.com/some_picture.jpg", "rb"
fopen("http://www.some_site.com/some_picture.jpg", "wb"

--Jani


Previous Comments:
---

[2001-03-17 13:35:52] [EMAIL PROTECTED]
Thank you Jani!
This is the code:

if($fd_url = fopen("http://www.some_site.com/some_picture.jpg", "r"))
{
$fd_img = fopen("c:\some_picture.jpg", "w");

while (!feof($fd_url))
{
$buffer = fread($fd_url, 4096);
fwrite($fd_img, $buffer, strlen(buffer));
}

fclose($fd_img);
fclose($fd_url);
}

---

[2001-03-17 13:20:17] [EMAIL PROTECTED]
What was the fopen() line you have used?

--Jani


---

[2001-03-17 06:51:05] [EMAIL PROTECTED]
I have two web servers with Windows 2000 running on them.
One of them uses as a web server Microsoft IIS and the other one Apache 1.3.19 for 
Windows. I have a php script which connects to a remote web server and grabs an image. 
The image is written on a file (with fwrite function) and saved on the local harddisk. 
If I run the php script on IIS the image is saved correctly. If I run the php script 
on Apache the image is corrupted (has a larger length in bytes; usually, between 1-50 
bytes).

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9806&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9806 Updated: fwrite doesn't work on Windows 2000 with Apache Server.

2001-03-17 Thread sniper

ID: 9806
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Status: Closed
Bug Type: Filesystem function related
Assigned To: 
Comments:

Note: I just added a note into the docs for fwrite() functions about this.

--Jani


Previous Comments:
---

[2001-03-17 14:26:20] [EMAIL PROTECTED]
RTFM: http://www.php.net/fopen

ie. Just add  the 'b':

fopen("http://www.some_site.com/some_picture.jpg", "rb"
fopen("http://www.some_site.com/some_picture.jpg", "wb"

--Jani


---

[2001-03-17 13:35:52] [EMAIL PROTECTED]
Thank you Jani!
This is the code:

if($fd_url = fopen("http://www.some_site.com/some_picture.jpg", "r"))
{
$fd_img = fopen("c:\some_picture.jpg", "w");

while (!feof($fd_url))
{
$buffer = fread($fd_url, 4096);
fwrite($fd_img, $buffer, strlen(buffer));
}

fclose($fd_img);
fclose($fd_url);
}

---

[2001-03-17 13:20:17] [EMAIL PROTECTED]
What was the fopen() line you have used?

--Jani


---

[2001-03-17 06:51:05] [EMAIL PROTECTED]
I have two web servers with Windows 2000 running on them.
One of them uses as a web server Microsoft IIS and the other one Apache 1.3.19 for 
Windows. I have a php script which connects to a remote web server and grabs an image. 
The image is written on a file (with fwrite function) and saved on the local harddisk. 
If I run the php script on IIS the image is saved correctly. If I run the php script 
on Apache the image is corrupted (has a larger length in bytes; usually, between 1-50 
bytes).

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9806&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Re: PHP 4.0 Bug #9793 Updated: ldap_mod_add with badparams cause Segfault

2001-03-17 Thread Jani Taskinen

On 17 Mar 2001, [iso-8859-2] Ondøej Surý wrote:

Could you please answer using the web interface found at:
http://www.php.net/bugs.php?id=9793&edit=2

And answer to those questions I asked.
BTW. Have you tried the latest CVS snapshot from http://snaps.php.net/ ?

--Jani



--
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9806 Updated: fwrite doesn't work on Windows 2000 with Apache Server.

2001-03-17 Thread leonardo

ID: 9806
User Update by: [EMAIL PROTECTED]
Status: Closed
Bug Type: Filesystem function related
Description: fwrite doesn't work on Windows 2000 with Apache Server.

Now that's ok!
Thank you. You're great.

Previous Comments:
---

[2001-03-17 14:31:02] [EMAIL PROTECTED]
Note: I just added a note into the docs for fwrite() functions about this.

--Jani


---

[2001-03-17 14:26:20] [EMAIL PROTECTED]
RTFM: http://www.php.net/fopen

ie. Just add  the 'b':

fopen("http://www.some_site.com/some_picture.jpg", "rb"
fopen("http://www.some_site.com/some_picture.jpg", "wb"

--Jani


---

[2001-03-17 13:35:52] [EMAIL PROTECTED]
Thank you Jani!
This is the code:

if($fd_url = fopen("http://www.some_site.com/some_picture.jpg", "r"))
{
$fd_img = fopen("c:\some_picture.jpg", "w");

while (!feof($fd_url))
{
$buffer = fread($fd_url, 4096);
fwrite($fd_img, $buffer, strlen(buffer));
}

fclose($fd_img);
fclose($fd_url);
}

---

[2001-03-17 13:20:17] [EMAIL PROTECTED]
What was the fopen() line you have used?

--Jani


---

[2001-03-17 06:51:05] [EMAIL PROTECTED]
I have two web servers with Windows 2000 running on them.
One of them uses as a web server Microsoft IIS and the other one Apache 1.3.19 for 
Windows. I have a php script which connects to a remote web server and grabs an image. 
The image is written on a file (with fwrite function) and saved on the local harddisk. 
If I run the php script on IIS the image is saved correctly. If I run the php script 
on Apache the image is corrupted (has a larger length in bytes; usually, between 1-50 
bytes).

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.

Full Bug description available at: http://bugs.php.net/?id=9806


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] YP/NIS functions reworked.

2001-03-17 Thread Fredrik Ohrn


Hello!

I spent some time cleaning up and adding new functionality to the YP/NIS
module.

General changes:

All functions now maintain a global 'errno' variable with the returnvalue
of the last yp call.

All functions now call php_error with a warning message on failure (this
might me overkill).

A bunch of YPERR_ error code constants has been added.

yp_first has been 'fixed' to return an array in the same style as yp_next
as outlined in bug #8041. It is still backwards compatible with code that
relies on the old 'broken' behaviour.



New functions:

void yp_all(string domain, string map, string callback)

Traverse a map and call the supplied callback function on each entry in
the map.

The callback function should have the following declaration:

int callback (int status, string key, string value)

If status is 0 a new entry has been retrived. Otherwise it  contains the
error code describing the reason for failure. After the last entry in the
map the callback will be called a final time with status set to YPERR_NOMORE.

key and value contains the data retrived from the map.

To continue traversing the map the return value sould be FALSE, else
return TRUE.


EXAMPLE:

function callback ($status, $key, $value)
{
if (!$status)
print "$key -> $value\n";
else
print yp_err_string ($status);

return $status;
}

$domain = yp_get_default_domain ();
yp_all ($domain, "passwd.byname", "callback");


array yp_cat(string domain, string map)

Retrive the entire map as an associative array.

Note! YP maps may contain entries with zero length keys, these are
silently dropped.


EXAMPLE:

$domain = yp_get_default_domain ();
$map = yp_cat ($domain, "passwd.byname");D

while (list ($key, $value) = each ($map))
{
print "$key -> $value\n";
}



int yp_errno()

Return the error code from the last YP call or 0 if no error occured.


string yp_err_string(int errorcode)

Return the corresponding error message for the given error code.



New constants:

 YPERR_ACCESS
   Access violation.

 YPERR_BADARGS
   The arguments to the function are bad.

 YPERR_BADDB
   The  YP database is bad.

 YPERR_BUSY
   The database is busy.

 YPERR_DOMAIN
   Cannot bind to server on this domain.

 YPERR_KEY
   No such key in map.

 YPERR_MAP
   No such map in server's domain.

 YPERR_NODOM
   Local domain name not set.

 YPERR_NOMORE
   No more records in map database.

 YPERR_PMAP
   Cannot communicate with  rpcbind.

 YPERR_RESRC
   Resource allocation failure.

 YPERR_RPC
   RPC failure; domain has been unbound.

 YPERR_YPBIND
   Cannot communicate with  ypbind.

 YPERR_YPERR
   Internal  YP server or client error.

 YPERR_YPSERV
   Cannot communicate with  ypserv.

 YPERR_VERS
   YP version mismatch.


I hope this will be usefull to more ppl than me... :)

I'm not subscribed to the list, please CC your comments to me.

Regards,
Fredrik

-- 
Do fish get thirsty?

Fredrik Öhrn   Chalmers University of Technology
[EMAIL PROTECTED]  Sweden



*** php_yp.h.orig   Sat Mar 17 20:09:13 2001
--- php_yp.hSat Mar 17 20:25:57 2001
***
*** 13,18 
--- 13,19 
 | [EMAIL PROTECTED] so we can mail you a copy immediately.   |
 +--+
 | Authors: Stephanie Wehner <[EMAIL PROTECTED]>|
+|  Fredrik Ohrn|
 +--+
  */

***
*** 23,28 
--- 24,35 

  #if HAVE_YP

+ #ifdef PHP_WIN32
+ #define PHP_YP_API __declspec(dllexport)
+ #else
+ #define PHP_YP_API
+ #endif
+
  extern zend_module_entry yp_module_entry;
  #define yp_module_ptr &yp_module_entry

***
*** 33,39 
--- 40,72 
  PHP_FUNCTION(yp_match);
  PHP_FUNCTION(yp_first);
  PHP_FUNCTION(yp_next);
+ PHP_FUNCTION(yp_all);
+ PHP_FUNCTION(yp_cat);
+ PHP_FUNCTION(yp_errno);
+ PHP_FUNCTION(yp_err_string);
+ PHP_MINIT_FUNCTION(yp);
+ PHP_RINIT_FUNCTION(yp);
  PHP_MINFO_FUNCTION(yp);
+
+ typedef struct {
+   int error;
+ } php_yp_globals;
+
+ #ifdef ZTS
+ #define YPLS_D php_yp_globals *yp_globals
+ #define YPLS_DC , YPLS_D
+ #define YPLS_C yp_globals
+ #define YPLS_CC , YPLS_C
+ #define YP(v) (yp_globals->v)
+ #define YPLS_FETCH() php_yp_globals *yp_globals = ts_resource(yp_globals_id)
+ #else
+ #define YPLS_D
+ #define YPLS_DC
+ #define YPLS_C
+ #define YPLS_CC
+ #define YP(v) (yp_globals.v)
+ #define YPLS_FETCH()
+ #endif

  #else

*** yp.c.orig   Sat Mar 17 20:09:02 2001
--- yp.cSat Mar 17 20:26:07 2001
***
*** 13,18 
--- 13,19 
 | [

[PHP-DEV] PHP 4.0 Bug #9811:

2001-03-17 Thread llevier

From: [EMAIL PROTECTED]
Operating system: Linux RH 6.2
PHP version:  4.0.4pl1
PHP Bug Type: MySQL related
Bug description:  




-- 
Edit Bug report at: http://bugs.php.net/?id=9811&edit=1



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9812: Connection to a MySQL DB

2001-03-17 Thread llevier

From: [EMAIL PROTECTED]
Operating system: Linux RH 6.2
PHP version:  4.0.4pl1
PHP Bug Type: MySQL related
Bug description:  Connection to a MySQL DB

mysql_connect("localhost","user","")
report an error that should not exist:
SQL Server error, cannot select databaseAccess denied for user: '@localhost' to 
database xxx

@localhost ? shouldn't it be user or user@localhost?


-- 
Edit Bug report at: http://bugs.php.net/?id=9812&edit=1



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9811 Updated:

2001-03-17 Thread sniper

ID: 9811
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Bogus
Bug Type: MySQL related
Assigned To: 
Comments:

submitted twice


Previous Comments:
---

[2001-03-17 15:44:39] [EMAIL PROTECTED]


---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9811&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9812 Updated: Connection to a MySQL DB

2001-03-17 Thread sniper

ID: 9812
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: MySQL related
Assigned To: 
Comments:

Can you please add a shortest possible script into
this report which can be used to reproduce this?


--Jani


Previous Comments:
---

[2001-03-17 15:46:01] [EMAIL PROTECTED]
mysql_connect("localhost","user","")
report an error that should not exist:
SQL Server error, cannot select databaseAccess denied for user: '@localhost' to 
database xxx

@localhost ? shouldn't it be user or user@localhost?

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9812&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9812 Updated: Connection to a MySQL DB

2001-03-17 Thread sniper

ID: 9812
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: MySQL related
Assigned To: 
Comments:



Previous Comments:
---

[2001-03-17 15:46:01] [EMAIL PROTECTED]
mysql_connect("localhost","user","")
report an error that should not exist:
SQL Server error, cannot select databaseAccess denied for user: '@localhost' to 
database xxx

@localhost ? shouldn't it be user or user@localhost?

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9812&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Re: PHP 4.0 Bug #9812 Updated: Connection to a MySQL DB

2001-03-17 Thread Laurent LEVIER

I thought it was enough, but here it is:

  $db=mysql_connect("localhost", "user", "");
  if ($db<=0)
  {
print ("");
print ("SQL Server error, cannot connect server");
exit;
  }

  $rc=mysql_select_db($database,$db);
  if ($rc<=0)
  {
print ("");
print ("SQL Server error, cannot select 
database:".mysql_error()."");
exit;
  }

$database is defined properly

At 20:55 17/03/2001 +, Bug Database wrote:
>ID: 9812
>Updated by: sniper
>Reported By: [EMAIL PROTECTED]
>Status: Open
>Bug Type: MySQL related
>Assigned To: 
>Comments:
>
>Can you please add a shortest possible script into
>this report which can be used to reproduce this?
>
>
>--Jani
>
>
>Previous Comments:
>---
>
>[2001-03-17 15:46:01] [EMAIL PROTECTED]
>mysql_connect("localhost","user","")
>report an error that should not exist:
>SQL Server error, cannot select databaseAccess denied for user: '@localhost' to 
>database xxx
>
>@localhost ? shouldn't it be user or user@localhost?
>
>---
>
>
>
>ATTENTION! Do NOT reply to this email!
>To reply, use the web interface found at http://bugs.php.net/?id=9812&edit=2

Laurent LEVIER
IT Systems & Networks, Unix System Engineer
Security Specialist

Argosnet Security Server : http://www.Argosnet.com
"Le Veilleur Technologique", "The Technology Watcher"


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] CVS Account Request

2001-03-17 Thread CVS Account Request

Full name: Fredrik Öhrn
Email: [EMAIL PROTECTED]
ID: ohrn
Purpose: To work on the YP/NIS and ClibPDF modules.

-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Remade the ClibPDF diffs against the CVS tree.

2001-03-17 Thread Fredrik Ohrn


See my post form earlier today for details on the patch.

-- 
Do fish get thirsty?

Fredrik Öhrn   Chalmers University of Technology
[EMAIL PROTECTED]  Sweden


Index: cpdf.c
===
RCS file: /repository/php4/ext/cpdf/cpdf.c,v
retrieving revision 1.22
diff -u -r1.22 cpdf.c
--- cpdf.c  2001/02/15 14:48:56 1.22
+++ cpdf.c  2001/03/17 21:11:26
@@ -97,6 +97,8 @@
PHP_FE(cpdf_text, NULL)
PHP_FE(cpdf_continue_text, NULL)
PHP_FE(cpdf_set_font, NULL)
+   PHP_FE(cpdf_set_font_directories, NULL)
+   PHP_FE(cpdf_set_font_map_file, NULL)
PHP_FE(cpdf_set_leading, NULL)
PHP_FE(cpdf_set_text_rendering, NULL)
PHP_FE(cpdf_set_horiz_scaling, NULL)
@@ -810,6 +812,61 @@
}
 */
cpdf_setFont(pdf, arg2->value.str.val, arg4->value.str.val, (float) 
arg3->value.dval);
+
+   RETURN_TRUE;
+}
+/* }}} */
+
+/* {{{ proto void cpdf_set_font_directories(int pdfdoc, string pfmdir, string pfbdir)
+   Set directories to search when using external fonts. */
+PHP_FUNCTION(cpdf_set_font_directories) {
+   pval *arg1, *arg2, *arg3;
+   int id, type;
+   CPDFdoc *pdf;
+   CPDF_TLS_VARS;
+
+   if (ZEND_NUM_ARGS() != 3 || getParameters(ht, 3, &arg1, &arg2, &arg3) == 
+FAILURE) {
+   WRONG_PARAM_COUNT;
+   }
+
+   convert_to_long(arg1);
+   convert_to_string(arg2);
+   convert_to_string(arg3);
+   id=arg1->value.lval;
+   pdf = zend_list_find(id,&type);
+   if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
+   php_error(E_WARNING,"Unable to find identifier %d",id);
+   RETURN_FALSE;
+   }
+
+   cpdf_setFontDirectories(pdf, arg2->value.str.val, arg3->value.str.val);
+
+   RETURN_TRUE;
+}
+/* }}} */
+
+/* {{{ proto void cpdf_set_font_map_file(int pdfdoc, string filename)
+   Set fontname to filename translation map when using external fonts. */
+PHP_FUNCTION(cpdf_set_font_map_file) {
+   pval *arg1, *arg2;
+   int id, type;
+   CPDFdoc *pdf;
+   CPDF_TLS_VARS;
+
+   if (ZEND_NUM_ARGS() != 2 || getParameters(ht, 2, &arg1, &arg2) == FAILURE) {
+   WRONG_PARAM_COUNT;
+   }
+
+   convert_to_long(arg1);
+   convert_to_string(arg2);
+   id=arg1->value.lval;
+   pdf = zend_list_find(id,&type);
+   if(!pdf || type!=CPDF_GLOBAL(le_cpdf)) {
+   php_error(E_WARNING,"Unable to find identifier %d",id);
+   RETURN_FALSE;
+   }
+
+   cpdf_setFontMapFile(pdf, arg2->value.str.val);

RETURN_TRUE;
 }

Index: php_cpdf.h
===
RCS file: /repository/php4/ext/cpdf/php_cpdf.h,v
retrieving revision 1.6
diff -u -r1.6 php_cpdf.h
--- php_cpdf.h  2000/07/02 23:46:38 1.6
+++ php_cpdf.h  2001/03/17 21:11:36
@@ -60,6 +60,8 @@
 PHP_FUNCTION(cpdf_continue_text);
 PHP_FUNCTION(cpdf_text);
 PHP_FUNCTION(cpdf_set_font);
+PHP_FUNCTION(cpdf_set_font_directories);
+PHP_FUNCTION(cpdf_set_font_map_file);
 PHP_FUNCTION(cpdf_set_leading);
 PHP_FUNCTION(cpdf_set_text_rendering);
 PHP_FUNCTION(cpdf_set_horiz_scaling);

 cpdf.tgz

-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


[PHP-DEV] Remade the YP/NIS diffs against the CVS tree.

2001-03-17 Thread Fredrik Ohrn


See my post form earlier today for details on the patch.B

-- 
Do fish get thirsty?

Fredrik Öhrn   Chalmers University of Technology
[EMAIL PROTECTED]  Sweden


Index: php_yp.h
===
RCS file: /repository/php4/ext/yp/php_yp.h,v
retrieving revision 1.8
diff -u -r1.8 php_yp.h
--- php_yp.h2001/02/26 06:07:30 1.8
+++ php_yp.h2001/03/17 20:30:22
@@ -13,6 +13,7 @@
| [EMAIL PROTECTED] so we can mail you a copy immediately.   |
+--+
| Authors: Stephanie Wehner <[EMAIL PROTECTED]>|
+   |  Fredrik Ohrn|
+--+
 */

@@ -23,6 +24,12 @@

 #if HAVE_YP

+#ifdef PHP_WIN32
+#define PHP_YP_API __declspec(dllexport)
+#else
+#define PHP_YP_API
+#endif
+
 extern zend_module_entry yp_module_entry;
 #define yp_module_ptr &yp_module_entry

@@ -33,7 +40,33 @@
 PHP_FUNCTION(yp_match);
 PHP_FUNCTION(yp_first);
 PHP_FUNCTION(yp_next);
+PHP_FUNCTION(yp_all);
+PHP_FUNCTION(yp_cat);
+PHP_FUNCTION(yp_errno);
+PHP_FUNCTION(yp_err_string);
+PHP_MINIT_FUNCTION(yp);
+PHP_RINIT_FUNCTION(yp);
 PHP_MINFO_FUNCTION(yp);
+
+typedef struct {
+   int error;
+} php_yp_globals;
+
+#ifdef ZTS
+#define YPLS_D php_yp_globals *yp_globals
+#define YPLS_DC , YPLS_D
+#define YPLS_C yp_globals
+#define YPLS_CC , YPLS_C
+#define YP(v) (yp_globals->v)
+#define YPLS_FETCH() php_yp_globals *yp_globals = ts_resource(yp_globals_id)
+#else
+#define YPLS_D
+#define YPLS_DC
+#define YPLS_C
+#define YPLS_CC
+#define YP(v) (yp_globals.v)
+#define YPLS_FETCH()
+#endif

 #else

Index: yp.c
===
RCS file: /repository/php4/ext/yp/yp.c,v
retrieving revision 1.15
diff -u -r1.15 yp.c
--- yp.c2001/02/26 06:07:30 1.15
+++ yp.c2001/03/17 20:30:31
@@ -13,6 +13,7 @@
| [EMAIL PROTECTED] so we can mail you a copy immediately.   |
+--+
| Authors: Stephanie Wehner <[EMAIL PROTECTED]>|
+   |  Fredrik Ohrn|
+--+
  */
 /* $Id: yp.c,v 1.15 2001/02/26 06:07:30 andi Exp $ */
@@ -26,6 +27,16 @@

 #include 

+/* {{{ thread safety stuff */
+
+#ifdef ZTS
+int yp_globals_id;
+#else
+PHP_YP_API php_yp_globals yp_globals;
+#endif
+
+/* }}} */
+
 function_entry yp_functions[] = {
PHP_FE(yp_get_default_domain, NULL)
PHP_FE(yp_order, NULL)
@@ -33,16 +44,20 @@
PHP_FE(yp_match, NULL)
PHP_FE(yp_first, NULL)
PHP_FE(yp_next, NULL)
+   PHP_FE(yp_all, NULL)
+   PHP_FE(yp_cat, NULL)
+   PHP_FE(yp_errno, NULL)
+   PHP_FE(yp_err_string, NULL)
{NULL, NULL, NULL}
 };

 zend_module_entry yp_module_entry = {
"yp",
yp_functions,
+   PHP_MINIT(yp),
NULL,
+   PHP_RINIT(yp),
NULL,
-   NULL,
-   NULL,
PHP_MINFO(yp),
STANDARD_MODULE_PROPERTIES
 };
@@ -55,8 +70,10 @@
Returns the domain or false */
 PHP_FUNCTION(yp_get_default_domain) {
char *outdomain;
+   YPLS_FETCH();

-   if(yp_get_default_domain(&outdomain)) {
+   if(YP(error) = yp_get_default_domain(&outdomain)) {
+   php_error(E_WARNING, yperr_string (YP(error)));
RETURN_FALSE;
}
RETVAL_STRING(outdomain,1);
@@ -71,9 +88,11 @@
 #if SOLARIS_YP
unsigned long outval;
 #else
-  int outval;
+   int outval;
 #endif

+   YPLS_FETCH();
+
if((ZEND_NUM_ARGS() != 2) || zend_get_parameters_ex(2,&domain,&map) == 
FAILURE) {
WRONG_PARAM_COUNT;
}
@@ -81,7 +100,8 @@
convert_to_string_ex(domain);
convert_to_string_ex(map);

-   if(yp_order((*domain)->value.str.val,(*map)->value.str.val,&outval)) {
+   if(YP(error) = yp_order(Z_STRVAL_PP (domain), Z_STRVAL_PP (map), &outval)) {
+   php_error(E_WARNING, yperr_string (YP(error)));
RETURN_FALSE;
}

@@ -94,6 +114,7 @@
 PHP_FUNCTION(yp_master) {
pval **domain, **map;
char *outname;
+   YPLS_FETCH();

if((ZEND_NUM_ARGS() != 2) || zend_get_parameters_ex(2,&domain,&map) == 
FAILURE) {
WRONG_PARAM_COUNT;
@@ -102,7 +123,8 @@
convert_to_string_ex(domain);
convert_to_string_ex(map);

-   if(yp_master((*domain)->value.str.val,(*map)->value.str.val,&outname)) {
+   if(YP(error) = yp_master(Z_STRVAL_PP (domain), Z_STRVAL_PP (map), &outname)) {
+   php_error(E_WARNING, yperr_string (YP(error)));
RETURN_FALSE;
}

@@ -11

[PHP-DEV] PHP 4.0 Bug #9809 Updated: Extensions can't be loaded at startup

2001-03-17 Thread sniper

ID: 9809
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Closed
Status: Open
Bug Type: *Configuration Issues
Assigned To: 
Comments:

Reopened: This has not been fixed yet.

--Jani




Previous Comments:
---

[2001-03-17 12:35:32] [EMAIL PROTECTED]
Ok, a fix has been posted to the developer mailing-list (message from Alexander 
Bokovoy on On Sat, Mar 17, 2001 at 16:51).

So I close myself the bug.
Thanks,

---

[2001-03-17 11:48:07] [EMAIL PROTECTED]
Hi!

I'm under Win 98SE, Apache 1.3.19 and php4.0.5-RC1 (from www.php4win.de) as an Apache 
module ("php4apache.dll" or "php4apache-eapi.dll", the problem is the same for both).

It seems that extensions can't be loaded at startup (from the "php.ini" file) because 
their filenames are replaced by strange words!

For example if I uncomment the line "extension=php_zlib.dll" and only this one, Apache 
crash and the Apache log shows "PHP Warning:  Unable to load dynamic library 
'C:EasyPHPphpextensionsphp_zlib!'" 
(sometimes the name of the file is also replaced by 'localhost' or '@E').
This was an example, but I can reproduce the problem for each one of the extensions.

It's not related to my "php.ini" file because this one works with the previous version 
of php4.0.5-dev.

Thanks in advance,
Loïc

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9809&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9813: Activating LoadModule for PHP4 causes Apache not to run, no error reported.

2001-03-17 Thread ulairi

From: [EMAIL PROTECTED]
Operating system: Solaris 2.7
PHP version:  4.0.4pl1
PHP Bug Type: Apache related
Bug description:  Activating LoadModule for PHP4 causes Apache not to run, no error 
reported.

Environment: 
Solaris 2.7
gcc 2.95.2

Apache 1.3.19
OpenSSL 0.9.6
ModSSL 2.8.1
PHP4.0.4l1

PHP configured with LDAP/IMAP/SSL/mm

If LoadModule is uncommented, "apachectl start" reports a successful start, a pid file 
is created, but both error_log and access_log are blank, and the process is not in the 
process table. 
Commenting out the LoadModule for PHP4 fixes the "problem".




-- 
Edit Bug report at: http://bugs.php.net/?id=9813&edit=1



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9813 Updated: Activating LoadModule for PHP4 causes Apache not to run, no error reported.

2001-03-17 Thread ulairi

ID: 9813
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Apache related
Description: Activating LoadModule for PHP4 causes Apache not to run, no error 
reported.

Compiled-in modules:
  http_core.c
  mod_env.c
  mod_log_config.c
  mod_mime.c
  mod_negotiation.c
  mod_status.c
  mod_info.c
  mod_include.c
  mod_autoindex.c
  mod_dir.c
  mod_cgi.c
  mod_asis.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_access.c
  mod_auth.c
  mod_usertrack.c
  mod_so.c
  mod_setenvif.c
  mod_ssl.c


Previous Comments:
---

[2001-03-17 16:51:49] [EMAIL PROTECTED]
Environment: 
Solaris 2.7
gcc 2.95.2

Apache 1.3.19
OpenSSL 0.9.6
ModSSL 2.8.1
PHP4.0.4l1

PHP configured with LDAP/IMAP/SSL/mm

If LoadModule is uncommented, "apachectl start" reports a successful start, a pid file 
is created, but both error_log and access_log are blank, and the process is not in the 
process table. 
Commenting out the LoadModule for PHP4 fixes the "problem".



---


Full Bug description available at: http://bugs.php.net/?id=9813


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9813 Updated: Activating LoadModule for PHP4 causes Apache not to run, no error reported.

2001-03-17 Thread ulairi

ID: 9813
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Apache related
Description: Activating LoadModule for PHP4 causes Apache not to run, no error 
reported.

Apache's "config.status" header:
CC="gcc" \
LIBS="-lpthread -lposix4" \
EAPI_MM="SYSTEM" \
SSL_BASE="/usr2/OpenSSL" \
./configure \
"--with-layout=Apache" \
"--prefix=/usr2/web" \
"--enable-rule=EAPI" \
"--enable-module=ssl" \
"--enable-module=so" \
"--enable-module=info" \
"--enable-module=usertrack" \
"$@"


PHP4's config.status header:
# ./configure  --with-mysql=/usr2/mysql --prefix=/usr2/PHP4 --with-apxs=/usr2/we
b/bin/apxs --with-config-file-path=/usr2/web/conf --with-exec-dir=/usr2/web/php_
exe --with-openssl=/usr2/OpenSSL --with-gdbm --enable-dbase --enable-ftp --with-
imap=/usr2/root/imap/uwash/imap-4.4 --with-imap-ssl --with-ldap=/usr/OpenLDAP --
with-mm --enable-trans-sid --with-zlib --enable-inline-optimization --disable-sh
ared --enable-static



Previous Comments:
---

[2001-03-17 16:53:29] [EMAIL PROTECTED]
Compiled-in modules:
  http_core.c
  mod_env.c
  mod_log_config.c
  mod_mime.c
  mod_negotiation.c
  mod_status.c
  mod_info.c
  mod_include.c
  mod_autoindex.c
  mod_dir.c
  mod_cgi.c
  mod_asis.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_access.c
  mod_auth.c
  mod_usertrack.c
  mod_so.c
  mod_setenvif.c
  mod_ssl.c


---

[2001-03-17 16:51:49] [EMAIL PROTECTED]
Environment: 
Solaris 2.7
gcc 2.95.2

Apache 1.3.19
OpenSSL 0.9.6
ModSSL 2.8.1
PHP4.0.4l1

PHP configured with LDAP/IMAP/SSL/mm

If LoadModule is uncommented, "apachectl start" reports a successful start, a pid file 
is created, but both error_log and access_log are blank, and the process is not in the 
process table. 
Commenting out the LoadModule for PHP4 fixes the "problem".



---


Full Bug description available at: http://bugs.php.net/?id=9813


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Quick solution for bug 5906 (ClibPDF + IMAP)

2001-03-17 Thread Fredrik Ohrn


Bug 5906 is a fatal compile error which occurs when including both IMAP
and ClibPDF support.

Problem: IMAP headers define T, which collide with a cpdflib function
declaration.

Solution: Get rid of it before incuding cpdflib.h. T is unused anyway,
but if someone someday decides to use T in the imap module he is in for a
suprise.

Here is the offending snippet from mail.h:

#define NIL 0   /* convenient name */
#define T 1 /* opposite of NIL */


Ofcourse anyone defining a macro named T in a lib for public consumption
should be shot. And NIL too for that matter. I guess this just adds to the
cozy old-broken-mess feeling that surrounds c-client.


Regards,
Fredrik

-- 
Do fish get thirsty?

Fredrik Öhrn   Chalmers University of Technology
[EMAIL PROTECTED]  Sweden



Index: php_cpdf.h
===
RCS file: /repository/php4/ext/cpdf/php_cpdf.h,v
retrieving revision 1.6
diff -u -r1.6 php_cpdf.h
--- php_cpdf.h  2000/07/02 23:46:38 1.6
+++ php_cpdf.h  2001/03/17 21:50:54
@@ -33,6 +33,13 @@

 #if HAVE_CPDFLIB

+/* IMAP headers define T, which collide with a cpdflib function declaration.
+   Get rid of it before incuding cpdflib.h since T isn't unused anyway. */
+
+#ifdef T
+#undef T
+#endif
+
 #include 

 extern zend_module_entry cpdf_module_entry;

 bug5906.tgz

-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


Re: [PHP-DEV] "Independent" comments on a bug.

2001-03-17 Thread Joey Smith

Only if you are a developer. You may want to try requesting a developer
account. I know the QA/QC team can always use more helping closing
reports and fixing bugs...

http://www.php.net/cvs-php.php

On Sat, 17 Mar 2001, Fredrik Ohrn wrote the following to [EMAIL PROTECTED] :

> 
> In the bug tracker, is it possible to add a comment to a bug already filed
> by someone else?
> 
> If it is, please explain coz I'm to dumb to figure it out.
> 
> 
> Regards,
> Fredrik
> 
> 


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9809 Updated: Extensions can't be loaded at startup

2001-03-17 Thread sniper

ID: 9809
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: *Configuration Issues
Assigned To: 
Comments:

Fixed in CVS. 

--Jani


Previous Comments:
---

[2001-03-17 16:44:28] [EMAIL PROTECTED]
Reopened: This has not been fixed yet.

--Jani




---

[2001-03-17 12:35:32] [EMAIL PROTECTED]
Ok, a fix has been posted to the developer mailing-list (message from Alexander 
Bokovoy on On Sat, Mar 17, 2001 at 16:51).

So I close myself the bug.
Thanks,

---

[2001-03-17 11:48:07] [EMAIL PROTECTED]
Hi!

I'm under Win 98SE, Apache 1.3.19 and php4.0.5-RC1 (from www.php4win.de) as an Apache 
module ("php4apache.dll" or "php4apache-eapi.dll", the problem is the same for both).

It seems that extensions can't be loaded at startup (from the "php.ini" file) because 
their filenames are replaced by strange words!

For example if I uncomment the line "extension=php_zlib.dll" and only this one, Apache 
crash and the Apache log shows "PHP Warning:  Unable to load dynamic library 
'C:EasyPHPphpextensionsphp_zlib!'" 
(sometimes the name of the file is also replaced by 'localhost' or '@E').
This was an example, but I can reproduce the problem for each one of the extensions.

It's not related to my "php.ini" file because this one works with the previous version 
of php4.0.5-dev.

Thanks in advance,
Loïc

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9809&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9764 Updated: Extensions from php.ini get loaded several times per process

2001-03-17 Thread sniper

ID: 9764
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: PHP options/info functions
Assigned To: 
Comments:

Fixed in CVS. (By Zeev, but not with this patch..)

--Jani


Previous Comments:
---

[2001-03-15 06:43:56] [EMAIL PROTECTED]
PHP4 under Apache tries to load extensions from php.ini

several times per process causing 'duplicate name' warnings

Also on the second (and next) loading extension name passed

to phpdl() in damaged form.



Investigation showed that problem is in the main/php_ini.c:

1. php_load_function_extension_cb() allocates extension name using estrdup but global 
llist with extensions declared as persistent. It keeps references to deallocated 
extensions' names causing damaged names passed to phpdl(). 

2. php_startup_loaded_extensions() doesn't free llist after

loading extensions, so next call to php_init_config() (per-process) will double this 
list.



Solution is to deallocate llist after loading extensions in 
php_startup_loaded_extensions. Then (1) wouldn't be a problem at all.



Proposed fix:



--- main/php_ini.c.orig Tue Mar  6 13:38:55 2001

+++ main/php_ini.c  Thu Mar 15 13:12:04 2001

@@ -165,6 +165,8 @@

 {

if(php_load_extension_list) {

zend_llist_apply(php_load_extension_list, 
php_startup_loaded_extension_cb);

+   zend_llist_destroy(php_load_extension_list);

+   php_load_extension_list = NULL;

}

return SUCCESS;

}

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9764&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9422 Updated: Apache hangs when Win goes to standby

2001-03-17 Thread php

ID: 9422
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Apache related
Description: Apache hangs when Win goes to standby

same with Sambar Server 4.4

Previous Comments:
---

[2001-02-23 10:43:53] [EMAIL PROTECTED]
If PHP 4.04 is included in Apache 1.3.17 as module with:

LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php

and Win goes into standby the standby window and the Apache console freezes, omnly 
after after killing the second apache task - with small letters - computer goes 
standby.

Gustav Graf

---


Full Bug description available at: http://bugs.php.net/?id=9422


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9814: can't extract any files

2001-03-17 Thread wangxinyi2

From: [EMAIL PROTECTED]
Operating system: redhat linux JP7.0
PHP version:  4.0.4pl1
PHP Bug Type: Compile Problem
Bug description:  can't extract any files


I downloaded this Ver php4.0.4pl1.tar.gz, but I can not
extract any files, because the error happened when I extract them.

1. tar xzvf php4.0.4pl1.tar.gz

   error: gzip: stdin: invalid compressed data--crc error
stdin: invalid compressed data--length error

2. gunzip php4.0.4pl1.tar.gz

   error: gunzip: php4.0.4pl1.tar.gz:invalid  
  compressed data--crc error

3. (1) winzip php4.0.4pl1.tar.gz
   result is ok. I got php4.0.4pl1.tar
   (2) tar xvf php4.0.4pl1.tar
   error is happened.




-- 
Edit Bug report at: http://bugs.php.net/?id=9814&edit=1



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9812 Updated: Connection to a MySQL DB

2001-03-17 Thread sniper

ID: 9812
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: MySQL related
Assigned To: 
Comments:

I can reproduce this one with this script:



It's mysql_error() in mysql itself that is broken.
I can reproduce this within the mysql shell too..

Not a bug in PHP. -> closed.

--Jani



Previous Comments:
---

[2001-03-17 15:55:32] [EMAIL PROTECTED]
Can you please add a shortest possible script into
this report which can be used to reproduce this?


--Jani


---

[2001-03-17 15:46:01] [EMAIL PROTECTED]
mysql_connect("localhost","user","")
report an error that should not exist:
SQL Server error, cannot select databaseAccess denied for user: '@localhost' to 
database xxx

@localhost ? shouldn't it be user or user@localhost?

---



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9812&edit=2


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9815: cannot include/require files on network shares

2001-03-17 Thread djanix

From: [EMAIL PROTECTED]
Operating system: win32
PHP version:  4.0 Latest CVS (17/03/2001)
PHP Bug Type: Filesystem function related
Bug description:  cannot include/require files on network shares

using latest exe from php4win.de...
php cannot open network shares like
include( 'computer\\c$\\php4\\include\\template.php' );
or
include( '\\computer\c$\php4\include\template.php' );
or
include( '//computer/c$/php4/include/template.php' );
or
include( 'computer\c$/php4/include/template.php' );

nothing seems to work.

even with no include_path set...

i searched through the source to find how include calls fopen to see if i could offer 
any advice... i ran out of time when i was working on it, so i thought i might add a 
note here about it.  

there are so many layers of code involved in the fopen process... 

thank you so much for all of your time and work !  php is the greatest :)



-- 
Edit Bug report at: http://bugs.php.net/?id=9815&edit=1



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] PHP 4.0 Bug #9816: FATAL: emalloc(): Unable to allocate

2001-03-17 Thread shazlista

From: [EMAIL PROTECTED]
Operating system: windows 2000 sp1
PHP version:  4.0.4pl1
PHP Bug Type: ODBC related
Bug description:  FATAL: emalloc(): Unable to allocate 

When I query a "Query" from access with only 2087 rows( each row is 210 bytes size), I 
get this error:

FATAL: emalloc(): Unable to allocate 2147483599 bytes 


please help!


-- 
Edit Bug report at: http://bugs.php.net/?id=9816&edit=1



-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Remade the YP/NIS diffs against the CVS tree.

2001-03-17 Thread Andi Gutmans

Instead of the following code you have in a few places:
zval_dtor(status);
FREE_ZVAL(status);

You should use zval_ptr_dtor(&status);
The user function might change the reference count of these zval's and 
there might be a situation where they shouldn't be destructed/freed.

Andi


At 10:31 PM 3/17/2001 +0100, Fredrik Ohrn wrote:

>See my post form earlier today for details on the patch.B
>
>--
>Do fish get thirsty?
>
>Fredrik Öhrn   Chalmers University of Technology
>[EMAIL PROTECTED]  Sweden
>
>
>Index: php_yp.h
>===
>RCS file: /repository/php4/ext/yp/php_yp.h,v
>retrieving revision 1.8
>diff -u -r1.8 php_yp.h
>--- php_yp.h2001/02/26 06:07:30 1.8
>+++ php_yp.h2001/03/17 20:30:22
>@@ -13,6 +13,7 @@
> | [EMAIL PROTECTED] so we can mail you a copy immediately.   |
> +--+
> | Authors: Stephanie Wehner <[EMAIL PROTECTED]>|
>+   |  Fredrik Ohrn|
> +--+
>  */
>
>@@ -23,6 +24,12 @@
>
>  #if HAVE_YP
>
>+#ifdef PHP_WIN32
>+#define PHP_YP_API __declspec(dllexport)
>+#else
>+#define PHP_YP_API
>+#endif
>+
>  extern zend_module_entry yp_module_entry;
>  #define yp_module_ptr &yp_module_entry
>
>@@ -33,7 +40,33 @@
>  PHP_FUNCTION(yp_match);
>  PHP_FUNCTION(yp_first);
>  PHP_FUNCTION(yp_next);
>+PHP_FUNCTION(yp_all);
>+PHP_FUNCTION(yp_cat);
>+PHP_FUNCTION(yp_errno);
>+PHP_FUNCTION(yp_err_string);
>+PHP_MINIT_FUNCTION(yp);
>+PHP_RINIT_FUNCTION(yp);
>  PHP_MINFO_FUNCTION(yp);
>+
>+typedef struct {
>+   int error;
>+} php_yp_globals;
>+
>+#ifdef ZTS
>+#define YPLS_D php_yp_globals *yp_globals
>+#define YPLS_DC , YPLS_D
>+#define YPLS_C yp_globals
>+#define YPLS_CC , YPLS_C
>+#define YP(v) (yp_globals->v)
>+#define YPLS_FETCH() php_yp_globals *yp_globals = ts_resource(yp_globals_id)
>+#else
>+#define YPLS_D
>+#define YPLS_DC
>+#define YPLS_C
>+#define YPLS_CC
>+#define YP(v) (yp_globals.v)
>+#define YPLS_FETCH()
>+#endif
>
>  #else
>
>Index: yp.c
>===
>RCS file: /repository/php4/ext/yp/yp.c,v
>retrieving revision 1.15
>diff -u -r1.15 yp.c
>--- yp.c2001/02/26 06:07:30 1.15
>+++ yp.c2001/03/17 20:30:31
>@@ -13,6 +13,7 @@
> | [EMAIL PROTECTED] so we can mail you a copy immediately.   |
> +--+
> | Authors: Stephanie Wehner <[EMAIL PROTECTED]>|
>+   |  Fredrik Ohrn|
> +--+
>   */
>  /* $Id: yp.c,v 1.15 2001/02/26 06:07:30 andi Exp $ */
>@@ -26,6 +27,16 @@
>
>  #include 
>
>+/* {{{ thread safety stuff */
>+
>+#ifdef ZTS
>+int yp_globals_id;
>+#else
>+PHP_YP_API php_yp_globals yp_globals;
>+#endif
>+
>+/* }}} */
>+
>  function_entry yp_functions[] = {
> PHP_FE(yp_get_default_domain, NULL)
> PHP_FE(yp_order, NULL)
>@@ -33,16 +44,20 @@
> PHP_FE(yp_match, NULL)
> PHP_FE(yp_first, NULL)
> PHP_FE(yp_next, NULL)
>+   PHP_FE(yp_all, NULL)
>+   PHP_FE(yp_cat, NULL)
>+   PHP_FE(yp_errno, NULL)
>+   PHP_FE(yp_err_string, NULL)
> {NULL, NULL, NULL}
>  };
>
>  zend_module_entry yp_module_entry = {
> "yp",
> yp_functions,
>+   PHP_MINIT(yp),
> NULL,
>+   PHP_RINIT(yp),
> NULL,
>-   NULL,
>-   NULL,
> PHP_MINFO(yp),
> STANDARD_MODULE_PROPERTIES
>  };
>@@ -55,8 +70,10 @@
> Returns the domain or false */
>  PHP_FUNCTION(yp_get_default_domain) {
> char *outdomain;
>+   YPLS_FETCH();
>
>-   if(yp_get_default_domain(&outdomain)) {
>+   if(YP(error) = yp_get_default_domain(&outdomain)) {
>+   php_error(E_WARNING, yperr_string (YP(error)));
> RETURN_FALSE;
> }
> RETVAL_STRING(outdomain,1);
>@@ -71,9 +88,11 @@
>  #if SOLARIS_YP
> unsigned long outval;
>  #else
>-  int outval;
>+   int outval;
>  #endif
>
>+   YPLS_FETCH();
>+
> if((ZEND_NUM_ARGS() != 2) || 
> zend_get_parameters_ex(2,&domain,&map) == FAILURE) {
> WRONG_PARAM_COUNT;
> }
>@@ -81,7 +100,8 @@
> convert_to_string_ex(domain);
> convert_to_string_ex(map);
>
>-   if(yp_order((*domain)->value.str.val,(*map)->value.str.val,&outval)) {
>+   if(YP(error) = yp_order(Z_STRVAL_PP (domain), Z_STRVAL_PP (map), 
>&outval)) {
>+   php_error(E_WARNING, yperr_string (YP(error)));
> RETURN_FALSE;
> }
>
>@@ -94,6 +114,7 @@
>  PHP_FUNCTION(yp_master) {
> pval **domain

[PHP-DEV] PHP 4.0 Bug #9227 Updated: php module crashes without content-type header.

2001-03-17 Thread sniper

ID: 9227
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Closed
Bug Type: Reproduceable crash
Assigned To: 
Comments:

Fixed in CVS.

--Jani


Previous Comments:
---

[2001-03-07 08:15:08] [EMAIL PROTECTED]
Here is my php.ini file:

max_execution_time = 300 
include_path="." 
zend_extension="/usr/local/Zend/ZendDebugger.so" 

I installed the demo of the Zend php IDE, and this could explain the strangeness of 
the backtrace.

---

[2001-03-02 08:53:28] [EMAIL PROTECTED]
Here is the backtrace that I got by running httpd under gdb:

Program received signal SIGSEGV, Segmentation fault.
php_std_post_handler (content_type_dup=0x0, arg=0x80e1e74) at 
/usr/local/include/bits/string2.h:1051
1051  while (*__s == __sep)
(gdb) bt
#0  php_std_post_handler (content_type_dup=0x0, arg=0x80e1e74) at 
/usr/local/include/bits/string2.h:1051
#1  0x4047f430 in sapi_handle_post (arg=0x80e1e74) at SAPI.c:101
#2  0x40482a38 in php_treat_data (arg=0, str=0x0, destArray=0x0) at 
php_variables.c:251
#3  0x4047d062 in php_hash_environment () at main.c:1039
#4  0x4047c7c4 in php_request_startup () at main.c:645
#5  0x40479aec in apache_php_module_main (r=0x8052210, display_source_mode=0) at 
sapi_apache.c:66
#6  0x4047a581 in send_php (r=0x8052210, display_source_mode=0, filename=0x0) at 
mod_php4.c:516
#7  0x4047a5c6 in send_parsed_php (r=0x8052210) at mod_php4.c:527
#8  0x400252b9 in __bam_rsearch (dbp=0x8052210, recnop=0x4007bab0, flags=3221223944, 
stop=1073991020, exactp=0x40085130)
at btree/bt_rsearch.c:235
#9  0x4003d353 in __ham_newpage_recover (logp=0x8052210, dbtp=0x1, lsnp=0x0, 
redo=1073992604, info=0x40085130)
at hash/hash_rec.c:279
#10 0x4003d3d0 in __ham_newpage_recover (logp=0x8052210, dbtp=0x4, lsnp=0x8052210, 
redo=1073950625, info=0x40085130)
at hash/hash_rec.c:295
#11 0x40032f23 in __db_big_recover (logp=0x0, dbtp=0x400310f8, lsnp=0x0, 
redo=1073950904, info=0x40085130) at db/db_rec.c:306
#12 0x4003313a in __db_ovref_recover (logp=0x804e1e0, dbtp=0x0, lsnp=0x3a9f9ddf, 
redo=1073951340, info=0x40085130)
at db/db_rec.c:360
#13 0x400332e7 in __db_relink_recover (logp=0x5, dbtp=0x804e1e0, lsnp=0xbb38, 
redo=1073953267, info=0x40085130)
at db/db_rec.c:407
#14 0x40033a50 in __db_rattach (infop=0x2) from /lib/libdb.so.3
#15 0x40034493 in __db_rgrow (infop=0x2, new_size=3221224484) at 
common/db_region.c:735
#16 0x8049476 in ap_gcvt ()
#17 0x401421eb in __fgetgrent_r (stream=0x8049454, resbuf=0x2, buffer=0xbc24 
"0ýÿ¿Nýÿ¿", buflen=134517128,
result=0x804a614) at fgetgrent_r.c:72

---

[2001-03-01 22:23:03] [EMAIL PROTECTED]
Check this url for information how to generate a GDB backtrace:

http://bugs.php.net/bugs-generating-backtrace.php

(It has info what to do when you don't get any core dumps)

Also, remember that you have to configure PHP with --enable-debug
to get useful backtraces.

--Jani


---

[2001-02-12 10:49:37] [EMAIL PROTECTED]
I am running php 4.04pl1 compiled as an apache 1.3  module with support for curl, 
pgsql, and zlib.  It seems that the module crashes, causing httpd processes to seg 
fault when a POST request is made without a content-type header.  It seems that the 
crash only occurs after a normal POST with a content-type header is followed by one 
without.  To reproduce the crash, I simply make a POST request to a php script that 
does pretty much nothing( usually just printing a statement indicating that it ran ) 
with a browser(Netscape 4.6.2 or lynx-2.82.) and then run a program that I wrote that 
sends a POST request w/o the Content-Type header.  Sometimes this step must be done 
several times until the same apache child process that I hit with the browser receives 
the bad request.  Eventually, after running this program for a while one apache child 
process dies for each hit I made from the browser.  This only occurs with php scripts 
and apache does not give me a core dump that i can analyze to give you more info.  

---

[2001-02-12 10:36:53] [EMAIL PROTECTED]
I am running php 4.04pl1 compiled as an apache 1.3  module with support for curl, 
pgsql, and zlib.  It seems that the module crashes, causing httpd processes to seg 
fault when a POST request is made without a content-type header.  To reproduce the 
crash, I simply make a POST request to a php script that does pretty much nothing( 
usually just printing
a statement indicating that it ran ) with a browser(Netscape 4.6.2) and then run a 
program that I wrote that sends a POST request w/o the Content-Type header.  Sometimes 
this step must be done several times