RE: [PHP-DEV] Question about PDF lib.

2001-08-27 Thread Criegern, Phillipp von (PDV)

I would suggest looking for a real *Support Forum* or http://www.pdflib.com/

Do anyone know, how i define the width, height etc. parameters in
PDFlib 
functions in PHP? Is it in cm, pixels, inch? Or?

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Question about PDF lib.

2001-08-27 Thread Johan Holst Nielsen

Hi

Do anyone know, how i define the width, height etc. parameters in PDFlib 
functions in PHP? Is it in cm, pixels, inch? Or?

Anyone know?

I need to generate printingfiles, so I hope I can use cm or sometime like 
that :o)

Regards,

Johan

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12853 Updated: Crash on any php scripts when running as apache module

2001-08-27 Thread dacota

ID: 12853
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Summary: Crash when open_file_for_scanning is adding handle to CG(open_files)
Status: Open
Bug Type: Reproducible crash
Operating System: Windows NT 4.0 SP5
Old PHP Version: 4.0CVS-2001-08-20
PHP Version: 4.0CVS-2001-08-27
New Comment:

Checked with the latest sources - the problem remains.
Back trace when running as apache module:

zend_llist_add_element(_zend_llist * 0x0072a364, void * 0x011dfdb4) line 38 + 9 bytes
open_file_for_scanning(_zend_file_handle * 0x011dfdb4, void * * * 0x00729040) line 274 
+ 31 bytes
compile_file(_zend_file_handle * 0x011dfdb4, int 0x0002, void * * * 0x00729040) 
line 356 + 13 bytes
zend_execute_scripts(int 0x0002, void * * * 0x00729040, int 0x0001) line 804 + 
18 bytes
send_php(request_rec * 0x00882f30, int 0x, char * 0x) line 501 + 18 
bytes
send_parsed_php(request_rec * 0x00882f30) line 590 + 13 bytes
ap_invoke_handler(request_rec * 0x00882f30) line 517 + 10 bytes
process_request_internal(request_rec * 0x00882f30) line 1303 + 9 bytes
ap_internal_redirect(const char * 0x00882f08, request_rec * 0x008822c0) line 1427 + 9 
bytes
handle_dir(request_rec * 0x008822c0) line 179
ap_invoke_handler(request_rec * 0x008822c0) line 517 + 10 bytes
process_request_internal(request_rec * 0x008822c0) line 1303 + 9 bytes
ap_process_request(request_rec * 0x008822c0) line 1319 + 9 bytes
child_sub_main(int 0x) line 5447 + 9 bytes
child_main(int 0x) line 5514 + 9 bytes
MSVCRTD! 1020bf53()
KERNEL32! 77f04ee8()


Previous Comments:


[2001-08-20 04:19:22] [EMAIL PROTECTED]

Apache/1.3.19 (Win32) PHP/4.0.7-dev rus/PL30.4
Win32 TS Debug build, only compiled-in modules.

any php scripts (i.e. ? php_info(); ?)

send_php:
if (AP(in_request)) {
zend_file_handle fh;

fh.filename = r-filename;
fh.opened_path = NULL;
fh.free_filename = 0;
fh.type = ZEND_HANDLE_FILENAME;
   zend_execute_scripts(ZEND_INCLUDE TSRMLS_CC, 1, fh);
return OK;
}
we falling into this branch and CG struct isn't initialized since will initialize 
further in this function.






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


-- 
PHP Development Mailing List http://www.php.net/
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] Anybody tested the Apache module recently?

2001-08-27 Thread Vladislav V. Kornienko

   Hello!

Zeev Suraski wrote:

 IIS and Apache, roughly 50/50...
 
 At 23:07 26-08-01, Adam Dickmeiss wrote:
 
 Zeev,

 how do you test before commit? I mean, what web server do you use
 for development?

   So can you say something about this report: 
http://www.php.net/bugs.php?id=12853

   All worked with june version and probably july, then when I want to 
use new function get_defined_constants, I found that it has bug and try 
to get the latest version of sources and found out that latest version 
and at least 4.0.7 RC1 didn't work at all with Apache as module.


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12966: Problems PHP/INGRES

2001-08-27 Thread thierry . pinon

From: [EMAIL PROTECTED]
Operating system: System HP-UX dev2 B.11.00 A 
PHP version:  4.0.5
PHP Bug Type: *Database Functions
Bug description:  Problems PHP/INGRES 

When a ingres_fetch_array is done without FLAG, the result is not ok.

Constantes II_NUM, II_ASSOC et II_BOTH are not known by PHP.
We must use 1,2,3 in the fetch function to avoid this problem.

Example with this small script :

?php
print Without FLAG (Suppose to be II_BOTH by défaut)br;
$comm = ingres_connect(dtm, pmm, pmm01);
ingres_query(select cplan,vlongarti,vhautarti from p301dimec WHERE
cplan='2247620', $comm);
$result = ingres_fetch_array($comm);
print var_dump($result);
print br;
ingres_close($comm);

$comm = ingres_connect('nart', 'pmm', 'pmm01');
ingres_query(select crefart,nordart,nvlogart from o101comb WHERE
crefart='210', $comm);
$result = ingres_fetch_array($comm);
print var_dump($result);
print brbr;

print With FLAG = 1 (II_ASSOC)br;
$comm = ingres_connect(dtm, pmm, pmm01);
ingres_query(select cplan,vlongarti,vhautarti from p301dimec WHERE
cplan='2247620', $comm);
$result = ingres_fetch_array(1,$comm);
print var_dump($result);
print br;
ingres_close($comm);

$comm = ingres_connect('nart', 'pmm', 'pmm01');
ingres_query(select crefart,nordart,nvlogart from o101comb WHERE
crefart='210', $comm);
$result = ingres_fetch_array(1,$comm);
print var_dump($result);
print brbr;

print With FLAG = 2 (II_NUM)br;
$comm = ingres_connect(dtm, pmm, pmm01);
ingres_query(select cplan,vlongarti,vhautarti from p301dimec WHERE
cplan='2247620', $comm);
$result = ingres_fetch_array(2,$comm);
print var_dump($result);
print br;
ingres_close($comm);

$comm = ingres_connect('nart', 'pmm', 'pmm01');
ingres_query(select crefart,nordart,nvlogart from o101comb WHERE
crefart='210', $comm);
$result = ingres_fetch_array(2,$comm);
print var_dump($result);
print brbr;

print With FLAG = 3 (II_BOTH)br;
$comm = ingres_connect(dtm, pmm, pmm01);
ingres_query(select cplan,vlongarti,vhautarti from p301dimec WHERE
cplan='2247620', $comm);
$result = ingres_fetch_array(3,$comm);
print var_dump($result);
print br;
ingres_close($comm);

$comm = ingres_connect('nart', 'pmm', 'pmm01');
ingres_query(select crefart,nordart,nvlogart from o101comb WHERE
crefart='210', $comm);
$result = ingres_fetch_array(3,$comm);
print var_dump($result);
print brbr;

?

Results are :

Without FLAG (Suppose to be II_BOTH by défaut)
array(3) { [cplan]= string(7) 2247620 [vlongarti]= float(0)
[vhautarti]= float(145) } 
array(3) { [1]= string(7) 210 [2]= string(5) 2 [3]=
string(1) 1 } 

As you can see above, first array is only associative and second is only
numeric.
See the other case :

With FLAG = 1 (II_ASSOC)
array(3) { [cplan]= string(7) 2247620 [vlongarti]= float(0)
[vhautarti]= float(145) } 
array(3) { [crefart]= string(7) 210 [nordart]= string(5)
2 [nvlogart]= string(1) 1 } 

With FLAG = 2 (II_NUM)
array(3) { [1]= string(7) 2247620 [2]= float(0) [3]= float(145) } 
array(3) { [1]= string(7) 210 [2]= string(5) 2 [3]=
string(1) 1 } 

With FLAG = 3 (II_BOTH)
array(6) { [1]= string(7) 2247620 [cplan]= string(7) 2247620
[2]=
float(0) [vlongarti]= float(0) [3]= float(145) [vhautarti]=
float(145) } 
array(6) { [1]= string(7) 210 [crefart]= string(7) 210
[2]= string(5) 2 [nordart]= string(5) 2 [3]= string(1)
1
[nvlogart]= string(1) 1 } 

Thanks...


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


-- 
PHP Development Mailing List http://www.php.net/
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] for the php-gtk people

2001-08-27 Thread Marc Boeren


  I've been looking at crossplatform gui-development, and 
  one of the 
  things that is easily found is the wxWindows tools 
 (www.wxwindows.org).
  
  This looks to be sort of the same as php-gtk, but it does 
 windows, motif
  os/2 and mac as well (aside from gtk).
 
 What do you mean by aside from gtk?

That it not only supports gtk, but the others as well (natively).

 Gtk+ is also cross-platform: Windows, BeOS, Unix, and soon Mac OS X.

That's right, but wxWin does native win/mac/gtk api... and 
you still have the choice of developing for the gtk version, 
and then using the x-platform capabilities of gtk... but you 
can also choose to use the native os api.
I also know that wxWindows abstract a lot of things besides 
the gui, like threads, sockets and stuff. Does gtk have this as well?

 Personally, I never found Motif look appealing...

Well, neither do I, but they chose to support it... ;)

  There exists wxPython and wxPerl... why not wxPHP? 
  Any thoughts from the php-gtk people?
 
 I guess I need to know what you are asking before giving a 
 meaningful reply.
 
I was not really asking, just for some thoughts on the 
subject. What I am curious about, is how do the capabilities 
of wxwindows and gtk+ compare to each other. What are the 
strong points of one versus the other (aside from the 
os-native lookandfeel versus gtk-lookandfeel, which is a 
matter of taste (and I like native lookandfeel better))?
How do applications developed with gtk+ for a windows 
platform handle drag-and-drop from/to other programs? Are 
there installtion issues (with wxwin you don't need a 
complete set of common controls, just a lib with the 
wrappers, with gtk+, you must install the win-version of the 
gtk on the machine as well)
 
One of the questions that could be useful: Is there room for 
two such projects, php-gtk and wxphp?

Cheerio, Marc.

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12967: Problem with Oracle and LONG Datatype

2001-08-27 Thread yannbarrault

From: [EMAIL PROTECTED]
Operating system: Windows98
PHP version:  4.0.5
PHP Bug Type: Unknown/Other Function
Bug description:  Problem with Oracle and LONG Datatype

Hello!

I use datatype LONG in Oracle8 and It doesn't works:

?
$conn = Ora_Logon(scott,tiger);
$curs = ora_open($conn);
$queryauto=sprintf(select * from POLYGONE);
ora_parse($curs,$queryauto);
ora_exec($curs);
while(ora_fetch($curs)){
  $i = ora_getcolumn($curs,1);
  $j = ora_getcolumn($curs,4);
  echo $i , $j.br;
}
?

It works when datatype is varchar2.
I have not any error message. It's like $j is empty?

Sorry about my english, thanks ;)
-- 
Edit bug report at: http://bugs.php.net/?id=12967edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12968: Session don't store after header(Location: ...)

2001-08-27 Thread tthiery

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.0.6
PHP Bug Type: Session related
Bug description:  Session don't store after header(Location: ...)

System:
Linux
PHP 4.06
Apache 1.3.19
mySQL 3.23.38

side1.php
  session_start();
  session_register(var1);
  Header(location:page2.php);
 
side2.php
  session_start();
  session_is_register(logon) returns false;

I check the mySQL logs (i have a personal written session_handler, which
works fine under a lot of different systems with mySQL) and see following
problem

side1.php: SELECT * FROM Session WHERE SessionID ...
 script queries from side1.php
side2.php: SELECT * FROM Session WHERE SessionID ...
side1.php: UPDATE Session SET ... WHERE SessionID ...
 script queries from side2.php
side2.php: UPDATE Session Set ... WHERE SessionID 

instead of the normal: 

side1.php: SELECT * FROM Session WHERE SessionID ...
 script queries from side1.php
side1.php: UPDATE Session SET ... WHERE SessionID ...
side2.php: SELECT * FROM Session WHERE SessionID ...
 script queries from side2.php
side2.php: UPDATE Session Set ... WHERE SessionID 

i think the problem is that the header(Location: ...) works so fast over
the intranet network, that my old developer machine isn't fast enaugh to
handle the script SQL statement, before the new site request reach another
process of the apache and query the session table.
the problem is that the buffer is flushed before the session related
operations are done

What can i do against this behavior?
thanx

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


-- 
PHP Development Mailing List http://www.php.net/
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: [Zend Engine 2] Re: [PHP-DEV] API Thoughts?

2001-08-27 Thread Harald Radi

uups, i wanted to post this to the dev-list.

 -Original Message-
 From: Harald Radi [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, August 27, 2001 11:33 AM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: [Zend Engine 2] Re: [PHP-DEV] API Thoughts?
 
 
  I'd prefer to code the OO wrapper in
  PHP -- it stops me from having to be aware of changes 
 to the Zend
 OO
  model and writing code that works with both the functional
 interface
  and the OO interface (some form of automatic handling of this
 would
  be a very cool/useful feature for Zend, imho).
 
 writing an oo wrapper for your functional interface in c 
 won't be a big deal and other extensions would benefit from 
 it as they could return adt-types in a oo way which they 
 can't with your attempt. they would have to create a PEAR 
 wrapper around the existing resource they get, which looks 
 quite messy.
 
 if the only reason against this is, that you don't wan't to 
 deal with zends oo api, i'd write a lean wrapper for your 
 functions as it is really no work.
 
 harald.
 
 ps.: this would be another reason for your first suggestion, 
 as only tree_insert(), tree_remove(), .. need to be wrapped 
 and not all those avl_*(), rb_*(), ..
 
 


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] ODBC-timing issues

2001-08-27 Thread Bruin, Bolke de

Hi,


(I hope it's the right lists for this)

We're running PHP 4.0.6 on IIS 4.0 as ISAPI module with no trouble so far
in production on a fairly busy website. Though when our database gets
heavily loaded
the script produces an error with server appears not to be available.
ASP on the same server do not end with such an error.

I scanned the PHP.INI file for settings which could change this behaviour
and to wait
for a connection somewhat longer, but no such luck.

I would like to know if there is a workaround for this and otherwise I would
like to file
it as a bugreport.

If you're wondering where the scripts live

http://www.eurobench.com/guru2.asp

has the applet which request stockquotes and newsheadlines from the
PHP-scripts.
The scripts itself are on 

http://services.eurobench.nl/guru/

try index.php?uid=1001

for an example

thx in advance
Bolke de Bruin

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12969: No output with %V

2001-08-27 Thread TSA

From: [EMAIL PROTECTED]
Operating system: Win95
PHP version:  4.0.6
PHP Bug Type: Date/time related
Bug description:  No output with %V

(Ops, forgot to read the guidelines, so I added this comment to
http://php.net/manual/en/function.strftime.php;, please delete it)


%V in strftime doesn't seem to give any result?

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


-- 
PHP Development Mailing List http://www.php.net/
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] A couple of session issues

2001-08-27 Thread Thies C. Arntzen

On 27 Aug 2001 01:33:46 +0300, Zeev Suraski wrote:
 The other issue is a suggestion I want to pitch - right now, if sessions 
 are started after the headers are already sent, we'll get a nice 
 headers-already-sent error.  If we have trans_sid enabled (which we will 
 most probably, from now on) - we can check whether the headers are already 
 sent, and if they are, move to use trans_sid instead.  Any comments?
 
i tend not to do that. trans-sid is a very different thing from cookies 
(session id's are populated to foreign-sites via HTTP_REFERRER). i don't think 
we should default to it. developers should decide themself if they want trans-sid
or not.

re,
tc



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12969 Updated: No output with %V

2001-08-27 Thread sniper

ID: 12969
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Analyzed
Old Bug Type: Date/time related
Bug Type: Feature/Change Request
Operating System: Win95
PHP Version: 4.0.6
New Comment:

So your OS doesn't support it. It has been mentioned
in the manual. The note should be bit bigger maybe. :)

Anyway, reclassified as Feature request.
We should have our own functions to provide these
if OS doesn't have the support.

--Jani


Previous Comments:


[2001-08-27 05:46:05] [EMAIL PROTECTED]

(Ops, forgot to read the guidelines, so I added this comment to 
http://php.net/manual/en/function.strftime.php;, please delete it)


%V in strftime doesn't seem to give any result?






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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12971: configure: error: libjpeg not found!

2001-08-27 Thread matteo . redaelli

From: [EMAIL PROTECTED]
Operating system: HP-11
PHP version:  4.0.6
PHP Bug Type: Compile Failure
Bug description:  configure: error: libjpeg not found!

*
With the standard make and yacc I had other problems so now I use bison and
gmake.

export MAKE=/opt/make/bin/gmake

CC=cc -Ae CXX=aCC ./configure --prefix=/apps/WEB/php
--with-oci8=/oracle/PIRELLI/app/oracle/product/8.0.5
--with-apxs=/apps/WEB/apache/bin/apxs --with-gd=/opt/gd
--with-zlib-dir=/opt/zlib --with-freetype-dir=/opt/freetype2
--without-mysql --with-xpm-dir=/opt/xpm --with-png-dir=/opt/libpng
--with-jpeg-dir=/opt/jpeg-6

configure: error: libjpeg not found!

**
BUT I have the libs:

bonnie.root./ $ ls /opt/jpeg-6/lib
libjpeg.a   libjpeg.la  libjpeg.sl

*
My config.log is:

configure:17801: cc -Ae -o conftest -g  -DHPUX11 -D_HPUX_SOURCE
-DUSE_HSREGEX -D
USE_EXPAT  -L/opt/zlib/lib -L/opt/zlib/lib conftest.c -ljpeg
  -L/opt/jpeg-6/lib
 -lz -lcrypt -lm -lnsl  15
/usr/ccs/bin/ld: Can't find library: jpeg
configure: failed program was:
#line 17790 configure
#include confdefs.h
/* Override any gcc2 internal prototype to avoid an error.  */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply.  */
char jpeg_read_header();

**
In /opt I've installed all the necessary libraries that I've downloaded
from http://hpux.connect.org.uk/hppd/search.html:
/apps/WEB/sw/binutils-2.11.2-sd-11.00.depot
/apps/WEB/sw/bison-1.28-sd-11.00.depot
/apps/WEB/sw/gcc-3.0.1-sd-11.00.depot
/apps/WEB/sw/gd-1.8.4-sd-11.00.depot
/apps/WEB/sw/jpeg-6b-sd-11.00.depot
/apps/WEB/sw/libpng-1.0.11-sd-11.00.depot
/apps/WEB/sw/make-3.79.1-sd-11.00.depot
/apps/WEB/sw/binutils-2.11.2-sd-11.00.depot
/apps/WEB/sw/bison-1.28-sd-11.00.depot
/apps/WEB/sw/gcc-3.0.1-sd-11.00.depot
/apps/WEB/sw/gd-1.8.4-sd-11.00.depot
/apps/WEB/sw/jpeg-6b-sd-11.00.depot
/apps/WEB/sw/libpng-1.0.11-sd-11.00.depot
/apps/WEB/sw/make-3.79.1-sd-11.00.depot
/apps/WEB/sw/perl-5.6.1-sd-11.00.depot
/apps/WEB/sw/xpm-3.4k-sd-11.00.depot
/apps/WEB/sw/zlib-1.1.3-sd-11.00.depot
/apps/WEB/sw/xpm-3.4k-sd-11.00.depot

***
If I do not include the library in the ./configure options I have 

configure: error: libpng not found!

*
No configure errors with GCC but:

I tried with gcc but I have other problems (see bug id.12842) that is still
opened.

Can anyone help me please? Thanks in advance
-- 
Edit bug report at: http://bugs.php.net/?id=12971edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12972: is_file() sends errors to error log

2001-08-27 Thread advgraph

From: [EMAIL PROTECTED]
Operating system: Redhat 6.2
PHP version:  4.0.5
PHP Bug Type: Filesystem function related
Bug description:  is_file() sends errors to error log

when using the is_file function and a file is not found an error is sent
back to the error log.  I expect this simply to return false in this case. 
I am aware of file_exists, however in the manual:

 Returns true if the filename exists and is a regular file.

Therefore I expect this to also be testing for file existence.  I do not
expect debugging output leading me to have to use @is_file and possibly
miss other crucial error output.
-- 
Edit bug report at: http://bugs.php.net/?id=12972edit=1


-- 
PHP Development Mailing List http://www.php.net/
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] RE: [PHP-DEV] Question about PDF lib.

2001-08-27 Thread By Proxy

Try http://groups.yahoo.com/pdflib/

- Original Message -
From: Criegern, Phillipp von (PDV) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, August 27, 2001 6:12 PM
Subject: [PHP] RE: [PHP-DEV] Question about PDF lib.


 I would suggest looking for a real *Support Forum* or
http://www.pdflib.com/

 Do anyone know, how i define the width, height etc. parameters in
 PDFlib
 functions in PHP? Is it in cm, pixels, inch? Or?

 --
 PHP General Mailing List (http://www.php.net/)
 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 http://www.php.net/
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] API Thoughts?

2001-08-27 Thread Martin Jansen

On Mon, 27 Aug 2001 00:29:26 -0400 (EDT), Sterling Hughes wrote:

The current way I have it organized is as follows:

php4/pear/ADT.php
php4/pear/ADT/LList.php
php4/pear/ADT/Stack.php
php4/pear/ADT/Queue.php
php4/pear/ADT/AVLtree.php
php4/pear/ADT/BTree.php
php4/pear/ADT/RBTree.php
php4/pear/ADT/Heap.php
php4/pear/ADT/Set.php

Just a sidenote: All new contributions to PEAR have to be commited
to /pear, not to /php4/pear (this directory is only there until the
PEAR infrastructure is running).

- Martin



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12973: Ocicolumnsize bug in NUMBER field

2001-08-27 Thread tomersh

From: [EMAIL PROTECTED]
Operating system: Hp-Ux11
PHP version:  4.0.6
PHP Bug Type: OCI8 related
Bug description:  Ocicolumnsize bug in NUMBER field

When using 
$colsize[$i]=Ocicolumnsize($stmt,$i);
while $i is a loop var and $stmt is an sql statement
the return value for each field differ than NUMBER
is the actual correct size.In case of NUMBER type the return value is
somehow 22. 

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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12974: some curl bugs found patched

2001-08-27 Thread root

From: [EMAIL PROTECTED]
Operating system: freebsd
PHP version:  4.0.6
PHP Bug Type: cURL related
Bug description:  some curl bugs found  patched

i have found  patched php interface functions to curl.
i have no time to commit it to cvs, so here's the diff:

--- curl.c.orig Mon Aug 27 15:51:37 2001
+++ curl.c  Mon Aug 27 15:42:13 2001
@@ -488,6 +488,10 @@
alloc_curl_handle(ch);
 
ch-cp = curl_easy_init();
+
+   memset(ch-err.str, 0, sizeof(ch-err.str));
+   ch-err.no = 0;
+
if (! ch-cp) {
php_error(E_WARNING, Cannot initialize a new cURL
handle);
RETURN_FALSE;
@@ -526,7 +530,7 @@
   **zoption, 
   **zvalue;
php_curl*ch;
-   CURLcode error;
+   CURLcode error = 0;
int  option;
 
if (ZEND_NUM_ARGS() != 3 ||
@@ -633,6 +637,7 @@
convert_to_long_ex(zvalue);
 
ch-handlers-write-type = PHP_CURL_BINARY;
+   break;
case CURLOPT_WRITEFUNCTION:
zval_add_ref(zvalue);
ch-handlers-write-func = *zvalue;

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


-- 
PHP Development Mailing List http://www.php.net/
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] A couple of session issues

2001-08-27 Thread Zeev Suraski

At 13:40 27-08-01, Thies C. Arntzen wrote:
On 27 Aug 2001 01:33:46 +0300, Zeev Suraski wrote:
  The other issue is a suggestion I want to pitch - right now, if sessions
  are started after the headers are already sent, we'll get a nice
  headers-already-sent error.  If we have trans_sid enabled (which we will
  most probably, from now on) - we can check whether the headers are already
  sent, and if they are, move to use trans_sid instead.  Any comments?
 
i tend not to do that. trans-sid is a very different thing from cookies
(session id's are populated to foreign-sites via HTTP_REFERRER). i don't 
think
we should default to it. developers should decide themself if they want 
trans-sid
or not.

You lost your caps too? :)

I'm not sure what you meant in the HTTP_REFERRER issue - can you explain 
it?  At any rate, developers still can decide whether or not they want 
trans_sid, by using the existing php.ini setting.

Zeev


-- 
PHP Development Mailing List http://www.php.net/
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: Bug #12944 Updated: new date() and getdate() feature

2001-08-27 Thread repe

[EMAIL PROTECTED] wrote in [EMAIL PROTECTED]:

 ID: 12944
 Updated by: derick
 Reported By: [EMAIL PROTECTED]
 Status: Open
 Bug Type: Feature/Change Request
 Operating System: linux redhat 7.0
 PHP Version: 4.0.4pl1
 New Comment:
 
 strftime already supports this: (from the manual notes):
 
 Week number:
 print strftime(%W);
 
ISO week is %V, not all compiler libraries support this (at least
Microsoft 6 does not, gcc does).

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12894 Updated: GD crashes PHP by using GD Format

2001-08-27 Thread alberty

ID: 12894
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: GD related
Operating System: i686-pc-linux-gnu
PHP Version: 4.0.7-dev (latest CVS)
New Comment:

Hi Jani,

here is the backtrace of the second script:

Program received signal SIGSEGV, Segmentation fault.
0x40411786 in gd_module_entry () from /usr/local/apache/current/libexec/libphp4.so
(gdb) bt
#0  0x40411786 in gd_module_entry () from /usr/local/apache/current/libexec/libphp4.so
(gdb) 

the script fails only if you call ImagePNG after the ImageCreateFromGD.

Also ImageGD2 creates corrupted files, but this is another bug ...


Regards,

-- 
Steve

Previous Comments:


[2001-08-22 13:04:34] [EMAIL PROTECTED]

I can't get your scripts to crash.
Could you please generate a GDB backtrace of the crash?

--Jani




[2001-08-22 12:13:54] [EMAIL PROTECTED]

Sorry, my submitted PHP Version was wrong. I mean 4.0.7-dev from the latest CVS.

The script crash under cvs version.

Regards,

Steve



[2001-08-22 10:57:00] [EMAIL PROTECTED]

I doubt that you could crash PHP by using functions
that don't exist..

Both imageGD2 and ImageCreateFromGD where added
AFTER PHP 4.0.6 was released. So they are only
available in the CVS.

And with the latest CVS version, both of your
scripts work just fine.

--Jani




[2001-08-22 09:20:30] [EMAIL PROTECTED]

Hi,

the follow 2 different scripts using ImageCreateFromGD  ImageGD2
and crashes PHP.

(using gd2.0.1 and 4.0.6)

?php
$im_main=ImageCreateFromPNG(./images/some_picture.png);

ImageGD2($im_main,./images/some_picture.gd2);

ImageDestroy($im_main);
?

// the gd image is created with pngtogd from the gd lib package.

?php
$im_main=ImageCreateFromGD(./images/some_picture.gd);
ImagePNG($im_main,./images/some_picture.png);
ImageDestroy($im_main);
?

Regards,

-- 
Steve





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


-- 
PHP Development Mailing List http://www.php.net/
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] A couple of session issues

2001-08-27 Thread teo

Hi Zeev!
On Mon, 27 Aug 2001, Zeev Suraski wrote:

 At 13:40 27-08-01, Thies C. Arntzen wrote:
 On 27 Aug 2001 01:33:46 +0300, Zeev Suraski wrote:
   The other issue is a suggestion I want to pitch - right now, if sessions
   are started after the headers are already sent, we'll get a nice
   headers-already-sent error.  If we have trans_sid enabled (which we will
   most probably, from now on) - we can check whether the headers are already
   sent, and if they are, move to use trans_sid instead.  Any comments?
  
 i tend not to do that. trans-sid is a very different thing from cookies
 (session id's are populated to foreign-sites via HTTP_REFERRER). i don't 
 think
 we should default to it. developers should decide themself if they want 
 trans-sid
 or not.
 
 You lost your caps too? :)
 
 I'm not sure what you meant in the HTTP_REFERRER issue - can you explain 

I guess if I am in a page generated by
http://www.example.com/foo/bar.php?SID=32x[0-f]

and in this page, there is a link to www.foo.com/malicious.php

malicious.php will see in HTTP_REFERER what is your SID.

-- teodor

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] [PATCH] ext/gettext adding *ngettext functions

2001-08-27 Thread Walter Franzini


Hi all,

I have added to ext/gettext the wrapper needed to support *ngettext
functions, you can find the patch below.

Ciao
-- 
Walter Franzini, e-mail: [EMAIL PROTECTED]
SysNet, Via Digione 8, 27100 Pavia - Italy

diff -aur php-4.0.6.ORIG/ext/gettext/gettext.c 
php-4.0.6+gettext-patch/ext/gettext/gettext.c
--- php-4.0.6.ORIG/ext/gettext/gettext.cThu May 24 14:41:51 2001
+++ php-4.0.6+gettext-patch/ext/gettext/gettext.c   Sun Aug 26 18:13:42 2001
@@ -38,6 +38,9 @@
PHP_FE(dgettext,NULL)
PHP_FE(dcgettext,   NULL)
PHP_FE(bindtextdomain,  NULL)
+PHP_FE(ngettext,NULL)
+PHP_FE(dngettext,   NULL)
+PHP_FE(dcngettext,  NULL)
 {NULL, NULL, NULL}
 };
 
@@ -165,6 +168,97 @@
RETURN_STRING(retval, 1);
 }
 /* }}} */
+
+/* {{{ proto string ngettext(string MSGID1, string MSGID2, int N)
+   The `ngettext' function is similar to the `gettext' function as it finds the 
+message catalogs in the same way.  But it takes two extra arguments.  The MSGID1 
+parameter must contain the singular form of the string to be converted.  It is also 
+used as the key for the search in the catalog.  The MSGID2 parameter is the plural 
+form.  The parameter N is used to determine the plural form.  If no message catalog 
+is found MSGID1 is returned if `n == 1', otherwise `msgid2'.
+*/
+PHP_FUNCTION (ngettext)
+{
+pval **msgid1, **msgid2, **count;
+char *msgstr;
+
+RETVAL_FALSE;
+
+if (3 != ZEND_NUM_ARGS ()
+|| FAILURE == zend_get_parameters_ex (3, msgid1, msgid2, count)) {
+WRONG_PARAM_COUNT;
+} else {
+convert_to_string_ex (msgid1);
+convert_to_string_ex (msgid2);
+convert_to_long_ex (count);
+
+msgstr = ngettext ((*msgid1)-value.str.val, (*msgid2)-value.str.val,
+   (*count)-value.lval);
+if (msgstr) {
+RETVAL_STRING (msgstr, 1);
+}
+}
+}
+/* }}} */
+
+/* {{{ proto string dngettext (string domain, string msgid1, string msgid2,
+long count)
+   The `dngettext' is similar to the `dgettext' function in the way the message 
+catalog is selected.  The difference is that it takes two extra parameter to provide 
+the correct plural form.  These two parameters are handled in the same way `ngettext' 
+handles them.
+ */
+PHP_FUNCTION(dngettext)
+{
+pval **domain, **msgid1, **msgid2, **count;
+
+RETVAL_FALSE;
+
+if (4 != ZEND_NUM_ARGS ()
+|| FAILURE == zend_get_parameters_ex (4, domain, msgid1, msgid2, 
+ count)) {
+WRONG_PARAM_COUNT;
+} else {
+char *msgstr;
+
+convert_to_string_ex (domain);
+convert_to_string_ex (msgid1);
+convert_to_string_ex (msgid2);
+convert_to_long_ex (count);
+
+msgstr = dngettext ((*domain)-value.str.val, (*msgid1)-value.str.val,
+(*msgid2)-value.str.val, (*count)-value.lval);
+if (msgstr) {
+RETVAL_STRING (msgstr, 1);
+}
+}
+}
+/* }}} */
+
+/* {{{ proto string dcngettext (string domain, string msgid1, string msgid2,
+long n, int category)
+   The `dcngettext' is similar to the `dcgettext' function in the way the message 
+catalog is selected.  The difference is that it takes two extra parameter to provide 
+the correct plural form.  These two parameters are handled in the same way `ngettext' 
+handles them.
+*/
+PHP_FUNCTION(dcngettext)
+{
+pval **domain, **msgid1, **msgid2, **count, **category;
+
+RETVAL_FALSE;
+
+if (5 != ZEND_NUM_ARGS ()
+|| FAILURE == zend_get_parameters_ex (4, domain, msgid1, msgid2, 
+  count, category)) {
+
+} else {
+char* msgstr=NULL;
+
+convert_to_string_ex (domain);
+convert_to_string_ex (msgid1);
+convert_to_string_ex (msgid2);
+convert_to_long_ex (count);
+convert_to_long_ex (category);
+
+msgstr = dcngettext ((*domain)-value.str.val, (*msgid1)-value.str.val,
+ (*msgid2)-value.str.val, (*count)-value.lval,
+ (*category)-value.lval);
+
+if (msgstr) {
+RETVAL_STRING (msgstr, 1);
+}
+}
+}
 
 #endif /* HAVE_LIBINTL */
 
Only in php-4.0.6+gettext-patch/ext/gettext/: libs.mk
diff -aur php-4.0.6.ORIG/ext/gettext/php_gettext.h 
php-4.0.6+gettext-patch/ext/gettext/php_gettext.h
--- php-4.0.6.ORIG/ext/gettext/php_gettext.hMon Feb 26 19:14:28 2001
+++ php-4.0.6+gettext-patch/ext/gettext/php_gettext.h   Sun Aug 26 17:16:32 2001
@@ -36,6 +36,9 @@
 PHP_FUNCTION(dgettext);
 PHP_FUNCTION(dcgettext);
 PHP_FUNCTION(bindtextdomain);
+PHP_FUNCTION(ngettext);
+PHP_FUNCTION(dngettext);
+PHP_FUNCTION(dcngettext);
 
 #else
 #define gettext_module_ptr NULL
Only in 

[PHP-DEV] Bug #12975: Unable to load dynamic library 'd:\applications\php\extensions\php_oci8.dll' -

2001-08-27 Thread pbabilotte

From: [EMAIL PROTECTED]
Operating system: Windows 2000 Server
PHP version:  4.0.6
PHP Bug Type: IIS related
Bug description:  Unable to load dynamic library 
'd:\applications\php\extensions\php_oci8.dll' - 

I install PHP 4.0.6 with IIS 5 and it did install find.
I did modify my php.ini.
I did create a test page and then it says :

Unable to load dynamic library
'd:\applications\php\extensions\php_oci8.dll' - The specified module could
not be found

And it write the same thing on my server

I have installed php on : d:\applications\php and the extension are located
on d:\applications\php\extensions

I have double check the extension_dir

What do i have to do to make it works???

Thanks

Philippe BABILOTTE

What do i have to do
-- 
Edit bug report at: http://bugs.php.net/?id=12975edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12977: Unable to load dynamic library 'd:\applications\php\extensions\php_oci8.dll' -

2001-08-27 Thread pbabilotte

From: [EMAIL PROTECTED]
Operating system: WINDOWS 2000 + iis 5
PHP version:  4.0.6
PHP Bug Type: OCI8 related
Bug description:  Unable to load dynamic library 
'd:\applications\php\extensions\php_oci8.dll' -

I install PHP 4.0.6 with IIS 5 and it did install find.
I did modify my php.ini.
I did create a test page and then it says :

Unable to load dynamic library
'd:\applications\php\extensions\php_oci8.dll' - The specified module
could
not be found

And it write the same thing on my server

I have installed php on : d:\applications\php and the extension are
located
on d:\applications\php\extensions

I have double check the extension_dir

What do i have to do to make it works???

Thanks

Philippe BABILOTTE

What do i have to do

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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12978: Multiple isset

2001-08-27 Thread wico

From: [EMAIL PROTECTED]
Operating system: linux
PHP version:  4.0.6
PHP Bug Type: Feature/Change Request
Bug description:  Multiple isset

Hiya,

I'd like to see that isset would take more parameters to test
like:

$a = $b = $c = 1 ;

if (isset($a)) echo isset; // TRUE
if (isset($a, $b, $c)) echo isset; // TRUE
if (isset($a,$b,$d)) echo isset; // FALSE

you will get my point i guess

Greetz,

Wico
-- 
Edit bug report at: http://bugs.php.net/?id=12978edit=1


-- 
PHP Development Mailing List http://www.php.net/
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] for the php-gtk people

2001-08-27 Thread Markus Fischer

On Mon, Aug 27, 2001 at 11:28:52AM +0200, Marc Boeren wrote : 
   There exists wxPython and wxPerl... why not wxPHP? 
   Any thoughts from the php-gtk people?
  
  I guess I need to know what you are asking before giving a 
  meaningful reply.
  
 I was not really asking, just for some thoughts on the 
 subject. What I am curious about, is how do the capabilities 
 of wxwindows and gtk+ compare to each other. What are the 
 strong points of one versus the other (aside from the 
 os-native lookandfeel versus gtk-lookandfeel, which is a 

I suggest you find out yourself and based on those findings start
the wxPHP project (or not ;).

 One of the questions that could be useful: Is there room for 
 two such projects, php-gtk and wxphp?

This is a useless questions IMO: I guess if you'ld have asked any
PHP people before PHP-GTK was released if its useful, they'ld
have probably negated the answer. 

On the other hand, the answer is as easy as: Is there room for
two desktop projects (gnome, kde)?

Or better: is there a need for Imlib2 when there is GD? Most use
GD but some prefer Imlib2.

People'll probably find answers leading to a 'no' too ;) But I
can't find one right now.

- Markus

-- 
PHP Development Mailing List http://www.php.net/
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] API Thoughts?

2001-08-27 Thread Chuck Hagenbuch

Alright. I think I've stated this before, but, just so everyone knows: I'm 
gonna kick and scream whenever I think something is being done for expediency 
and it's the wrong thing to do from a design/engineering perspective. You're 
probably all gonna hate me, but someone has to do it.

Quoting Sterling Hughes [EMAIL PROTECTED]:

 The above are imho pretty ugly, and this is meant as more of a language
 level feature, I'm thinking of using PEAR as more of a method of
 distribution than a mindset.

They are only ugly because we don't have namespaces in PHP. If we had 
namespaces, then your code example (which I'll comment on below) would be fine. 
But as is, the way you are organizing the code causes namespace pollution. This 
isn't something that we can stop end-user developers from doing, but if we 
don't strictly adhere to namespace standards in the code in PEAR, _no one_ will 
do it, and we will have a mess on our hands.

Some standards are only worth having if you enforce them. I think class naming 
is one of them.

 The current way I have it organized is as follows:
 
 php4/pear/ADT.php
 php4/pear/ADT/LList.php
 php4/pear/ADT/Stack.php
 php4/pear/ADT/Queue.php
 php4/pear/ADT/AVLtree.php
 php4/pear/ADT/BTree.php
 php4/pear/ADT/RBTree.php
 php4/pear/ADT/Heap.php
 php4/pear/ADT/Set.php

If you want the tree classes to share the same API - or even a subset of it, 
they _really_ should be subclasses of an ADT_Tree class.

 then you could do something like:
 
 ?php
 require_once('ADT/Queue.php');
 
 $sounds = new Queue;
[snip]

If you make that $sounds = new ADT_Queue(); ... then I'm happy.

(pet peeve: require_once and friends are statements. You don't need the 
parentheses.)

-chuck

--
Charles Hagenbuch, [EMAIL PROTECTED]
Some fallen angels have their good reasons.

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12979: Printing Problems

2001-08-27 Thread stephane . bonnet

From: [EMAIL PROTECTED]
Operating system: Win Nt 4 + Sp6
PHP version:  4.0.6
PHP Bug Type: Output Control
Bug description:  Printing Problems

My code 

?
$handle = printer_open(HP);
printer_start_doc($handle, My Document);
printer_start_page($handle);
for ($i=1;$i63;$i++)
{
printer_draw_text($handle, Line $i, 500, 50+$i*50);
$a=0;
}
printer_end_page($handle);
printer_end_doc($handle);
printer_close($handle);
?

The result :

The printer give print all the line except Line 17, Line 34 And line
51...
It's very strange !!! 


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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12972 Updated: is_file() sends errors to error log

2001-08-27 Thread mfischer

ID: 12972
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Filesystem function related
Operating System: Redhat 6.2
PHP Version: 4.0.5
New Comment:

Wrong. You use file_exists() to first determine if something exists. The name is a bit 
misleading, you can verify existense of files, directories and links (read: any file 
type). file_exists() is written to _not_ output any error. Whereas the is_*() 
functions are for good reason.

So, if you don't want to use file_exists(), you need to use @is_*(). This is the 
expected behaviour.

- Markus

Previous Comments:


[2001-08-27 07:19:34] [EMAIL PROTECTED]

when using the is_file function and a file is not found an error is sent back to the 
error log.  I expect this simply to return false in this case.  I am aware of 
file_exists, however in the manual:

 Returns true if the filename exists and is a regular file.

Therefore I expect this to also be testing for file existence.  I do not expect 
debugging output leading me to have to use @is_file and possibly miss other crucial 
error output.





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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] contribute...

2001-08-27 Thread Robin Ericsson

Hi,


If I want to join the PHP project, and start to contribute code etc,
where is a good place to start?

Check bugs-database and start fixing bugs?



best regards
Robin



-- 
PHP Development Mailing List http://www.php.net/
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] API Thoughts?

2001-08-27 Thread Stig Sæther Bakken

[Sterling Hughes [EMAIL PROTECTED]]
 On Sun, 26 Aug 2001, Chuck Hagenbuch wrote:
 
  Quoting Sterling Hughes [EMAIL PROTECTED]:
 
   Jep -- I'm writing PEAR OO wrappers for every ADT that I implement
   in a functional manner.  I'm think for the OO wrappers, seperate
   class names wouldn't be horrible, something like:
  
   $tree = new AVLTree;
 
  Please stick to the naming conventions, which would make this:
 
  $tree = new ADT_Tree_AVL();
 
  ... or something similar. Also, you could easily have a factory method:
 
  $tree = ADT::factory('tree_avl');
 
  or:
 
  $tree = ADT_Tree::factory('avl');
 
 
 The above are imho pretty ugly, and this is meant as more of a language
 level feature, I'm thinking of using PEAR as more of a method of
 distribution than a mindset.  I'd prefer to code the OO wrapper in
 PHP -- it stops me from having to be aware of changes to the Zend OO
 model and writing code that works with both the functional interface
 and the OO interface (some form of automatic handling of this would
 be a very cool/useful feature for Zend, imho).
 
 The current way I have it organized is as follows:
 
 php4/pear/ADT.php
 php4/pear/ADT/LList.php
 php4/pear/ADT/Stack.php
 php4/pear/ADT/Queue.php
 php4/pear/ADT/AVLtree.php
 php4/pear/ADT/BTree.php
 php4/pear/ADT/RBTree.php
 php4/pear/ADT/Heap.php
 php4/pear/ADT/Set.php
 
 then you could do something like:
 
 ?php
 require_once('ADT/Queue.php');
 
 $sounds = new Queue;
 $sounds-push(Bing);
 $sounds-push(Bamm);
 $sounds-push(Booom);
 
 while ($sounds-count()  0) {
 echo $sounds-shift();
 }
 ?
 
 Which I think works quite nicely :)

PEAR's naming conventions applies to classes written in C too. :-)

The way you have your files organized above, the classes should be
named ADT_Queue and so on.

 - Stig

-- 
  Stig Sæther Bakken [EMAIL PROTECTED]
  Fast Search  Transfer ASA, Trondheim, Norway

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12972 Updated: is_file() sends errors to error log

2001-08-27 Thread chagenbu

ID: 12972
Updated by: chagenbu
Reported By: [EMAIL PROTECTED]
Status: Closed
Bug Type: Filesystem function related
Operating System: Redhat 6.2
PHP Version: 4.0.5
New Comment:

Actually, the last I checked, you _do_ need to use @file_exists() if you have error 
reporting all the way up to avoid error output. That surprised me.

Previous Comments:


[2001-08-27 10:48:15] [EMAIL PROTECTED]

Wrong. You use file_exists() to first determine if something exists. The name is a bit 
misleading, you can verify existense of files, directories and links (read: any file 
type). file_exists() is written to _not_ output any error. Whereas the is_*() 
functions are for good reason.

So, if you don't want to use file_exists(), you need to use @is_*(). This is the 
expected behaviour.

- Markus



[2001-08-27 07:19:34] [EMAIL PROTECTED]

when using the is_file function and a file is not found an error is sent back to the 
error log.  I expect this simply to return false in this case.  I am aware of 
file_exists, however in the manual:

 Returns true if the filename exists and is a regular file.

Therefore I expect this to also be testing for file existence.  I do not expect 
debugging output leading me to have to use @is_file and possibly miss other crucial 
error output.





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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12980: Date function()

2001-08-27 Thread c . tognetti

From: [EMAIL PROTECTED]
Operating system: WIN 32
PHP version:  4.0.6
PHP Bug Type: Date/time related
Bug description:  Date function()

The bug ID #6425 still occurs...
-- 
Edit bug report at: http://bugs.php.net/?id=12980edit=1


-- 
PHP Development Mailing List http://www.php.net/
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] contribute...

2001-08-27 Thread Jason Greene

Depends on what you want to do.
If you want to start with bug fixes:
1. subscribe to php-dev and php-qa
2. Go through bug db, fix a bug
3. Generate a patch off of latest CVS
4. Email patch to php-dev with [PATCH] in the subject

If you are developing new functionality perform steps 3 - 4.

After awhile you can request a CVS account.

-Jason


- Original Message - 
From: Robin Ericsson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 27, 2001 9:52 AM
Subject: [PHP-DEV] contribute...


 Hi,
 
 
 If I want to join the PHP project, and start to contribute code etc,
 where is a good place to start?
 
 Check bugs-database and start fixing bugs?
 
 
 
 best regards
 Robin
 
 
 
 -- 
 PHP Development Mailing List http://www.php.net/
 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 http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12972 Updated: is_file() sends errors to error log

2001-08-27 Thread mfischer

ID: 12972
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Status: Closed
Bug Type: Filesystem function related
Operating System: Redhat 6.2
PHP Version: 4.0.5
New Comment:

I don't know what your 'last' is, but current CVS doesn't output anything with 
file_exists():

mfischer@ficken:~$ php -q
? error_reporting(E_ALL); $bla = file_exists('sdahfw3gjkgsdgjksd'); var_dump($bla); 
?
bool(false)

No error outpout.

- Markus

Previous Comments:


[2001-08-27 10:53:27] [EMAIL PROTECTED]

Actually, the last I checked, you _do_ need to use @file_exists() if you have error 
reporting all the way up to avoid error output. That surprised me.



[2001-08-27 10:48:15] [EMAIL PROTECTED]

Wrong. You use file_exists() to first determine if something exists. The name is a bit 
misleading, you can verify existense of files, directories and links (read: any file 
type). file_exists() is written to _not_ output any error. Whereas the is_*() 
functions are for good reason.

So, if you don't want to use file_exists(), you need to use @is_*(). This is the 
expected behaviour.

- Markus



[2001-08-27 07:19:34] [EMAIL PROTECTED]

when using the is_file function and a file is not found an error is sent back to the 
error log.  I expect this simply to return false in this case.  I am aware of 
file_exists, however in the manual:

 Returns true if the filename exists and is a regular file.

Therefore I expect this to also be testing for file existence.  I do not expect 
debugging output leading me to have to use @is_file and possibly miss other crucial 
error output.





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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12966 Updated: Problems PHP/INGRES

2001-08-27 Thread sniper

ID: 12966
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Old Bug Type: *Database Functions
Bug Type: Documentation problem
Operating System: System HP-UX dev2 B.11.00 A
PHP Version: 4.0.5
New Comment:

You should use the constants: 

INGRES_ASSOC, INGRES_NUM, INGRES_BOTH

Documentation is fixed now. (might not show yet online)

Note: The first parameter given on your first example
is propably 1 as the connection resource number propably
is 1. To get it to use the default value, don't give
any parameters to ingres_fetch_array().


--Jani



Previous Comments:


[2001-08-27 05:06:47] [EMAIL PROTECTED]

When a ingres_fetch_array is done without FLAG, the result is not ok.

Constantes II_NUM, II_ASSOC et II_BOTH are not known by PHP.
We must use 1,2,3 in the fetch function to avoid this problem.

Example with this small script :

?php
print Without FLAG (Suppose to be II_BOTH by défaut)br;
$comm = ingres_connect(dtm, pmm, pmm01);
ingres_query(select cplan,vlongarti,vhautarti from p301dimec WHERE
cplan='2247620', $comm);
$result = ingres_fetch_array($comm);
print var_dump($result);
print br;
ingres_close($comm);

$comm = ingres_connect('nart', 'pmm', 'pmm01');
ingres_query(select crefart,nordart,nvlogart from o101comb WHERE
crefart='210', $comm);
$result = ingres_fetch_array($comm);
print var_dump($result);
print brbr;

print With FLAG = 1 (II_ASSOC)br;
$comm = ingres_connect(dtm, pmm, pmm01);
ingres_query(select cplan,vlongarti,vhautarti from p301dimec WHERE
cplan='2247620', $comm);
$result = ingres_fetch_array(1,$comm);
print var_dump($result);
print br;
ingres_close($comm);

$comm = ingres_connect('nart', 'pmm', 'pmm01');
ingres_query(select crefart,nordart,nvlogart from o101comb WHERE
crefart='210', $comm);
$result = ingres_fetch_array(1,$comm);
print var_dump($result);
print brbr;

print With FLAG = 2 (II_NUM)br;
$comm = ingres_connect(dtm, pmm, pmm01);
ingres_query(select cplan,vlongarti,vhautarti from p301dimec WHERE
cplan='2247620', $comm);
$result = ingres_fetch_array(2,$comm);
print var_dump($result);
print br;
ingres_close($comm);

$comm = ingres_connect('nart', 'pmm', 'pmm01');
ingres_query(select crefart,nordart,nvlogart from o101comb WHERE
crefart='210', $comm);
$result = ingres_fetch_array(2,$comm);
print var_dump($result);
print brbr;

print With FLAG = 3 (II_BOTH)br;
$comm = ingres_connect(dtm, pmm, pmm01);
ingres_query(select cplan,vlongarti,vhautarti from p301dimec WHERE
cplan='2247620', $comm);
$result = ingres_fetch_array(3,$comm);
print var_dump($result);
print br;
ingres_close($comm);

$comm = ingres_connect('nart', 'pmm', 'pmm01');
ingres_query(select crefart,nordart,nvlogart from o101comb WHERE
crefart='210', $comm);
$result = ingres_fetch_array(3,$comm);
print var_dump($result);
print brbr;

?

Results are :

Without FLAG (Suppose to be II_BOTH by défaut)
array(3) { [cplan]= string(7) 2247620 [vlongarti]= float(0)
[vhautarti]= float(145) } 
array(3) { [1]= string(7) 210 [2]= string(5) 2 [3]=
string(1) 1 } 

As you can see above, first array is only associative and second is only numeric.
See the other case :

With FLAG = 1 (II_ASSOC)
array(3) { [cplan]= string(7) 2247620 [vlongarti]= float(0)
[vhautarti]= float(145) } 
array(3) { [crefart]= string(7) 210 [nordart]= string(5)
2 [nvlogart]= string(1) 1 } 

With FLAG = 2 (II_NUM)
array(3) { [1]= string(7) 2247620 [2]= float(0) [3]= float(145) } 
array(3) { [1]= string(7) 210 [2]= string(5) 2 [3]=
string(1) 1 } 

With FLAG = 3 (II_BOTH)
array(6) { [1]= string(7) 2247620 [cplan]= string(7) 2247620 [2]=
float(0) [vlongarti]= float(0) [3]= float(145) [vhautarti]=
float(145) } 
array(6) { [1]= string(7) 210 [crefart]= string(7) 210
[2]= string(5) 2 [nordart]= string(5) 2 [3]= string(1) 1
[nvlogart]= string(1) 1 } 

Thanks...







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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12925 Updated: PHP could not pass binary string to COM

2001-08-27 Thread bin . yang

ID: 12925
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: COM related
Operating System: W2K pro
PHP Version: 4.0.6
New Comment:

found the problem in conversion.c


Previous Comments:


[2001-08-23 11:02:50] [EMAIL PROTECTED]

Here is the PHP code.

$bp = new COM(AG2.Beepoj) or die(Unable to instanciate);
$bp- bp(101,\x0\x0\xff);
unset($bp);

The other end is a COM object, the bp method defined as

STDMETHODIMP Cbeepoj::Bp(int iDuration, BSTR b_str)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState())

// TODO: Add your implementation code here
::Beep(523,iDuration);
if(wcslen(b_str)!=0) AfxMessageBox((CString)b_str);
else AfxMessageBox(null string.);
return S_OK;
}

If I use $bp- bp(101,11); I will get 11 displayed in a message box. 
However, If the input is
$bp- bp(101,\x0\x0\xff); The COM will say it is a
null string.






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


-- 
PHP Development Mailing List http://www.php.net/
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] A couple of session issues

2001-08-27 Thread Thies C. Arntzen

On 27 Aug 2001 15:25:09 +0300, Zeev Suraski wrote:
 At 13:40 27-08-01, Thies C. Arntzen wrote:
 On 27 Aug 2001 01:33:46 +0300, Zeev Suraski wrote:
   The other issue is a suggestion I want to pitch - right now, if sessions
   are started after the headers are already sent, we'll get a nice
   headers-already-sent error.  If we have trans_sid enabled (which we will
   most probably, from now on) - we can check whether the headers are already
   sent, and if they are, move to use trans_sid instead.  Any comments?
  
 i tend not to do that. trans-sid is a very different thing from cookies
 (session id's are populated to foreign-sites via HTTP_REFERRER). i don't 
 think
 we should default to it. developers should decide themself if they want 
 trans-sid
 or not.
 
 You lost your caps too? :)

some time ago already;-) didn't you notice? 

 
 I'm not sure what you meant in the HTTP_REFERRER issue - can you explain 
 it?  At any rate, developers still can decide whether or not they want 

if you are on a site that uses trans-sid for sessions the HTTP_REFERER
on the next visited site will contain your session-id.


 trans_sid, by using the existing php.ini setting.

makes sense - i just don't want a new  changed default behaviour of
PHP. if i run a cookie based session and for some weird reason i have a
stray character in one of my pages i do not want PHP to switch to
trans-sid - i want to get notified (Headers already sent) and fix my
bug.

tc 


 
 Zeev
 



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12925 Updated: PHP could not pass binary string to COM

2001-08-27 Thread bin . yang

ID: 12925
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: COM related
Operating System: W2K pro
PHP Version: 4.0.6
New Comment:

In conversion.c:

..
  case IS_STRING:
 var_arg-vt = VT_BSTR;
 unicode_str = php_char_to_OLECHAR(pval_arg-value.str.val, 
pval_arg-value.str.len, codepage);
 var_arg-bstrVal = SysAllocString(unicode_str);
 efree(unicode_str);
..

MSN document:
BSTR SysAllocString(OLECHAR FAR* sz);
Parameter :
sz:   a zero terminated string to copy. The sz parameter must be a unicode string in 
32-bit applications, and an ANSI string in 16-bit applications.
..

What I did in my c++ file to send a binary string in c++

..
char tmpbuf[] = {0x00,0x20,.0x11};
BSTR SEF = SysAllocStringByteLen(NULL,sizeof(tmpbuf));
memcpy(SEF,tmpbuf, sizeof(tmpbuf));
..

I can receive the binary string on the other end.

Previous Comments:


[2001-08-27 11:53:32] [EMAIL PROTECTED]

found the problem in conversion.c




[2001-08-23 11:02:50] [EMAIL PROTECTED]

Here is the PHP code.

$bp = new COM(AG2.Beepoj) or die(Unable to instanciate);
$bp- bp(101,\x0\x0\xff);
unset($bp);

The other end is a COM object, the bp method defined as

STDMETHODIMP Cbeepoj::Bp(int iDuration, BSTR b_str)
{
AFX_MANAGE_STATE(AfxGetStaticModuleState())

// TODO: Add your implementation code here
::Beep(523,iDuration);
if(wcslen(b_str)!=0) AfxMessageBox((CString)b_str);
else AfxMessageBox(null string.);
return S_OK;
}

If I use $bp- bp(101,11); I will get 11 displayed in a message box. 
However, If the input is
$bp- bp(101,\x0\x0\xff); The COM will say it is a
null string.






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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] who can help me?

2001-08-27 Thread king

i use win98se, where could i get a .DLL or .SO file to
accelerate PHP like Zend opt??

thank you!!!





-- 
PHP Development Mailing List http://www.php.net/
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] [PATCH] ext/gettext adding *ngettext functions

2001-08-27 Thread Chuck Hagenbuch

Quoting Walter Franzini [EMAIL PROTECTED]:

 I have added to ext/gettext the wrapper needed to support *ngettext
 functions, you can find the patch below.

Committed, thanks!

-chuck

--
Charles Hagenbuch, [EMAIL PROTECTED]
Some fallen angels have their good reasons.

-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12981: request: bare regexp and =~ operator

2001-08-27 Thread ryan

From: [EMAIL PROTECTED]
Operating system: Win2k
PHP version:  4.0.6
PHP Bug Type: Feature/Change Request
Bug description:  request: bare regexp and =~ operator

Hey guys. I love php, keep up the good work!

Anyhow, I've been playing with other scripting languages as well as php to
keep up my skills and I've come to realize how much a pain in the ass
regexp is in php. having to use:

preg_match_all(/\s+\d+.\d+/, php version 4.0.6, $matches);

instead of:

php version 4.0.6 =~ /\s\d+.\d+\/;

is just a real pain. I think bare regexps and an =~ operator would really
kick ass. I understand that the functions may be a simpler way for people
to ease into regexps, but power users want the flexibility that languages
like perl and ruby (among others) have. 
-- 
Edit bug report at: http://bugs.php.net/?id=12981edit=1


-- 
PHP Development Mailing List http://www.php.net/
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] who can help me?

2001-08-27 Thread Sander Roobol

This is not the mailinglist for support questions. Use PHP-GENERAL instead.

Sander

- Original Message - 
From: king [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 27, 2001 6:11 PM
Subject: [PHP-DEV] who can help me?


 i use win98se, where could i get a .DLL or .SO file to
 accelerate PHP like Zend opt??
 
 thank you!!!
 
 
 
 
 
 -- 
 PHP Development Mailing List http://www.php.net/
 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 http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12982: strip_tags() problem with title in a-tags

2001-08-27 Thread jesper_ronn

From: [EMAIL PROTECTED]
Operating system: win 2000
PHP version:  4.0.6
PHP Bug Type: Strings related
Bug description:  strip_tags() problem with title in a-tags

?php
$t = 'a title=Errors in string parsed from website! 
String containing errors: \'bWarning/b:\'
i/a';

echo '--'.strip_tags($t).'--'.strlen(strip_tags($t));
echo \nbr should be:\nbr;
echo '--i--1';
echo \nbr i get:\nbr;
echo --Warning:' \i--14 ;
?

Can someone explain this error? I would be afraid that the function gets
confused by
* the extra line feeds
* the nested b tags in the title attribute 
  (which should definately not show up!) 


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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] bogus bugs...

2001-08-27 Thread Robin Ericsson

If I find bugs that are open, but are fixed, or bogus or whatever, should I 
report them somewhere?


br
Robin

-- 
PHP Development Mailing List http://www.php.net/
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] bogus bugs...

2001-08-27 Thread James Moore




 If I find bugs that are open, but are fixed, or bogus or whatever, should
I
 report them somewhere?

Yep.. send them to [EMAIL PROTECTED], he will be pleased to recieve them :)

- James


-- 
PHP Development Mailing List http://www.php.net/
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] Question about PDF lib.

2001-08-27 Thread Matthew Loff


It's postscript points, I believe...  72 points per inch.

So, an 8.5x11 page is 612x792 points large.

--Matt


-Original Message-
From: Johan Holst Nielsen [mailto:[EMAIL PROTECTED]] 
Sent: Monday, August 27, 2001 3:59 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: [PHP] Question about PDF lib.


Hi

Do anyone know, how i define the width, height etc. parameters in
PDFlib 
functions in PHP? Is it in cm, pixels, inch? Or?

Anyone know?

I need to generate printingfiles, so I hope I can use cm or sometime
like 
that :o)

Regards,

Johan

-- 
PHP General Mailing List (http://www.php.net/)
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 http://www.php.net/
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] A couple of session issues

2001-08-27 Thread Zeev Suraski

At 19:00 27-08-01, Thies C. Arntzen wrote:
  You lost your caps too? :)

some time ago already;-) didn't you notice?

No, I hadn't noticed.  I'll help you look for them in November :)

if you are on a site that uses trans-sid for sessions the HTTP_REFERER
on the next visited site will contain your session-id.

Ah, makes sense.  That's indeed not a very cool thing.


  trans_sid, by using the existing php.ini setting.

makes sense - i just don't want a new  changed default behaviour of
PHP. if i run a cookie based session and for some weird reason i have a
stray character in one of my pages i do not want PHP to switch to
trans-sid - i want to get notified (Headers already sent) and fix my
bug.

Well, you kind of convinced me that it's not a very good idea.  The danger, 
combined with the fact that people won't expect this to happen, combined 
with the fact it's not a very 'clean' thing anyway, combined with the fact 
that trans_sid itself is on by default (it no longer requires 
--enable-trans-sid), this whole mess together sums up to 'not a very good 
idea'.

Thanks for the info :)

Zeev


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] ([PATCH] SOCKETS Solaris issues with gcc) socket_read issue with new api

2001-08-27 Thread Jason Greene

Sterling,

We had spoke in private correspondence several months ago about
Solaris compatibility problems with the sockets extension. This basically
was due to #defines in Solaris's socket header files that rename all socket
functions to __xnet_##function_name ie. __xnet_socket, etc...  This
only happens if the compile does not support the redefine_extname pragma.
(The reason for the define hack)

Since you guys have redesigned the API to follow php naming conventions,
this is no longer an issue with function naming. However, the php_socket
structure has a member named socket, which causes compilation problems. I
am sending a simple rename patch that changes this name and all references to
bsd_socket. ( Could be any name of course, just the most appropriate I could
come up with ). I aslo changed the php_read function to take a param of
bsd_socket in place of socket.

While testing I noticed another issue. The new socket_read function returns
the read data instead of taking it as a parameter. This requires me to use the
!== operator to verify there is nothing left to be read. Otherwise data could be
misconstrued as an error.

ie
what once was
while (read($socket, $out,100)){
 print $out;
}
is now
while ((out=socket_read($socket, 100)) !== FALSE) {
print $out;
}
This is very cumbersome

The 3rd issue is that the php_read function will return 0 and set errno to 0 on a
partial read. There probably should be a check for errno 0 and not print an error
message in this case. I would have included it in this patch, but I assumed that you
guys might have a better way to solve this problem.


-Jason


===
RCS file: /repository/php4/ext/sockets/sockets.c,v
retrieving revision 1.62
diff -u -r1.62 sockets.c
--- sockets.c 24 Aug 2001 01:21:14 - 1.62
+++ sockets.c 27 Aug 2001 20:46:41 -
@@ -33,9 +33,6 @@
 #define _XPG4_2
 #define __EXTENSIONS__

-#ifndef __PRAGMA_REDEFINE_EXTNAME
-#define __PRAGMA_REDEFINE_EXTNAME
-#endif

 #include ext/standard/info.h
 #include php_ini.h
@@ -55,14 +52,14 @@
 # include fcntl.h
 # include signal.h
 # include sys/uio.h
-# define IS_INVALID_SOCKET(a) (a-socket  0)
+# define IS_INVALID_SOCKET(a) (a-bsd_socket  0)
 # define set_errno(a) (errno = a)
 # define set_h_errno(a) (h_errno = a)
 #else /* windows */
 # include winsock.h
 # include php_sockets.h
 # include php_sockets_win.h
-# define IS_INVALID_SOCKET(a) (a-socket == INVALID_SOCKET)
+# define IS_INVALID_SOCKET(a) (a-bsd_socket == INVALID_SOCKET)
 #endif

 #ifdef ZTS
@@ -199,7 +196,7 @@
 {
  php_socket *php_sock = (php_socket *) rsrc-ptr;

- close(php_sock-socket);
+ close(php_sock-bsd_socket);
  efree(php_sock);
 }

@@ -224,7 +221,7 @@
  la.sin_family = hp-h_addrtype;
  la.sin_port = htons((unsigned short) port);

- php_sock-socket = socket(PF_INET, SOCK_STREAM, 0);
+ php_sock-bsd_socket = socket(PF_INET, SOCK_STREAM, 0);
  php_sock-type = PF_INET;
  if (IS_INVALID_SOCKET(php_sock)) {
  php_error(E_WARNING, Couldn't allocate a new socket from open_listen_sock());
@@ -232,16 +229,16 @@
  return NULL;
  }

- if (bind(php_sock-socket, (struct sockaddr *)la, sizeof(la))  0) {
+ if (bind(php_sock-bsd_socket, (struct sockaddr *)la, sizeof(la))  0) {
  php_error(E_WARNING, Couldn't bind socket to given address from 
open_listen_sock());
- close(php_sock-socket);
+ close(php_sock-bsd_socket);
  efree(php_sock);
  return NULL;
  }

- if (listen(php_sock-socket, backlog)  0) {
- php_error(E_WARNING, Couldn't listen on socket %d from open_listen_sock(), 
php_sock-socket);
- close(php_sock-socket);
+ if (listen(php_sock-bsd_socket, backlog)  0) {
+ php_error(E_WARNING, Couldn't listen on socket %d from open_listen_sock(), 
+php_sock-bsd_socket);
+ close(php_sock-bsd_socket);
  efree(php_sock);
  return NULL;
  }
@@ -258,7 +255,7 @@

  m = sizeof(*la);

- retval-socket = accept(php_sock-socket, la, m);
+ retval-bsd_socket = accept(php_sock-bsd_socket, la, m);
  if (IS_INVALID_SOCKET(retval)) {
  php_error(E_WARNING, Couldn't accept incoming connection in accept_connect());
  efree(retval);
@@ -269,14 +266,14 @@
 }

 /* {{{ php_read -- wrapper around read() so that it only reads to a \r or \n. */
-int php_read(int socket, void *buf, int maxlen)
+int php_read(int bsd_socket, void *buf, int maxlen)
 {
  int m = 0, n = 0;
  int no_read = 0;
  int nonblock = 0;
  char *t = (char *) buf;

- m = fcntl(socket, F_GETFL);
+ m = fcntl(bsd_socket, F_GETFL);
  if (m  0) {
  return m;
  }
@@ -306,7 +303,7 @@
  }

  if (n  maxlen) {
- m = read(socket, (void *) t, 1);
+ m = read(bsd_socket, (void *) t, 1);
  }

  if (errno != 0  errno != ESPIPE  errno != EAGAIN) {
@@ -446,14 +443,14 @@
  zend_hash_internal_pointer_reset(Z_ARRVAL_PP(arg2));
  while (zend_hash_get_current_data(Z_ARRVAL_PP(arg2), (void**)tmp) == SUCCESS) {
  ZEND_FETCH_RESOURCE(php_sock, php_socket*, tmp, -1, le_socket_name, le_socket);
- FD_SET(php_sock-socket, (php_fd-set));
- max_fd = (php_sock-socket  max_fd) ? 

[PHP-DEV] RE: Bug #12963 Updated: ImageColorAllocate() doesn't work with PNGs

2001-08-27 Thread Jon Perry

Hi,

ImageColorResolve() doesn't solve it - but you will be happy to know that I
did solve it - form your palette tip.

Guessing that the color is not in the palette, use:

imagecolorset($image,1,255,100,100);

to force your color into the palette.

So, this works:

*

?php
header (Content-type: image/png);
$text=implode($argv, );
$image=imageCreateFromPNG(basic.png);
imagecolorset($image,1,255,100,100);
$text_color=imageColorAllocate($image,255,100,100);
$textX=(imageSX($image)-imageFontWidth(4)*strlen($text))/2;
imageString($image,5,$textX,10,$text,$text_color);
imagePNG($image);
imageDestroy($image);
?

*

Thanks for the help.

P.S. I spotted a couple of spelling mistakes in the PHP manual. In cpdf_save
and cpdf_restore, you write 'enviroment'. The correct spelling is
'environment'. (Mind you - this is English, not American').

Jon Perry
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.users.globalnet.co.uk/~perry
Brainbench 'Most Valuable Professional' for HTML
Brainbench 'Most Valuable Professional' for JavaScript
http://www.brainbench.com
Object-Oriented Links at Cetus
http://www.cetus-links.org
Subscribe to Delphiadvanced:
http://groups.yahoo.com/group/Delphiadvanced

-Original Message-
From: Bug Database [mailto:[EMAIL PROTECTED]]
Sent: 26 August 2001 11:36
To: [EMAIL PROTECTED]
Subject: Bug #12963 Updated: ImageColorAllocate() doesn't work with PNGs


ID: 12963
Updated by: mathieu
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: GD related
Operating System: Windows95
PHP Version: 4.0.6
New Comment:

I'm not a PNG expert but you could try ImageColorResolve()  The palette used
in 'basic.png' may be different than you expect.

Previous Comments:


[2001-08-26 06:01:52] [EMAIL PROTECTED]

?php header (Content-type: image/png); $text=implode($argv, );
$image=imageCreateFromPNG(basic.png); $background_color =
ImageColorAllocate ($im, 100, 100, 255);
$text_color=imageColorAllocate($image,255,100,100);
$textX=(imageSX($image)-imageFontWidth(4)*strlen($text))/2;
imageString($image,5,$textX,10,$text,$text_color); imagePNG($image);
imageDestroy($image); ?  This is only a small modification of the
example given in the manual, but the $text_color is always white.  This
works for JPEG, but the quality suffers, and my build of PHP doesn't support
GIF's.





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



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12968 Updated: Session don't store after header(Location: ...)

2001-08-27 Thread hholzgra

ID: 12968
Updated by: hholzgra
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Session related
Operating System: Linux
PHP Version: 4.0.6
New Comment:

does ingnore_user_abort(true) help ?

Previous Comments:


[2001-08-27 05:30:06] [EMAIL PROTECTED]

System:
Linux
PHP 4.06
Apache 1.3.19
mySQL 3.23.38

side1.php
  session_start();
  session_register(var1);
  Header(location:page2.php);
 
side2.php
  session_start();
  session_is_register(logon) returns false;

I check the mySQL logs (i have a personal written session_handler, which works fine 
under a lot of different systems with mySQL) and see following problem

side1.php: SELECT * FROM Session WHERE SessionID ...
 script queries from side1.php
side2.php: SELECT * FROM Session WHERE SessionID ...
side1.php: UPDATE Session SET ... WHERE SessionID ...
 script queries from side2.php
side2.php: UPDATE Session Set ... WHERE SessionID 

instead of the normal: 

side1.php: SELECT * FROM Session WHERE SessionID ...
 script queries from side1.php
side1.php: UPDATE Session SET ... WHERE SessionID ...
side2.php: SELECT * FROM Session WHERE SessionID ...
 script queries from side2.php
side2.php: UPDATE Session Set ... WHERE SessionID 

i think the problem is that the header(Location: ...) works so fast over the 
intranet network, that my old developer machine isn't fast enaugh to handle the script 
SQL statement, before the new site request reach another process of the apache and 
query the session table.
the problem is that the buffer is flushed before the session related operations are 
done

What can i do against this behavior?
thanx






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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12983: crash due to infinite loop

2001-08-27 Thread admin

From: [EMAIL PROTECTED]
Operating system: linux 
PHP version:  4.0.4
PHP Bug Type: Reproducible crash
Bug description:  crash due to infinite loop

if you run a loop with a typing error such as the following where $j is not
defined the system goes into a infinite loop and causes the shutdown of all
running services.

for ($i = 0; $i  $numrows; ++$j){
  # something
}

Not really a bug but shouldn't we get a timeout error here ?

Alfred Tuinman
-- 
Edit bug report at: http://bugs.php.net/?id=12983edit=1


-- 
PHP Development Mailing List http://www.php.net/
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] ([PATCH] SOCKETS Solaris issues with gcc) socket_read issue with new api

2001-08-27 Thread Jason Greene

Forgot one thing,

Let me know if you would like me to just apply this patch myself.
I just thought it should be reviewed first.

Thanks,
Jason
- Original Message -
From: Jason Greene [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Chris Vandomelen [EMAIL PROTECTED]; 
[EMAIL PROTECTED]; Daniel Beulshausen
[EMAIL PROTECTED]
Sent: Monday, August 27, 2001 1:36 PM
Subject: [PHP-DEV] ([PATCH] SOCKETS Solaris issues with gcc)  socket_read issue with 
new api


 Sterling,

 We had spoke in private correspondence several months ago about
 Solaris compatibility problems with the sockets extension. This basically
 was due to #defines in Solaris's socket header files that rename all socket
 functions to __xnet_##function_name ie. __xnet_socket, etc...  This
 only happens if the compile does not support the redefine_extname pragma.
 (The reason for the define hack)

 Since you guys have redesigned the API to follow php naming conventions,
 this is no longer an issue with function naming. However, the php_socket
 structure has a member named socket, which causes compilation problems. I
 am sending a simple rename patch that changes this name and all references to
 bsd_socket. ( Could be any name of course, just the most appropriate I could
 come up with ). I aslo changed the php_read function to take a param of
 bsd_socket in place of socket.

 While testing I noticed another issue. The new socket_read function returns
 the read data instead of taking it as a parameter. This requires me to use the
 !== operator to verify there is nothing left to be read. Otherwise data could be
 misconstrued as an error.

 ie
 what once was
 while (read($socket, $out,100)){
  print $out;
 }
 is now
 while ((out=socket_read($socket, 100)) !== FALSE) {
 print $out;
 }
 This is very cumbersome

 The 3rd issue is that the php_read function will return 0 and set errno to 0 on a
 partial read. There probably should be a check for errno 0 and not print an error
 message in this case. I would have included it in this patch, but I assumed that you
 guys might have a better way to solve this problem.


 -Jason



-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12977 Updated: Unable to load dynamic library 'd:\applications\php\extensions\php_oci8.dll' -

2001-08-27 Thread sniper

ID: 12977
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: OCI8 related
Operating System: WINDOWS 2000 + iis 5
PHP Version: 4.0.6
New Comment:

Do you have the Oracle client installed on this machine?


Previous Comments:


[2001-08-27 09:48:09] [EMAIL PROTECTED]

I install PHP 4.0.6 with IIS 5 and it did install find.
I did modify my php.ini.
I did create a test page and then it says :

Unable to load dynamic library
'd:\applications\php\extensions\php_oci8.dll' - The specified module could
not be found

And it write the same thing on my server

I have installed php on : d:\applications\php and the extension are located
on d:\applications\php\extensions

I have double check the extension_dir

What do i have to do to make it works???

Thanks

Philippe BABILOTTE

What do i have to do






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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12980 Updated: Date function()

2001-08-27 Thread sniper

ID: 12980
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Date/time related
Operating System: WIN 32
PHP Version: 4.0.6
New Comment:

Does it happen with development build from
http://www.php4win.com/ ?


Previous Comments:


[2001-08-27 11:16:31] [EMAIL PROTECTED]

The bug ID #6425 still occurs...





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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12983 Updated: crash due to infinite loop

2001-08-27 Thread sniper

ID: 12983
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Reproducible crash
Operating System: linux
PHP Version: 4.0.4
New Comment:

Like you said, not really a bug. 
You can also shoot yourself in your foot but is it wise? :)

This is very common problem, and to keep PHP as fast as
it is there won't be any changes in this in the near
future. 


Previous Comments:


[2001-08-27 14:46:27] [EMAIL PROTECTED]

if you run a loop with a typing error such as the following where $j is not defined 
the system goes into a infinite loop and causes the shutdown of all running services.

for ($i = 0; $i  $numrows; ++$j){
  # something
}

Not really a bug but shouldn't we get a timeout error here ?

Alfred Tuinman





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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12963 Updated: ImageColorAllocate() doesn't work with PNGs

2001-08-27 Thread wez

ID: 12963
Updated by: wez
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: GD related
Operating System: Windows95
PHP Version: 4.0.6
New Comment:

PHP 4.0.6 on win32 uses GD 2.0.1 BETA.
It is broken for palette based PNG images; you
need to use a different version of GD, or wait for PHP 4.0.7.

--Wez.

Previous Comments:


[2001-08-26 06:35:48] [EMAIL PROTECTED]

I'm not a PNG expert but you could try ImageColorResolve() 
The palette used in 'basic.png' may be different than you
expect.




[2001-08-26 06:01:52] [EMAIL PROTECTED]

?php
header (Content-type: image/png);
$text=implode($argv, );
$image=imageCreateFromPNG(basic.png);
$background_color = ImageColorAllocate ($im, 100, 100, 255);
$text_color=imageColorAllocate($image,255,100,100);
$textX=(imageSX($image)-imageFontWidth(4)*strlen($text))/2;
imageString($image,5,$textX,10,$text,$text_color);
imagePNG($image);
imageDestroy($image);
?

This is only a small modification of the example given in the manual, but the 
$text_color is always white.

This works for JPEG, but the quality suffers, and my build of PHP doesn't support 
GIF's.





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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12968 Updated: Session don't store after header(Location: ...)

2001-08-27 Thread tthiery

ID: 12968
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: Session related
Operating System: Linux
PHP Version: 4.0.6
New Comment:

Sorry, but no it doesn't help. The UPDATE Session query from site1 still run after the 
SELECT Session query from site2.

Previous Comments:


[2001-08-27 14:44:02] [EMAIL PROTECTED]

does ingnore_user_abort(true) help ?



[2001-08-27 05:30:06] [EMAIL PROTECTED]

System:
Linux
PHP 4.06
Apache 1.3.19
mySQL 3.23.38

side1.php
  session_start();
  session_register(var1);
  Header(location:page2.php);
 
side2.php
  session_start();
  session_is_register(logon) returns false;

I check the mySQL logs (i have a personal written session_handler, which works fine 
under a lot of different systems with mySQL) and see following problem

side1.php: SELECT * FROM Session WHERE SessionID ...
 script queries from side1.php
side2.php: SELECT * FROM Session WHERE SessionID ...
side1.php: UPDATE Session SET ... WHERE SessionID ...
 script queries from side2.php
side2.php: UPDATE Session Set ... WHERE SessionID 

instead of the normal: 

side1.php: SELECT * FROM Session WHERE SessionID ...
 script queries from side1.php
side1.php: UPDATE Session SET ... WHERE SessionID ...
side2.php: SELECT * FROM Session WHERE SessionID ...
 script queries from side2.php
side2.php: UPDATE Session Set ... WHERE SessionID 

i think the problem is that the header(Location: ...) works so fast over the 
intranet network, that my old developer machine isn't fast enaugh to handle the script 
SQL statement, before the new site request reach another process of the apache and 
query the session table.
the problem is that the buffer is flushed before the session related operations are 
done

What can i do against this behavior?
thanx






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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12984: APXS error message during configure is wrong

2001-08-27 Thread sgibson

From: [EMAIL PROTECTED]
Operating system: Linux 2.4.2-2smp (RedHat 7.1)
PHP version:  4.0.6
PHP Bug Type: Apache related
Bug description:  APXS error message during configure is wrong

When configuring with APXS support, and the Apache APXS script has an error
in it, the configure program outputs the web link to fix the APXS script. 
This location has changed since the reorg of the PHP web site.  Here's a
context diff patch to fix config.status file.  Please forgive me if I got
this wrong; I'm not a developer/coder, and have never messed around with
diff/patch much.

-- begin of context patch info 


*** config.status   Mon Aug 27 15:30:24 2001
--- config.status.patch Mon Aug 27 15:34:30 2001
***
*** 1254,1261 
  echo
++
  echo | WARNING: Your /ids/web/bin/apxs script is most likely
broken.
  echo |  
 |
! echo | Please go read http://www.php.net/FAQ.php#6.11 and make the  
 |
! echo | changes described there and try again.   
 |
fi
  
# Warn about CGI version with no extra security options.
--- 1254,1261 
  echo
++
  echo | WARNING: Your /ids/web/bin/apxs script is most likely
broken.
  echo |  
 |
! echo | Please go read
http://www.php.net/manual/en/faq.build.php#AEN62933 |
! echo | and make the changes described there and try again.  
 |
fi
  
# Warn about CGI version with no extra security options.



-- end of context patch info --

v/r
Shane
-- 
Edit bug report at: http://bugs.php.net/?id=12984edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] contributing extensions?

2001-08-27 Thread George Schlossnagle

Hi,

I was interested in what the process of contributiing extensions to php 
is.  I'm a author/maintainer of a couple existing and soon-to-be php 
extensions and was curious about how to get them evaluated for inclusion 
as part of the existing 'ext' extension structure and just what the 
general processes involved with that are.

George

1024D/1100A5A0/1370 F70A 9365 96C9 2F5E  56C2 B2B9 262F 1100 A5A0

-- 
PHP Development Mailing List http://www.php.net/
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] contributing extensions?

2001-08-27 Thread Rasmus Lerdorf

Hi George, actually what I meant when I said to send mail to php-dev was
that you should describe your actual extensions.  General-purpose
extensions that really would be useful to a wide audience are good
candidates for inclusion, although there has been a push to start the
process of moving some of this stuff out into PEAR, especially for new
extensions.

-Rasmus

On Mon, 27 Aug 2001, George Schlossnagle wrote:

 Hi,

 I was interested in what the process of contributiing extensions to php
 is.  I'm a author/maintainer of a couple existing and soon-to-be php
 extensions and was curious about how to get them evaluated for inclusion
 as part of the existing 'ext' extension structure and just what the
 general processes involved with that are.

 George

 1024D/1100A5A0/1370 F70A 9365 96C9 2F5E  56C2 B2B9 262F 1100 A5A0




-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12985: mysql_connect() forces reuse of the connection

2001-08-27 Thread vedad

From: [EMAIL PROTECTED]
Operating system: not os related
PHP version:  4.0.4pl1
PHP Bug Type: Feature/Change Request
Bug description:  mysql_connect() forces reuse of the connection

Hi all,

i've just discovered that mysql_connect() uses a hash that forces it to
reuse a connection on a second call to mysql_connect() with the same
arguments, instead of opening a new connection.
This was, at least for me, an unexpected behaviour: i was hoping to be able
to use several database connections to the same mysql server (and same
user) in order to be able to issue several LOCK TABLE or GET_LOCK() queries
(mysql allows only one 'active' lock per connection)

[I know basic locking may be done on php server's system level, but it
doesn't make sense in web-cluster environment, and using a database to
centralize locks sounds interesting]

I also took a look into php's mysql api source (i'm not familiar with php
sources), and adding an optional argument saying _not_ to reuse a
connection or coding an alternative mysql_connect() from the existing one
doesnt _seem_ to be a long or complicated task.

I _might_ do the change myself for my server, but as the sites i'm working
on are unlikely to be hosted on my server, this is not very portable and
would be probably useless.

Please tell me what you think about this issue, and if a change to
mysql_connect() function is conceivable (in that case i'd be glad to do the
change myself and send you the result :)

Thanks
-- vedad

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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12986: can't read the script

2001-08-27 Thread chenyenli

From: [EMAIL PROTECTED]
Operating system: windows 98 first edition
PHP version:  4.0.6
PHP Bug Type: PWS related
Bug description:  can't read the script

HTTP Error 403
403.1 Forbidden: Execute Access Forbidden

This error can be caused if you try to execute a CGI, ISAPI, or other
executable program from a directory that does not allow programs to be
executed.

Please contact the Web server's administrator if the problem persists.

this error message always show up for every type of script, even just the
simplest script

I use PWS 4.0 

I execute the script by using this command:
  http://localhost/file.php

my computer offline
-- 
Edit bug report at: http://bugs.php.net/?id=12986edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12987: 'make install' occasionally ignores --prefix

2001-08-27 Thread rich

From: [EMAIL PROTECTED]
Operating system: Solaris 2.8, Linux 2.2.15
PHP version:  4.0.6
PHP Bug Type: *Compile Issues
Bug description:  'make install' occasionally ignores --prefix

Although './configure --help' reads

  --with-config-file-path=PATH 

  Sets the path in which to look for php.ini,   
  defaults to PREFIX/lib
  --with-pear=DIR 
  Install PEAR in DIR (default PREFIX/lib/php)  

when I compile PHP with './configure --prefix=/tmp/php', 
'make install' still tries to put php.ini in /usr/local/lib 
and PEAR in /usr/local/lib/php. Apologies for not providing 
a patch, but I don't speak autoconf yet.
-- 
Edit bug report at: http://bugs.php.net/?id=12987edit=1


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12987 Updated: 'make install' occasionally ignores --prefix

2001-08-27 Thread rich

ID: 12987
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: *Compile Issues
Operating System: Solaris 2.8, Linux 2.2.15
PHP Version: 4.0.6
New Comment:

Gack, invisible typos! Problem was user error.

Previous Comments:


[2001-08-27 20:52:40] [EMAIL PROTECTED]

Although './configure --help' reads

  --with-config-file-path=PATH  
  Sets the path in which to look for php.ini,   
  defaults to PREFIX/lib
  --with-pear=DIR 
  Install PEAR in DIR (default PREFIX/lib/php)  

when I compile PHP with './configure --prefix=/tmp/php', 
'make install' still tries to put php.ini in /usr/local/lib 
and PEAR in /usr/local/lib/php. Apologies for not providing 
a patch, but I don't speak autoconf yet.





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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12985 Updated: mysql_connect() forces reuse of the connection

2001-08-27 Thread joey

ID: 12985
Updated by: joey
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Feature/Change Request
Operating System: not os related
PHP Version: 4.0.4pl1
New Comment:

What is different between what you are asking for
and mysql_pconnect()?

http://www.php.net/msyql-pconnect

Previous Comments:


[2001-08-27 20:47:11] [EMAIL PROTECTED]

Hi all,

i've just discovered that mysql_connect() uses a hash that forces it to reuse a 
connection on a second call to mysql_connect() with the same arguments, instead of 
opening a new connection.
This was, at least for me, an unexpected behaviour: i was hoping to be able to use 
several database connections to the same mysql server (and same user) in order to be 
able to issue several LOCK TABLE or GET_LOCK() queries (mysql allows only one 'active' 
lock per connection)

[I know basic locking may be done on php server's system level, but it doesn't make 
sense in web-cluster environment, and using a database to centralize locks sounds 
interesting]

I also took a look into php's mysql api source (i'm not familiar with php sources), 
and adding an optional argument saying _not_ to reuse a connection or coding an 
alternative mysql_connect() from the existing one doesnt _seem_ to be a long or 
complicated task.

I _might_ do the change myself for my server, but as the sites i'm working on are 
unlikely to be hosted on my server, this is not very portable and would be probably 
useless.

Please tell me what you think about this issue, and if a change to mysql_connect() 
function is conceivable (in that case i'd be glad to do the change myself and send you 
the result :)

Thanks
-- vedad






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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12985 Updated: mysql_connect() forces reuse of the connection

2001-08-27 Thread joey

ID: 12985
Updated by: joey
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Feature/Change Request
Operating System: not os related
PHP Version: 4.0.4pl1
New Comment:

Nevermind...I read this whole report backwards. I thought
you were looking for persistence, not trying to get rid
of it. Apologies.

Previous Comments:


[2001-08-27 22:45:59] [EMAIL PROTECTED]

What is different between what you are asking for
and mysql_pconnect()?

http://www.php.net/msyql-pconnect



[2001-08-27 20:47:11] [EMAIL PROTECTED]

Hi all,

i've just discovered that mysql_connect() uses a hash that forces it to reuse a 
connection on a second call to mysql_connect() with the same arguments, instead of 
opening a new connection.
This was, at least for me, an unexpected behaviour: i was hoping to be able to use 
several database connections to the same mysql server (and same user) in order to be 
able to issue several LOCK TABLE or GET_LOCK() queries (mysql allows only one 'active' 
lock per connection)

[I know basic locking may be done on php server's system level, but it doesn't make 
sense in web-cluster environment, and using a database to centralize locks sounds 
interesting]

I also took a look into php's mysql api source (i'm not familiar with php sources), 
and adding an optional argument saying _not_ to reuse a connection or coding an 
alternative mysql_connect() from the existing one doesnt _seem_ to be a long or 
complicated task.

I _might_ do the change myself for my server, but as the sites i'm working on are 
unlikely to be hosted on my server, this is not very portable and would be probably 
useless.

Please tell me what you think about this issue, and if a change to mysql_connect() 
function is conceivable (in that case i'd be glad to do the change myself and send you 
the result :)

Thanks
-- vedad






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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12988: PHP has encountered an Access Violation

2001-08-27 Thread kevin

From: [EMAIL PROTECTED]
Operating system: win2k adv server
PHP version:  4.0.6
PHP Bug Type: Performance problem
Bug description:  PHP has encountered an Access Violation 

I was wondering if you had a fix to the problem a lot of people have been
receiving that is PHP has encountered an Access Violation ?  Please get
back to me as soon as possible...

Thanks,
Kevin
-- 
Edit bug report at: http://bugs.php.net/?id=12988edit=1


-- 
PHP Development Mailing List http://www.php.net/
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] contributing extensions?

2001-08-27 Thread George Schlossnagle

Ok,

I have a php interface to the spread group communication toolkit client 
api.  Hard to say how wide it's audience would be, but it's very useful 
for creating distributed applications (it was written to facilitate some 
distributed logging and distributed filesystem caching needs).  Code 
available from   
http://www.lethargy.org/~george/php_spread/php_spread-0.1.tar.gz

Dan Cowgill and I have a tracing/profiling/debugging extension which we 
would be quite interested in having included in php.  Code available 
from http://apc.communityconnect.com/sources/apd-cvs.tar.gz

Also, there is our APC caching project, which has become pretty mature 
now .  It has a relatively large following and I think it would benefit 
php to have a free bundled compiler cache with it (not to mention 
benefit from the much larger developer base).  Code available from 
http://apc.communityconnect.com/source/apc.tar.gz.

The latter of the two are currently released under the QPL, but we'd be 
happy to relicense them under the PHP group license.

George


On Monday, August 27, 2001, at 08:17 PM, Rasmus Lerdorf wrote:

 Hi George, actually what I meant when I said to send mail to php-dev was
 that you should describe your actual extensions.  General-purpose
 extensions that really would be useful to a wide audience are good
 candidates for inclusion, although there has been a push to start the
 process of moving some of this stuff out into PEAR, especially for new
 extensions.

 -Rasmus

 On Mon, 27 Aug 2001, George Schlossnagle wrote:

 Hi,

 I was interested in what the process of contributiing extensions to php
 is.  I'm a author/maintainer of a couple existing and soon-to-be php
 extensions and was curious about how to get them evaluated for 
 inclusion
 as part of the existing 'ext' extension structure and just what the
 general processes involved with that are.

 George

 1024D/1100A5A0/1370 F70A 9365 96C9 2F5E  56C2 B2B9 262F 1100 A5A0




 --
 PHP Development Mailing List http://www.php.net/
 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 http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12861 Updated: get_defined_constants gots AV

2001-08-27 Thread dacota

ID: 12861
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Arrays related
Operating System: WindowsNT
Old PHP Version: 4.0CVS-2001-08-20
PHP Version: 4.0CVS-2001-08-27
New Comment:

Here is the call stack for this bug:

_zval_copy_ctor(_zval_struct * 0x00fddff8, char * 0x1024b014 `string', unsigned int 
0x0401) line 105 + 11 bytes
add_constant_info(_zend_constant * 0x00ee2b70, void * 0x00fdd1e8, void * * * 
0x00ed1940) line 1025 + 25 bytes
zend_hash_apply_with_argument(_hashtable * 0x00ed22d0, int (void *, void *, void * * 
*)* 0x101465b0 add_constant_info(_zend_constant *, void *, void * * *), void * 
0x00fdd1e8, void * * * 0x00ed1940) line 688 + 20 bytes
zif_get_defined_constants(int 0x, _zval_struct * 0x00fdd1e8, _zval_struct * 
0x, int 0x, void * * * 0x00ed1940) line 1054 + 40 bytes
execute(_zend_op_array * 0x00fdce30, void * * * 0x00ed1940) line 1590 + 47 bytes
zend_execute_scripts(int 0x0008, void * * * 0x00ed1940, int 0x0003) line 807 + 
33 bytes
php_execute_script(_zend_file_handle * 0x0012ff48, void * * * 0x00ed1940) line 1310 + 
25 bytes
main(int 0x0003, char * * 0x00ed19b0) line 737 + 14 bytes
mainCRTStartup() line 338 + 17 bytes
KERNEL32! 77f1ba06()


Previous Comments:


[2001-08-20 11:12:53] [EMAIL PROTECTED]

Function get_defined_constants() gots AV in
add_constant_info(zend_constant *constant, void *arg TSRMLS_DC)

Appears on WinNT 4.0 SP5/Apache 1.3.19 and W2K 5.0 SP2/IIS 5.0






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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12988 Updated: PHP has encountered an Access Violation

2001-08-27 Thread derick

ID: 12988
Updated by: derick
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Performance problem
Operating System: win2k adv server
PHP Version: 4.0.6
New Comment:

PHP has encountered an Acess Violation is the most useless error a Windows box can 
give.
There is not enough information in this bug report, nor is there any bug reported.

Previous Comments:


[2001-08-27 22:55:38] [EMAIL PROTECTED]

I was wondering if you had a fix to the problem a lot of people have been receiving 
that is PHP has encountered an Access Violation ?  Please get back to me as soon as 
possible...

Thanks,
Kevin





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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12984 Updated: APXS error message during configure is wrong

2001-08-27 Thread sniper

ID: 12984
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Apache related
Operating System: Linux 2.4.2-2smp (RedHat 7.1)
PHP Version: 4.0.6
New Comment:

This has already been fixed in CVS.

--Jani


Previous Comments:


[2001-08-27 18:37:47] [EMAIL PROTECTED]

When configuring with APXS support, and the Apache APXS script has an error in it, the 
configure program outputs the web link to fix the APXS script.  This location has 
changed since the reorg of the PHP web site.  Here's a context diff patch to fix 
config.status file.  Please forgive me if I got this wrong; I'm not a developer/coder, 
and have never messed around with diff/patch much.

-- begin of context patch info 


*** config.status   Mon Aug 27 15:30:24 2001
--- config.status.patch Mon Aug 27 15:34:30 2001
***
*** 1254,1261 
  echo ++
  echo | WARNING: Your /ids/web/bin/apxs script is most likely broken.
  echo ||
! echo | Please go read http://www.php.net/FAQ.php#6.11 and make the|
! echo | changes described there and try again. |
fi
  
# Warn about CGI version with no extra security options.
--- 1254,1261 
  echo ++
  echo | WARNING: Your /ids/web/bin/apxs script is most likely broken.
  echo ||
! echo | Please go read http://www.php.net/manual/en/faq.build.php#AEN62933 |
! echo | and make the changes described there and try again.|
fi
  
# Warn about CGI version with no extra security options.



-- end of context patch info --

v/r
Shane





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


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]