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

2001-08-28 Thread sniper

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


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 #12987 Updated: 'make install' occasionally ignores --prefix

2001-08-28 Thread sniper

ID: 12987
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Closed
Status: Bogus
Old Bug Type: *Compile Issues
Bug Type: *General Issues
Operating System: Solaris 2.8, Linux 2.2.15
PHP Version: 4.0.6


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 #12989: php sets the wrong default header (use not mimetypes)

2001-08-28 Thread tf

From: [EMAIL PROTECTED]
Operating system: 
PHP version:  4.0.6
PHP Bug Type: Apache related
Bug description:  php sets the wrong default header (use not mimetypes)

i want to parse .wml sites with php, the problem is the default 
header.

when i not have added 
AddType application/x-httpd-php .wml 
in the httpd.conf, then everything its fine and apache returned
the korrekt header in pure .wml sites (without php stuff).
my mimetype entry 
text/vnd.wap.wmlwml  
works in this case.

when i add
AddType application/x-httpd-php .wml 
to the apache config, the mimetype settings are useless :-(
apache sends by default text/html and i have to rework als .wml 
sites and have to add a line at first::
?php header(Content-Type: text/vnd.wap.wml);?
thats very bad, if i have lots of such sites, which were at first 
plain wml.

i wanted to rename all .php sites to .wml, if they produce wml 
code, because i want to avoid problems with wap browsers 
which are looking for the filepostfix...
imho should php set the header using mimetypes settings.
-- 
Edit bug report at: http://bugs.php.net/?id=12989edit=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 #12991: Wrong content type while parsing .wml files which are parsed by php

2001-08-28 Thread boris

From: [EMAIL PROTECTED]
Operating system: Linux with Apache 1.3.20
PHP version:  4.0.6
PHP Bug Type: Unknown/Other Function
Bug description:  Wrong content type while parsing .wml files which are parsed by php

Hi there,

Scenario:

I added to the Apache Mime Types:

text/vnd.wap.wmlwml

Next I set PHP to parse .wml files in apache config:

AddType application/x-httpd-php .wml

What I want to do ? Parsing .wml files for wap pages.

What's the result ?

telnet domain.com 80
GET /wap.wml HTTP/1.0
Accept: text/vnd.wap.wml
returnreturn

Apache/PHP returns:

HTTP/1.1 200 OK
Date: Tue, 28 Aug 2001 07:04:44 GMT
Server: Apache/1.3.20 (Unix) PHP/4.0.6
X-Powered-By: PHP/4.0.6
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma: no-cache
Connection: close
Content-Type: text/html

I sent Accept: text/vnd.wap.wml and get Content-Type: text/html. That hat
to return a 406 Error - not accaptable.

Content Type seit in Apache Mime Config is ignored plus Accept: Header is
ignored. 

If I set a Content-Type with the Header funktion everthing ist fine - but
if not there have to be an Accept Error !

Best regards
Boris

-- 
Edit bug report at: http://bugs.php.net/?id=12991edit=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 #12992: php ignores Accept: text/vnd.wap.wml

2001-08-28 Thread tf

From: [EMAIL PROTECTED]
Operating system: linux
PHP version:  4.0.6
PHP Bug Type: Apache related
Bug description:  php ignores Accept: text/vnd.wap.wml

when 
Accept: text/vnd.wap.wml
or other type is accepted and the .php site has only text/html , 
then an error should returned like:

406 Not Acceptable

like apache does.

for example:

tf@defiant:~/foobar  telnet stargazer 80
Trying 192.168.0.6...
Connected to stargazer.
Escape character is '^]'.
GET / HTTP/1.0
User-Agent: SMS
Accept: text/vnd.wap.wml
 
HTTP/1.1 406 Not Acceptable



-- 
Edit bug report at: http://bugs.php.net/?id=12992edit=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] Rép. : Bug #12977 Updated: Unable to load dynamic library 'd:\applications\php\extensions\php_oci8.dll' -

2001-08-28 Thread Philippe BABILOTTE

Yes
We found this morming that we had to re-install the oracle client in order to connect 
to the database

 Bug Database [EMAIL PROTECTED] 27/08/2001 21:59:59 
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






ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=12977edit=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] MFH'ing PEAR changes

2001-08-28 Thread Stig S. Bakken

Any objections against me MHF'ing some non-critical stuff in php4/pear? 
It's so long between each PHP release now that the PEAR stuff that comes
with PHP is usually outdated by the day of the release. :-P

 - Stig

-- 
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] MFH'ing PEAR changes

2001-08-28 Thread Zeev Suraski

At 11:08 28-08-01, Stig S. Bakken wrote:
Any objections against me MHF'ing some non-critical stuff in php4/pear?
It's so long between each PHP release now that the PEAR stuff that comes
with PHP is usually outdated by the day of the release. :-P

I don't think PEAR gets thoroughly tested during the RC cycle (am I 
wrong?), so I think it should be fine.

I think we should go with RC2 soon.  The flow of patches is pretty slow 
right now.

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 #3367 Updated: PHP code callback during file upload

2001-08-28 Thread sander

ID: 3367
Updated by: sander
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Operating System: All
PHP Version: 4.0
New Comment:

-from 7463-
Hello,
I would like to see a feature in PHP, that solves a problem I currently only can solve 
by
writing a CGI script in Perl, which I'd rather not do...
I understand that when uploading a file (POST request) from a form, the file is stored 
at
a temporary location on the server. However, I want to read file data in small chunks,
passing each chunk along to another server, i.e. stream the file data through
my server. Is this anything that would be interesting to introduce in PHP, or is it
already possible and I'm making a fool of myself? :-)
Btw, the key issue here is that I want to make it possible to send a file that is 1 Gb 
(or
some other large value) in size to my server, that only has 200 Mb (less than the file
size) of free space...

Best regards,
Per Jönsson


Previous Comments:


[2001-02-10 14:04:49] [EMAIL PROTECTED]

refiled against 4.0.



[2000-01-31 19:05:04] [EMAIL PROTECTED]

It would be very useful if one could invoke some PHP code periodically during the HTTP 
file upload process (while PHP is creating the temporary file, before the page 
generally starts processing).   

This would enable a PHP user to build a file upload feature that provides feedback and 
estimated time remaining to users.   

This may be similar to ticks mentioned in the technical summary of your January 
meeting, but this is for a part of the process that currently preceeds the execution 
of any PHP code.





Edit this bug report at http://bugs.php.net/?id=3367edit=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 Updated: can't read the script

2001-08-28 Thread cynic

ID: 12986
Updated by: cynic
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: PWS related
Operating System: windows 98 first edition
PHP Version: 4.0.6
New Comment:

This is a bug database, not a support forum. Take a look at 
http://www.php.net/support.php.

Previous Comments:


[2001-08-27 20:50:57] [EMAIL PROTECTED]

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 this 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 #7463 Updated: File Upload Feature Request

2001-08-28 Thread sander

ID: 7463
Updated by: sander
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Feature/Change Request
Operating System: Debian Linux 2.2.17
PHP Version: 4.0.0
New Comment:

Moved to 3367

Previous Comments:


[2000-10-25 16:06:38] [EMAIL PROTECTED]

Hello,
I would like to see a feature in PHP, that solves a problem I currently only can solve 
by writing a CGI script in Perl, which I'd rather not do...
I understand that when uploading a file (POST request) from a form, the file is stored 
at a temporary location on the server. However, I want to read file data in small 
chunks, passing each chunk along to another server, i.e. stream the file data 
through my server. Is this anything that would be interesting to introduce in PHP, or 
is it already possible and I'm making a fool of myself? :-)
Btw, the key issue here is that I want to make it possible to send a file that is 1 Gb 
(or some other large value) in size to my server, that only has 200 Mb (less than the 
file size) of free space...

Best regards,
Per Jönsson





Edit this bug report at http://bugs.php.net/?id=7463edit=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 #9423 Updated: Please create a function that returns name of currently executing function

2001-08-28 Thread sander

ID: 9423
Updated by: sander
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Duplicate
Bug Type: Feature/Change Request
Operating System: 
PHP Version: 4.0.4pl1
New Comment:

Duplicate of 8576.

Previous Comments:


[2001-02-23 10:54:26] [EMAIL PROTECTED]

Please consider adding a new feature to the next version of PHP.

When creating code that reports errors, it would be very helpful
to have a function which returns the name of the currently
executing function (or class method).  You could perhaps
name the function func_get_name(), which would fit in nicely
with the existing PHP functions func_get_arg(), func_get_args(),
and func_num_args().  Example usage:

function foo() {
   if ( some error condition ) {
  ErrorHandler(An error occurrend in function  . func_get_name() 
);
   }
}

If there is another (existing) way to accomplish this, please let me know.
Thank you for your consideration (and thanks for PHP) -
Jim Ide [EMAIL PROTECTED]






Edit this bug report at http://bugs.php.net/?id=9423edit=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 #10190 Updated: \t$var = EOI\n\tblah\tEOI;

2001-08-28 Thread sander

ID: 10190
Updated by: sander
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Operating System: any
PHP Version: 4.0.4pl1
New Comment:

Duplicate of 8685.

Previous Comments:


[2001-04-05 13:06:11] [EMAIL PROTECTED]

$var = EOI
blah
EOI;

I would like to have the EOI syntax ignore whitespace when finding the EOI; line

It would make code pretty! :)

Eric





Edit this bug report at http://bugs.php.net/?id=10190edit=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 #10190 Updated: \t$var = EOI\n\tblah\tEOI;

2001-08-28 Thread sander

ID: 10190
Updated by: sander
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Duplicate
Bug Type: Feature/Change Request
Operating System: any
PHP Version: 4.0.4pl1
New Comment:

Oops... duplicate!

Previous Comments:


[2001-08-28 04:16:31] [EMAIL PROTECTED]

Duplicate of 8685.



[2001-04-05 13:06:11] [EMAIL PROTECTED]

$var = EOI
blah
EOI;

I would like to have the EOI syntax ignore whitespace when finding the EOI; line

It would make code pretty! :)

Eric





Edit this bug report at http://bugs.php.net/?id=10190edit=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 Updated: Unable to load dynamic library 'd:\applications\php\extensions\php_oci8.dll' -

2001-08-28 Thread cynic

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

user feedback:

Yes
We found this morming that we had to re-install the oracle client in order to connect 
to the database

closing

Previous Comments:


[2001-08-27 15:59:59] [EMAIL PROTECTED]

Do you have the Oracle client installed on this machine?




[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 #9611 Updated: organization of function reference section of manual

2001-08-28 Thread sander

ID: 9611
Updated by: sander
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Feature/Change Request
Operating System: linux
PHP Version: 4.0.4pl1
New Comment:

Duplicate of 10517.

Previous Comments:


[2001-03-07 22:05:31] [EMAIL PROTECTED]

hi.. great new look on the site.  request for section 4 the function reference 
section of the manual.  we use the manual a lot..  and it would be easier to find 
functions if they were sub categorized..  all database functions grouped together in 
section 4..  and all the rest or the functions in another sub group.  or maybe if the 
database functions were moved to their own category all together.  thanks!





Edit this bug report at http://bugs.php.net/?id=9611edit=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 #9611 Updated: organization of function reference section of manual

2001-08-28 Thread sander

ID: 9611
Updated by: sander
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Duplicate
Bug Type: Feature/Change Request
Operating System: linux
PHP Version: 4.0.4pl1
New Comment:

Sorry... duplicate!

Previous Comments:


[2001-08-28 04:18:22] [EMAIL PROTECTED]

Duplicate of 10517.



[2001-03-07 22:05:31] [EMAIL PROTECTED]

hi.. great new look on the site.  request for section 4 the function reference 
section of the manual.  we use the manual a lot..  and it would be easier to find 
functions if they were sub categorized..  all database functions grouped together in 
section 4..  and all the rest or the functions in another sub group.  or maybe if the 
database functions were moved to their own category all together.  thanks!





Edit this bug report at http://bugs.php.net/?id=9611edit=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 #11070 Updated: '@' does not turn off error checking in foreach()

2001-08-28 Thread sander

ID: 11070
Updated by: sander
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Duplicate
Bug Type: Feature/Change Request
Operating System: linux
PHP Version: 4.0.5
New Comment:

Duplicate of 6118.

Previous Comments:


[2001-05-23 18:52:59] [EMAIL PROTECTED]

Use

if (is_array($a))
foreach ($a as $key = $val) {
/* Do something */
}

until it is added, which it may not be.

-Chris



[2001-05-23 18:47:32] [EMAIL PROTECTED]

it would be nice to see the '@' turn off error reporting on the foreach() command. ie.

?php
  foreach($test as $pos = $val)
  {

  }
?
gives an error because $test is not set.

?php
  foreach(@$test as $pos = $val)
  {

  }
?
gives an error because its the wrong data type.

?php
  @foreach($test as $pos = $val)
  {

  }
?
gives a syntax error. it would be nice if this last command worked :)

  Chris Lee
  [EMAIL PROTECTED]







Edit this bug report at http://bugs.php.net/?id=11070edit=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 #12993: xpath_eval doesn't work anymore (segfault)

2001-08-28 Thread chregu

From: [EMAIL PROTECTED]
Operating system: Debian/unstable Linux 2.4.9
PHP version:  4.0CVS-2001-08-28
PHP Bug Type: DOM XML related
Bug description:  xpath_eval doesn't work anymore (segfault)

actually it does not work in PHP_4_0_7 from cvs as well.

script:
$fd = fopen( $datasrc, r );
$xmlstring = fread( $fd, filesize( $datasrc ) );
fclose( $fd );
$xml = xmldoc($xmlstring);
$xpth = $xml-xpath_new_context($xml);
$node = $xpth-xpath_eval(/root/books);

just segfaults at xpath_eval().

libxml2-version is 2.4.3

chregu
-- 
Edit bug report at: http://bugs.php.net/?id=12993edit=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 #12993 Updated: xpath_eval doesn't work anymore (segfault)

2001-08-28 Thread chregu

ID: 12993
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: DOM XML related
Operating System: Debian/unstable Linux 2.4.9
PHP Version: 4.0CVS-2001-08-28
New Comment:

ah forgot to mention:
the script worked in 4.0.6



Previous Comments:


[2001-08-28 04:21:14] [EMAIL PROTECTED]

actually it does not work in PHP_4_0_7 from cvs as well.

script:
$fd = fopen( $datasrc, r );
$xmlstring = fread( $fd, filesize( $datasrc ) );
fclose( $fd );
$xml = xmldoc($xmlstring);
$xpth = $xml-xpath_new_context($xml);
$node = $xpth-xpath_eval(/root/books);

just segfaults at xpath_eval().

libxml2-version is 2.4.3

chregu





Edit this bug report at http://bugs.php.net/?id=12993edit=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 #12736 Updated: ? just found :)

2001-08-28 Thread sander

ID: 12736
Updated by: sander
Reported By: [EMAIL PROTECTED]
Old Status: Bogus
Status: Open
Old Bug Type: COM related
Bug Type: Reproducible crash
Operating System: windows 98
PHP Version: 4.0.6
New Comment:

It is a bug: it shouldn't crash! Changed to reproducible crash.

Previous Comments:


[2001-08-14 03:55:46] [EMAIL PROTECTED]

Not a bug... you can't use results (resources) on a next page like this.

Ask on the [EMAIL PROTECTED] for more information.

Derick



[2001-08-14 03:51:23] [EMAIL PROTECTED]

hi there. :)

c:\apache\htdocs\bars.php

?php
$ob = new COM (pfAX.obj5);
$rs = $ob-getData(); // this method returns adodb recordset
session_register(rs); // track_vars and 
   // register_globals are on
?

c:\apache\htdocs\rs.php

?php
$num_columns = $rs-Fields-Count(); //trying to call to
 //the recordset
?

So, when I open rs.php, php.exe crashes with (in russian:):

Ïðîãðàììà PHP âûçâàëà ñáîé ïðè îáðàùåíèè ê ñòðàíèöå ïàìÿòè 
â ìîäóëå PHP4TS.DLL ïî àäðåñó 0167:1008519b.
Ðåãèñòðû:
EAX= CS=0167 EIP=1008519b EFLGS=00010246
EBX=007a5750 SS=016f ESP=0063f810 EBP=0065984c
ECX= DS=016f ESI= FS=196f
EDX= ES=016f EDI=007a6e80 GS=
Áàéòû ïî àäðåñó CS:EIP:
8b 4e 08 51 57 e8 9b ef ff ff 8b 5c 24 2c 66 c7 
Ñîäåðæèìîå ñòåêà:
0001 007a541c 000c 0001 0065983c 00761040 006597fc 007a57c8 100b2879 

007a5ae0 007a5750 0001 00761040 0065984c  



[2001-08-14 03:46:42] [EMAIL PROTECTED]

hi there. :)

c:\apache\htdocs\bars.php

?php
$ob = new COM (pfAX.obj5);
$rs = $ob-getData(); // this method returns adodb recordset
session_register(rs); // track_vars and 
   // register_globals are on
?

c:\apache\htdocs\rs.php

?php
$num_columns = $rs-Fields-Count(); //trying to call to
 //the recordset
?

So, when I open rs.php, php.exe crashes with (in russian:):

Ïðîãðàììà PHP âûçâàëà ñáîé ïðè îáðàùåíèè ê ñòðàíèöå ïàìÿòè 
â ìîäóëå PHP4TS.DLL ïî àäðåñó 0167:1008519b.
Ðåãèñòðû:
EAX= CS=0167 EIP=1008519b EFLGS=00010246
EBX=007a5750 SS=016f ESP=0063f810 EBP=0065984c
ECX= DS=016f ESI= FS=196f
EDX= ES=016f EDI=007a6e80 GS=
Áàéòû ïî àäðåñó CS:EIP:
8b 4e 08 51 57 e8 9b ef ff ff 8b 5c 24 2c 66 c7 
Ñîäåðæèìîå ñòåêà:
0001 007a541c 000c 0001 0065983c 00761040 006597fc 007a57c8 100b2879 
 007a5ae0 007a5750 0001 00761040 0065984c  







Edit this bug report at http://bugs.php.net/?id=12736edit=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-28 Thread Zeev Suraski

At 08:10 28-08-01, George Schlossnagle wrote:
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

If you think it would have a significant audience (i.e., more than you :) 
then we can add it in.

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.

Due to the mutual exclusive nature of zend_extension's (extensions that 
modify the engine's behavior), we don't store these inside the PHP source 
tree.  As it came up in the past, we can (and probably should) put up a 
directory of such extensions on php.net.  All we need is someone to 
volunteer to do that.

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 #4884 Updated: array merging(concat) with +

2001-08-28 Thread sander

ID: 4884
Updated by: sander
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Feature/Change Request
Operating System: all
PHP Version: 4.0.0 Release
New Comment:

Why not use $array[]=error_returning_func(); 


Previous Comments:


[2000-06-08 01:22:40] [EMAIL PROTECTED]

if one array is not initialized eg. $array+=error_returning_func();
I think $array should be converted to $array=array() automatically if the other one is 
initialized...





Edit this bug report at http://bugs.php.net/?id=4884edit=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] Re: [PHP-CVS] cvs: php4 /ext/standardbasic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c

2001-08-28 Thread Walter Franzini


[sorry, my English is bad]

Zeev Suraski [EMAIL PROTECTED] writes:

[...]

 Why?  Whatever extension you use on your box, put them in the php.ini.
 dl() is never a better option.

 Zeev

An example not solvable using php.ini:

At SysNet, we access dbms only with odbc_* functions using (for
different apps on the same server) solid and IBMdb2.

We compile ext/odbc/php_odbc.c as solid.so and ibmdb2.so and load the
right module using dl ().  Using php.ini is not feasible because this
lead to multiple function definition.

I think a similar situation may arise with multiple xslt backend, they
must export the same API but could provide different features (or
bugs) so you must use xslt1 for app1 and xslt2 for app2.

Please don't drop dl () :-)

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


-- 
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 #12895 Updated: mysql_fetch_row

2001-08-28 Thread sander

ID: 12895
Updated by: sander
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: MySQL related
Operating System: Debian 2.2
PHP Version: 4.0.6
New Comment:

mysql_fetch_row does NOT return an associative array. Use mysql_fetch_array or 
mysql_fetch_assoc instead.

Previous Comments:


[2001-08-22 09:49:07] [EMAIL PROTECTED]

when i call mysql_fetch_row($result, MYSQL_BOTH) a should got associte array, but 
don't.

if there are some fields with NULL only number is shown not name of field
-
Example:

fields in db: id, t1, n1
value 0, 'text', NULL

after mysql_fetch_row($result, MYSQL_BOTH), print_r returns:
Array([0] = 5 [id] = 5 [1] = 'text' [t1] = 'text' [2] = 2)

there is missing n1 = 2





Edit this bug report at http://bugs.php.net/?id=12895edit=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] Re: [PHP-CVS] cvs: php4 /ext/standard basic_functions.c incomplete_class.c php_incomplete_class.h var.c /ext/wddx wddx.c

2001-08-28 Thread Zeev Suraski

At 11:37 28-08-01, Walter Franzini wrote:

[sorry, my English is bad]

Zeev Suraski [EMAIL PROTECTED] writes:

[...]

  Why?  Whatever extension you use on your box, put them in the php.ini.
  dl() is never a better option.
 
  Zeev

An example not solvable using php.ini:

At SysNet, we access dbms only with odbc_* functions using (for
different apps on the same server) solid and IBMdb2.

We compile ext/odbc/php_odbc.c as solid.so and ibmdb2.so and load the
right module using dl ().  Using php.ini is not feasible because this
lead to multiple function definition.

I think a similar situation may arise with multiple xslt backend, they
must export the same API but could provide different features (or
bugs) so you must use xslt1 for app1 and xslt2 for app2.

Please don't drop dl () :-)

We're not dropping it :)  It works just as well as it did until now, which 
is not too well.  Solving the problems that arise by deprecating dl() 
(improving the ODBC module, for instance) are much easier than solving the 
problems that fixing the broken things about dl().  Right now, we're simply 
keeping the status-quo.

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 #12993 Updated: xpath_eval doesn't work anymore (segfault)

2001-08-28 Thread chregu

ID: 12993
Updated by: chregu
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: DOM XML related
Operating System: Debian/unstable Linux 2.4.9
PHP Version: 4.0CVS-2001-08-28
New Comment:

mmmh...

maybe it was my fault

$node = xpath_eval($xpth,/root/books);

seems to work, so i'm not sure if it's a bug anymore

but comparing to the other syntax, should

$node = $xpth-xpath_eval(/root/books);

not also work?





Previous Comments:


[2001-08-28 04:23:24] [EMAIL PROTECTED]

ah forgot to mention:
the script worked in 4.0.6





[2001-08-28 04:21:14] [EMAIL PROTECTED]

actually it does not work in PHP_4_0_7 from cvs as well.

script:
$fd = fopen( $datasrc, r );
$xmlstring = fread( $fd, filesize( $datasrc ) );
fclose( $fd );
$xml = xmldoc($xmlstring);
$xpth = $xml-xpath_new_context($xml);
$node = $xpth-xpath_eval(/root/books);

just segfaults at xpath_eval().

libxml2-version is 2.4.3

chregu





Edit this bug report at http://bugs.php.net/?id=12993edit=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 #12990 Updated: Problems with system/exec after upgrade

2001-08-28 Thread lyric

ID: 12990
Updated by: lyric
Reported By: [EMAIL PROTECTED]
Status: Open
Old Bug Type: Website problem
Bug Type: *Directory/Filesystem functions
Operating System: Redhat 7.1
PHP Version: 4.0.6
New Comment:

What does $cmd actually return?  system() returns the last line of output from the 
command, which will evaluate to false for things like 0 or .  Try using exec() and 
printing the output from there if you are unsure. 

Previous Comments:


[2001-08-28 02:42:30] [EMAIL PROTECTED]

Hello

Then we made a upgrade från Redhat 7.0 and PHP 404 this syntax stopped to work. It 
keep tellning me that the command failed. 


  if(system($cmd))
$Msg.=The command was successful.;
  else
$Msg.=Nope it didnt worked.;





Edit this bug report at http://bugs.php.net/?id=12990edit=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 #12990 Updated: Problems with system/exec after upgrade

2001-08-28 Thread lyric

ID: 12990
Updated by: lyric
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: *Directory/Filesystem functions
Operating System: Redhat 7.1
PHP Version: 4.0.6


Previous Comments:


[2001-08-28 02:42:30] [EMAIL PROTECTED]

Hello

Then we made a upgrade från Redhat 7.0 and PHP 404 this syntax stopped to work. It 
keep tellning me that the command failed. 


  if(system($cmd))
$Msg.=The command was successful.;
  else
$Msg.=Nope it didnt worked.;





Edit this bug report at http://bugs.php.net/?id=12990edit=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] MFH'ing PEAR changes

2001-08-28 Thread Stig Sæther Bakken

[Zeev Suraski [EMAIL PROTECTED]]
 At 11:08 28-08-01, Stig S. Bakken wrote:
 Any objections against me MHF'ing some non-critical stuff in php4/pear?
 It's so long between each PHP release now that the PEAR stuff that comes
 with PHP is usually outdated by the day of the release. :-P
 
 I don't think PEAR gets thoroughly tested during the RC cycle (am I
 wrong?), so I think it should be fine.

I've not seen any reports from the QA team on PEAR stuff, either it's
not tested, or it's working perfect. :-)

 I think we should go with RC2 soon.  The flow of patches is pretty
 slow right now.

Yes, please.

 - 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 #12985 Updated: mysql_connect() forces reuse of the connection

2001-08-28 Thread mfischer

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

Vedad,

I had exactly the same issue back a few months. Actually I made such a patch and sent 
it to Zeev, unfortunately he didn't included it. And, you're right, the patch is 
trivial.

- Markus

Previous Comments:


[2001-08-27 22:47:02] [EMAIL PROTECTED]

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



[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 #12994: MySQL socket problem

2001-08-28 Thread st

From: [EMAIL PROTECTED]
Operating system: red hat 7.1
PHP version:  4.0.6
PHP Bug Type: *Compile Issues
Bug description:  MySQL socket problem

Hi!

When I edit ./php-4.0.6/ext/mysql/config.m4n to this:
[...]
AC_DEFUN(PHP_MYSQL_SOCK,[
  AC_MSG_CHECKING(for MySQL UNIX socket)
  MYSQL_SOCK=/opt/ezpublish/mysql.sock
#  for i in  \
#  /var/run/mysqld/mysqld.sock \
#  /var/tmp/mysql.sock \
#  /var/lib/mysql/mysql.sock \
#  /var/mysql/mysql.sock \
#  ; do
#if test -r $i; then
#  MYSQL_SOCK=$i
#fi
# done
  AC_DEFINE_UNQUOTED(MYSQL_UNIX_ADDR, $MYSQL_SOCK, [ ])
[...]

then I run ./buildconf and 
./configure  --prefix=/opt/ezpublish/php-4.0.6 
--with-mysql=/opt/ezpublish/mysql-3.23.40 
--with-apxs=/opt/ezpublish/apache-1.3.20/bin/apxs 
--enable-track-vars --enable-trans-sid 
--disable-magic-quotes --with-dom --with-zlib

then make ; make install


Why does it still use /var/lib/mysql.soc etc ? I don't 
have /opt/ezpublish/mysql.sock wich I sat to MYSQL_SOCK 
but it still work well.. 

-- 
Edit bug report at: http://bugs.php.net/?id=12994edit=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 #12909 Updated: CGI sapi compilation fails

2001-08-28 Thread edink

ID: 12909
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Compile Failure
Old Operating System: RedHat Linux 6.2
Operating System: RedHat Linux 6.2-7.1
PHP Version: 4.0CVS-2001-08-22
New Comment:

It seems that extensions as dso's and cgi sapi don't mix well in PHP 4.0.7 RC1.

I've tried to reduce the example to the smallest possible:

So this is what I do:

1. CVS checkout of PHP_4_0_7 branch
2. ./buildconf
3. ./configure \
--with-recode=shared \
--without-mysql \
--without-gd \
--without-xml \
4. make

I get the compilation error:

Making all in .
make[1]: Entering directory `/home/ek/compile/cvs-php'
gcc -I. -I/home/ek/compile/cvs-php/ -I/home/ek/compile/cvs-php/main 
-I/home/ek/compile/cvs-php -I/home/ek/compile/cvs-php/Zend  
-I/home/ek/compile/cvs-php/TSRM -g -O2  -c stub.c  touch stub.lo
/bin/sh /home/ek/compile/cvs-php/libtool --silent --mode=link gcc -I. 
-I/home/ek/compile/cvs-php/ -I/home/ek/compile/cvs-php/main -I/home/ek/compile/cvs-php 
-I/home/ek/compile/cvs-php/Zend  -I/home/ek/compile/cvs-php/TSRM -g -O2   -o 
libphp4.la -rpath /home/ek/compile/cvs-php/libsstub.lo  Zend/libZend.la 
sapi/cgi/libsapi.la main/libmain.la regex/libregex.la ext/pcre/libpcre.la 
ext/posix/libposix.la ext/session/libsession.la ext/standard/libstandard.la 
TSRM/libtsrm.la -lpam -ldl -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcrypt
stub.lo: file not recognized: File truncated
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/home/ek/compile/cvs-php'
make: *** [all-recursive] Error 1

Previous Comments:


[2001-08-22 15:56:08] [EMAIL PROTECTED]

./configure \
--prefix=/data/php \
--with-config-file-path=/data/php \
--disable-debug \
--enable-sigchild 
--disable-magic-quotes \
--disable-short-tags \
--enable-dba=shared \
--with-gdbm=shared,/usr \
--enable-ftp=shared \
--with-gd=shared,/usr \
--with-gettext=shared,/usr \
--with-mysql=shared,/usr/local/mysql \
--with-oci8=shared,/ora01/app/oracle/product/8.1.6 \
--with-pcre-regex=shared \
--with-pgsql=shared,/usr \
--with-recode=shared,/usr \
--enable-shmop \
--with-regex=system \
--enable-sysvsem \
--enable-sysvshm \
--disable-memory-limit \
--with-ldap=shared,/ora01/app/oracle/product/8.1.6/ \
--with-imap=shared,/data/src/imap \
--with-zlib=shared,/usr \
--enable-sockets=shared \
--with-apxs=/data/apache/bin/apxs



[2001-08-22 15:47:42] [EMAIL PROTECTED]

And your configure line was..?

--Jani




[2001-08-22 15:40:24] [EMAIL PROTECTED]

I did a checkout with -r PHP_4_0_7 so I'm talking about that branch of the cvs tree.

The error message:

Making all in .
make[1]: Entering directory `/data/src/cvs-php'
gcc -I. -I/data/src/cvs-php/ -I/data/src/cvs-php/main -I/data/src/cvs-php 
-I/data/src/cvs-php/Zend -I/data/src/imap/c-client 
-I/ora01/app/oracle/product/8.1.6//ldap/public -I/usr/local/mysql/include/mysql 
-I/ora01/app/oracle/product/8.1.6/rdbms/public 
-I/ora01/app/oracle/product/8.1.6/rdbms/demo 
-I/ora01/app/oracle/product/8.1.6/network/public -I/data/src/cvs-php/ext/xml/expat  
-I/data/src/cvs-php/TSRM -g -O2  -c stub.c  touch stub.lo
/bin/sh /data/src/cvs-php/libtool --silent --mode=link gcc -I. -I/data/src/cvs-php/ 
-I/data/src/cvs-php/main -I/data/src/cvs-php -I/data/src/cvs-php/Zend 
-I/data/src/imap/c-client -I/ora01/app/oracle/product/8.1.6//ldap/public 
-I/usr/local/mysql/include/mysql -I/ora01/app/oracle/product/8.1.6/rdbms/public 
-I/ora01/app/oracle/product/8.1.6/rdbms/demo 
-I/ora01/app/oracle/product/8.1.6/network/public -I/data/src/cvs-php/ext/xml/expat
 -I/data/src/cvs-php/TSRM -g -O2   -o libphp4.la -rpath /data/src/cvs-php/libs
stub.lo  Zend/libZend.la sapi/cgi/libsapi.la main/libmain.la  ext/posix/libposix.la 
ext/session/libsession.la ext/shmop/libshmop.la ext/standard/libstandard.la 
ext/sysvsem/libsysvsem.la ext/sysvshm/libsysvshm.la ext/xml/libxml.la TSRM/libtsrm.la 
-lpam -ldl -lcrypt -lpam -lgd -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcrypt
stub.lo: file not recognized: File truncated
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/data/src/cvs-php'
make: *** [all-recursive] Error 1

builconf says:

./buildconf
buildconf: checking installation...
buildconf: autoconf version 2.13 (ok)
buildconf: automake version 1.4 (ok)
buildconf: libtool version 1.4 (ok)
rebuilding Makefile templates
automake: configure.in: installing `Zend/ylwrap'
rebuilding configure
rebuilding acconfig.h
rebuilding main/php_config.h.in

Apache sapi version compiles and builds fine





Edit this bug report at 

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

2001-08-28 Thread sniper

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

user error

Previous Comments:


[2001-08-28 04:18:18] [EMAIL PROTECTED]

user feedback:

Yes
We found this morming that we had to re-install the oracle client in order to connect 
to the database

closing



[2001-08-27 15:59:59] [EMAIL PROTECTED]

Do you have the Oracle client installed on this machine?




[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 #7463 Updated: File Upload Feature Request

2001-08-28 Thread sniper

ID: 7463
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Closed
Status: Bogus
Bug Type: Feature/Change Request
Operating System: Debian Linux 2.2.17
PHP Version: 4.0.0


Previous Comments:


[2000-10-25 16:06:38] [EMAIL PROTECTED]

Hello,
I would like to see a feature in PHP, that solves a problem I currently only can solve 
by writing a CGI script in Perl, which I'd rather not do...
I understand that when uploading a file (POST request) from a form, the file is stored 
at a temporary location on the server. However, I want to read file data in small 
chunks, passing each chunk along to another server, i.e. stream the file data 
through my server. Is this anything that would be interesting to introduce in PHP, or 
is it already possible and I'm making a fool of myself? :-)
Btw, the key issue here is that I want to make it possible to send a file that is 1 Gb 
(or some other large value) in size to my server, that only has 200 Mb (less than the 
file size) of free space...

Best regards,
Per Jönsson





Edit this bug report at http://bugs.php.net/?id=7463edit=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] Rép. : Bug #12977 Updated: Unable to load dynamic library 'd:\applications\php\extensions\php_oci8.dll' -

2001-08-28 Thread Philippe BABILOTTE

yes... sorry

 Bug Database [EMAIL PROTECTED] 28/08/2001 11:06:34 
ID: 12977
Updated by: sniper
Reported By: [EMAIL PROTECTED] 
Old Status: Closed
Status: Bogus
Bug Type: OCI8 related
Operating System: WINDOWS 2000 + iis 5
PHP Version: 4.0.6
New Comment:

user error

Previous Comments:


[2001-08-28 04:18:18] [EMAIL PROTECTED] 

user feedback:

Yes
We found this morming that we had to re-install the oracle client in order to connect 
to the database

closing



[2001-08-27 15:59:59] [EMAIL PROTECTED] 

Do you have the Oracle client installed on this machine?




[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






ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=12977edit=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 #12994 Updated: MySQL socket problem

2001-08-28 Thread sniper

ID: 12994
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Old Bug Type: *Compile Issues
Bug Type: MySQL related
Operating System: red hat 7.1
PHP Version: 4.0.6
New Comment:

Please use this php.ini directive instead of tampering with
configure:

; Default socket name for local MySQL connects.  If empty, uses the built-in MySQL 
defaults.
mysql.default_socket =


Not a bug.


Previous Comments:


[2001-08-28 05:05:12] [EMAIL PROTECTED]

Hi!

When I edit ./php-4.0.6/ext/mysql/config.m4n to this:
[...]
AC_DEFUN(PHP_MYSQL_SOCK,[
  AC_MSG_CHECKING(for MySQL UNIX socket)
  MYSQL_SOCK=/opt/ezpublish/mysql.sock
#  for i in  \
#  /var/run/mysqld/mysqld.sock \
#  /var/tmp/mysql.sock \
#  /var/lib/mysql/mysql.sock \
#  /var/mysql/mysql.sock \
#  ; do
#if test -r $i; then
#  MYSQL_SOCK=$i
#fi
# done
  AC_DEFINE_UNQUOTED(MYSQL_UNIX_ADDR, $MYSQL_SOCK, [ ])
[...]

then I run ./buildconf and 
./configure  --prefix=/opt/ezpublish/php-4.0.6 
--with-mysql=/opt/ezpublish/mysql-3.23.40 
--with-apxs=/opt/ezpublish/apache-1.3.20/bin/apxs 
--enable-track-vars --enable-trans-sid 
--disable-magic-quotes --with-dom --with-zlib

then make ; make install


Why does it still use /var/lib/mysql.soc etc ? I don't 
have /opt/ezpublish/mysql.sock wich I sat to MYSQL_SOCK 
but it still work well.. 






Edit this bug report at http://bugs.php.net/?id=12994edit=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 #12909 Updated: CGI sapi compilation fails

2001-08-28 Thread sniper

ID: 12909
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Critical
Bug Type: Compile Failure
Operating System: RedHat Linux 6.2-7.1
PHP Version: 4.0CVS-2001-08-22
New Comment:

Marked as FIX before release (4.0.7 !!)


Previous Comments:


[2001-08-28 05:05:37] [EMAIL PROTECTED]

It seems that extensions as dso's and cgi sapi don't mix well in PHP 4.0.7 RC1.

I've tried to reduce the example to the smallest possible:

So this is what I do:

1. CVS checkout of PHP_4_0_7 branch
2. ./buildconf
3. ./configure \
--with-recode=shared \
--without-mysql \
--without-gd \
--without-xml \
4. make

I get the compilation error:

Making all in .
make[1]: Entering directory `/home/ek/compile/cvs-php'
gcc -I. -I/home/ek/compile/cvs-php/ -I/home/ek/compile/cvs-php/main 
-I/home/ek/compile/cvs-php -I/home/ek/compile/cvs-php/Zend  
-I/home/ek/compile/cvs-php/TSRM -g -O2  -c stub.c  touch stub.lo
/bin/sh /home/ek/compile/cvs-php/libtool --silent --mode=link gcc -I. 
-I/home/ek/compile/cvs-php/ -I/home/ek/compile/cvs-php/main -I/home/ek/compile/cvs-php 
-I/home/ek/compile/cvs-php/Zend  -I/home/ek/compile/cvs-php/TSRM -g -O2   -o 
libphp4.la -rpath /home/ek/compile/cvs-php/libsstub.lo  Zend/libZend.la 
sapi/cgi/libsapi.la main/libmain.la regex/libregex.la ext/pcre/libpcre.la 
ext/posix/libposix.la ext/session/libsession.la ext/standard/libstandard.la 
TSRM/libtsrm.la -lpam -ldl -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcrypt
stub.lo: file not recognized: File truncated
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/home/ek/compile/cvs-php'
make: *** [all-recursive] Error 1



[2001-08-22 15:56:08] [EMAIL PROTECTED]

./configure \
--prefix=/data/php \
--with-config-file-path=/data/php \
--disable-debug \
--enable-sigchild 
--disable-magic-quotes \
--disable-short-tags \
--enable-dba=shared \
--with-gdbm=shared,/usr \
--enable-ftp=shared \
--with-gd=shared,/usr \
--with-gettext=shared,/usr \
--with-mysql=shared,/usr/local/mysql \
--with-oci8=shared,/ora01/app/oracle/product/8.1.6 \
--with-pcre-regex=shared \
--with-pgsql=shared,/usr \
--with-recode=shared,/usr \
--enable-shmop \
--with-regex=system \
--enable-sysvsem \
--enable-sysvshm \
--disable-memory-limit \
--with-ldap=shared,/ora01/app/oracle/product/8.1.6/ \
--with-imap=shared,/data/src/imap \
--with-zlib=shared,/usr \
--enable-sockets=shared \
--with-apxs=/data/apache/bin/apxs



[2001-08-22 15:47:42] [EMAIL PROTECTED]

And your configure line was..?

--Jani




[2001-08-22 15:40:24] [EMAIL PROTECTED]

I did a checkout with -r PHP_4_0_7 so I'm talking about that branch of the cvs tree.

The error message:

Making all in .
make[1]: Entering directory `/data/src/cvs-php'
gcc -I. -I/data/src/cvs-php/ -I/data/src/cvs-php/main -I/data/src/cvs-php 
-I/data/src/cvs-php/Zend -I/data/src/imap/c-client 
-I/ora01/app/oracle/product/8.1.6//ldap/public -I/usr/local/mysql/include/mysql 
-I/ora01/app/oracle/product/8.1.6/rdbms/public 
-I/ora01/app/oracle/product/8.1.6/rdbms/demo 
-I/ora01/app/oracle/product/8.1.6/network/public -I/data/src/cvs-php/ext/xml/expat  
-I/data/src/cvs-php/TSRM -g -O2  -c stub.c  touch stub.lo
/bin/sh /data/src/cvs-php/libtool --silent --mode=link gcc -I. -I/data/src/cvs-php/ 
-I/data/src/cvs-php/main -I/data/src/cvs-php -I/data/src/cvs-php/Zend 
-I/data/src/imap/c-client -I/ora01/app/oracle/product/8.1.6//ldap/public 
-I/usr/local/mysql/include/mysql -I/ora01/app/oracle/product/8.1.6/rdbms/public 
-I/ora01/app/oracle/product/8.1.6/rdbms/demo 
-I/ora01/app/oracle/product/8.1.6/network/public -I/data/src/cvs-php/ext/xml/expat
 -I/data/src/cvs-php/TSRM -g -O2   -o libphp4.la -rpath /data/src/cvs-php/libs
stub.lo  Zend/libZend.la sapi/cgi/libsapi.la main/libmain.la  ext/posix/libposix.la 
ext/session/libsession.la ext/shmop/libshmop.la ext/standard/libstandard.la 
ext/sysvsem/libsysvsem.la ext/sysvshm/libsysvshm.la ext/xml/libxml.la TSRM/libtsrm.la 
-lpam -ldl -lcrypt -lpam -lgd -lcrypt -lresolv -lm -ldl -lnsl -lresolv -lcrypt
stub.lo: file not recognized: File truncated
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/data/src/cvs-php'
make: *** [all-recursive] Error 1

builconf says:

./buildconf
buildconf: checking installation...
buildconf: autoconf version 2.13 (ok)
buildconf: automake version 1.4 (ok)
buildconf: libtool version 1.4 (ok)
rebuilding Makefile templates
automake: configure.in: installing `Zend/ylwrap'
rebuilding configure
rebuilding acconfig.h
rebuilding main/php_config.h.in

Apache sapi version compiles and builds fine


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

2001-08-28 Thread vedad

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

Thank you Markus, i don't feel alone any more :-)

By the way after a little bit of reflection and yamba, maybe a configure option (that 
defaults to current behaviour) would be more suitable, rather than modifying the mysql 
api and the docs (i understand that this might confuse a lot of developers).
I beleive this would have no impact on php users (devs),  only system admins would be 
concerned (and cpu cycles loss would probably be microscopic).

please consider this :)

later
-- vedad

Previous Comments:


[2001-08-28 05:03:05] [EMAIL PROTECTED]

Vedad,

I had exactly the same issue back a few months. Actually I made such a patch and sent 
it to Zeev, unfortunately he didn't included it. And, you're right, the patch is 
trivial.

- Markus



[2001-08-27 22:47:02] [EMAIL PROTECTED]

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



[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]




RE: [PHP-DEV] Bug #12989: php sets the wrong default header (use not mimetypes)

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

Have a look a the 

default_mimetype = text/html

Entry in your php.ini

Subject: [PHP-DEV] Bug #12989: php sets the wrong default header (use not
mimetypes)
From: [EMAIL PROTECTED]
Operating system: 
PHP version:  4.0.6
PHP Bug Type: Apache related
Bug description:  php sets the wrong default header (use not mimetypes)

i want to parse .wml sites with php, the problem is the default header.

-- 
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] Bug #12991: Wrong content type while parsing .wml files which are parsed by php

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

Have a look a the 

default_mimetype = text/html

Entry in your php.ini

Subject: [PHP-DEV] Bug #12991: Wrong content type while parsing .wml files
which are parsed by php
From: [EMAIL PROTECTED]
Operating system: Linux with Apache 1.3.20
PHP version:  4.0.6
PHP Bug Type: Unknown/Other Function
Bug description:  Wrong content type while parsing .wml files which are
parsed by php

-- 
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 #12990 Updated: Problems with system/exec after upgrade

2001-08-28 Thread lyric

ID: 12990
Updated by: lyric
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: Program Execution
Operating System: Redhat 7.1
PHP Version: 4.0.6
New Comment:

User replied:
---
The problem is that I used exec() before the update and it worked fine. I have another 
script that does the same thing that script doesnt work anymore either.

No other employee at my work have changed the file so the update is the only thing I 
can think of to blame.
---

Plenty of things changed, including a lot of stuff with Redhat 7.0 - 7.1.  Did you 
recompile PHP after the upgrade?

Again, what does $cmd actually return?  Also, try :
   $line = system($cmd,$retvar);
   $msg = system($cmd) -- $retvar, $line;
and tell me what it says

Previous Comments:


[2001-08-28 04:51:04] [EMAIL PROTECTED]

What does $cmd actually return?  system() returns the last line of output from the 
command, which will evaluate to false for things like 0 or .  Try using exec() and 
printing the output from there if you are unsure. 



[2001-08-28 02:42:30] [EMAIL PROTECTED]

Hello

Then we made a upgrade från Redhat 7.0 and PHP 404 this syntax stopped to work. It 
keep tellning me that the command failed. 


  if(system($cmd))
$Msg.=The command was successful.;
  else
$Msg.=Nope it didnt worked.;





Edit this bug report at http://bugs.php.net/?id=12990edit=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] libxml / dom functions

2001-08-28 Thread ben-lists


Hi,

i'm interested in using the libxml / DOM functions, they are however
marked EXPERIMENTAL. How far away are they from being included in PHP ?

Is there any help needed to make them safe to use ?

Regards,
Benno

-- 
Sebastian Benoit [EMAIL PROTECTED] / Software Engineer


-- 
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 #12994 Updated: MySQL socket problem

2001-08-28 Thread Sten Thorstensen


Where do I find php.ini ? 
This is my configure line:
./configure  --prefix=/opt/ezpublish/php-4.0.6
--with-mysql=/opt/ezpublish/mysql-3.23.40
--with-apxs=/opt/ezpublish/apache-1.3.20/bin/apxs
--enable-track-vars --enable-trans-sid
--disable-magic-quotes --with-dom --with-zlib


On Tuesday 28 August 2001 11:16, Bug Database wrote:
 ID: 12994
 Updated by: sniper
 Reported By: [EMAIL PROTECTED]
 Old Status: Open
 Status: Bogus
 Old Bug Type: *Compile Issues
 Bug Type: MySQL related
 Operating System: red hat 7.1
 PHP Version: 4.0.6
 New Comment:

 Please use this php.ini directive instead of tampering with
 configure:

 ; Default socket name for local MySQL connects.  If empty, uses the
 built-in MySQL defaults. mysql.default_socket =


 Not a bug.


 Previous Comments:
 

 [2001-08-28 05:05:12] [EMAIL PROTECTED]

 Hi!

 When I edit ./php-4.0.6/ext/mysql/config.m4n to this:
 [...]
 AC_DEFUN(PHP_MYSQL_SOCK,[
   AC_MSG_CHECKING(for MySQL UNIX socket)
   MYSQL_SOCK=/opt/ezpublish/mysql.sock
 #  for i in  \
 #  /var/run/mysqld/mysqld.sock \
 #  /var/tmp/mysql.sock \
 #  /var/lib/mysql/mysql.sock \
 #  /var/mysql/mysql.sock \
 #  ; do
 #if test -r $i; then
 #  MYSQL_SOCK=$i
 #fi
 # done
   AC_DEFINE_UNQUOTED(MYSQL_UNIX_ADDR, $MYSQL_SOCK, [ ])
 [...]

 then I run ./buildconf and
 ./configure  --prefix=/opt/ezpublish/php-4.0.6
 --with-mysql=/opt/ezpublish/mysql-3.23.40
 --with-apxs=/opt/ezpublish/apache-1.3.20/bin/apxs
 --enable-track-vars --enable-trans-sid
 --disable-magic-quotes --with-dom --with-zlib

 then make ; make install


 Why does it still use /var/lib/mysql.soc etc ? I don't
 have /opt/ezpublish/mysql.sock wich I sat to MYSQL_SOCK
 but it still work well..


 



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

-- 
Sten Thorstensen [EMAIL PROTECTED]
eZ systems as 
http://ez.no

-- 
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] python dictionary-like % (percent) substitution in php (was: Good idea in % (percent) substitutions in string)

2001-08-28 Thread ---

I have seen that in php there isn't nothing similar to dictionary
substitution in python.
(a dictionary is an array with string keys, like hash in perl)

This change consist in adding two functions (a stay for array):
aprintf(string format, array dict) -- like printf, print the result
saprintf(string format, array dict) -- like sprintf, return the result

It works like this (written in php-like language):

format - my name is %(name)s and i'm %(age)s
dict - array( name=tom, age= eighteen );

(in php, unlike python, is possible to make an array with both string and
number indices, so the format can be also %(2)s,...)

aprintf(format,dict) -- print my name is tom and i'm eighteen
saprintf(format,dict) -- return my name is tom and i'm eighteen

in python, these substitutions are very useful, especially in cgi
programming, for making templates from text files, in php could be
useful in, for example, language customisation, or message formatting,
etc...

An example:
if ($lang == it)
  define(MESSAGE,il %(animal)s %(color)s sta %(action)s %(target)s);
else
  define(MESSAGE,the %(color)s %(animal)s is %(action)s);

aprintf(MESSAGE,array(animal=cobra,color=green,action=eating,target
=mouse));
// if the %(target)s isn't found, is ignored.


(the s terminator could be substituted with other letters, like d for
numbers, etc...)

This approach has several advantages over something like this:
the $color $animal is $action
because in this phrase, variables are substituted when the parser execute
it, and in this case:
the %(color)s %(animal)s is %(action)s
parameters are substituted only when the phrase is parsed with a specialized
function like aprintf



I think that this is a good idea and could save a lot of time when the
program need to be as modular as possible.


Federico Marani
[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] python dictionary-like % (percent) substitution in php (was: Good idea in % (percent) substitutions in string)

2001-08-28 Thread Zeev Suraski

I think that's a pretty good idea.

At 13:25 28-08-01, --- wrote:
I have seen that in php there isn't nothing similar to dictionary
substitution in python.
(a dictionary is an array with string keys, like hash in perl)

This change consist in adding two functions (a stay for array):
aprintf(string format, array dict) -- like printf, print the result
saprintf(string format, array dict) -- like sprintf, return the result

It works like this (written in php-like language):

format - my name is %(name)s and i'm %(age)s
dict - array( name=tom, age= eighteen );

(in php, unlike python, is possible to make an array with both string and
number indices, so the format can be also %(2)s,...)

aprintf(format,dict) -- print my name is tom and i'm eighteen
saprintf(format,dict) -- return my name is tom and i'm eighteen

in python, these substitutions are very useful, especially in cgi
programming, for making templates from text files, in php could be
useful in, for example, language customisation, or message formatting,
etc...

An example:
if ($lang == it)
   define(MESSAGE,il %(animal)s %(color)s sta %(action)s %(target)s);
else
   define(MESSAGE,the %(color)s %(animal)s is %(action)s);

aprintf(MESSAGE,array(animal=cobra,color=green,action=eating,target
=mouse));
// if the %(target)s isn't found, is ignored.


(the s terminator could be substituted with other letters, like d for
numbers, etc...)

This approach has several advantages over something like this:
the $color $animal is $action
because in this phrase, variables are substituted when the parser execute
it, and in this case:
the %(color)s %(animal)s is %(action)s
parameters are substituted only when the phrase is parsed with a specialized
function like aprintf



I think that this is a good idea and could save a lot of time when the
program need to be as modular as possible.


Federico Marani
[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 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 #12995: Failed opening ... in Unknown on line 0

2001-08-28 Thread se

From: [EMAIL PROTECTED]
Operating system: SuSE Linux 7.2
PHP version:  4.0.6
PHP Bug Type: Filesystem function related
Bug description:  Failed opening ... in Unknown on line 0

I get this warning:
Warning: Failed opening 'path_to_a_script' for inclusion
(include_path='.:/path/to/a/include/directory') in Unknown on line 0

Sometimes everything works fine, sometimes don't - without changing
anything in the php.ini or httpd.conf . A few days ago I updated from
php4.0.4 to php4.0.6 and after that the problems begann. 
All parameters in 4.0.6 are the same than in 4.0.4.

Do you need more informations?

Bye,
Sascha Emondts
-- 
Edit bug report at: http://bugs.php.net/?id=12995edit=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-28 Thread Peter \[DiSAStA]\ Petermann

Hi George,

 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
As far as i have seen youre only able to send messages with your extension,
since i dont know how to read them (couldnt find any read function in your
source)
and i wasnt able to download spread itself  (files from spread.org are
corrupted),
i would like to ask you, how this messages are received, and if it is possible
to read
them with PHP, or if i missunderstood the idea.

btw: you should clean your download, (imho) there is no need for files like
config.cache etc.
in your archive =)

Peter Petermann
--
*ZIMT - where PHP meets needs*
www.cyberfly.net - [EMAIL PROTECTED]
www.phpug.de - [EMAIL PROTECTED]
www.php-center.de - [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 #12996: PHP4 (pdf) Manuals

2001-08-28 Thread roettal

From: [EMAIL PROTECTED]
Operating system: 
PHP version:  4.0.6
PHP Bug Type: Unknown/Other Function
Bug description:  PHP4 (pdf) Manuals

Hello,

the pdf Manuals (for PHP4) i have downloaded from this web page has a great
mistake. Than I jump to a Chapter I see not the Chapter Titel. Please
change the pdf Files for the PHP4 Manual.

Thanks.
-- 
Edit bug report at: http://bugs.php.net/?id=12996edit=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 #12997: readfile() does not work fine with 'if' and case clauses

2001-08-28 Thread com§

From: [EMAIL PROTECTED]§
Operating system: apache
PHP version:  4.0.4pl1
PHP Bug Type: Filesystem function related
Bug description:  readfile() does not work fine with 'if' and case clauses 

I have rather complicated architechture in my php-program (including a kind
of programhandler...)
In one php-file I tried to send an pdf-formatted file to the browser by
using readfile -function. For my huge appointment it did not work well
with if and case clauses. And the most imazing was that exactly same
script worked in an other php-file (where the architecture was simplier).

I give you a simple example how the bug behaves
*
$i=1;
if ($i==1)
  readfile(example.txt);  //and nothing happens
*
$i=1;
if ($i==1)
  readfile(example.txt);  //this worked well
else
  readfile(example.txt);  //this was just for debugging
*

As you see, it seems to be no sence at all!!! 
You propably think that I had somethin wrong with my code, but no, I and my
work mate debugged this problem a half day and I am sure that this bug was
just like I said.
I thought that I could have somethin wrong with the libraries but no error
occurs...
The libraries are self made and working well in other programs.
-- 
Edit bug report at: http://bugs.php.net/?id=12997edit=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 #12997 Updated: readfile() does not work fine with 'if' and case clauses

2001-08-28 Thread lyric

ID: 12997
Updated by: lyric
Reported By: [EMAIL PROTECTED]§
Old Status: Open
Status: Bogus
Bug Type: Filesystem function related
Operating System: apache
PHP Version: 4.0.4pl1
New Comment:

You need to put quotes around a literal string like example.txt, otherwise PHP 
thinks it's the concatenation of two strings example and txt.

Previous Comments:


[2001-08-28 07:11:45] [EMAIL PROTECTED]§

I have rather complicated architechture in my php-program (including a kind of 
programhandler...)
In one php-file I tried to send an pdf-formatted file to the browser by using 
readfile -function. For my huge appointment it did not work well with if and 
case clauses. And the most imazing was that exactly same script worked in an other 
php-file (where the architecture was simplier). 
I give you a simple example how the bug behaves
*
$i=1;
if ($i==1)
  readfile(example.txt);  //and nothing happens
*
$i=1;
if ($i==1)
  readfile(example.txt);  //this worked well
else
  readfile(example.txt);  //this was just for debugging
*

As you see, it seems to be no sence at all!!! 
You propably think that I had somethin wrong with my code, but no, I and my work mate 
debugged this problem a half day and I am sure that this bug was just like I said.
I thought that I could have somethin wrong with the libraries but no error occurs...
The libraries are self made and working well in other programs.





Edit this bug report at http://bugs.php.net/?id=12997edit=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 #3427 Updated: Too many \n in show_source

2001-08-28 Thread sander

ID: 3427
Updated by: sander
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: 4.0
New Comment:

Seems to be fixed in 4.0.6.

Previous Comments:


[2001-02-10 14:05:16] [EMAIL PROTECTED]

refiled against 4.0.



[2000-02-08 09:29:36] [EMAIL PROTECTED]

language-scanner.lex
line 87 and 88, please remove \n

Reason:
When I present my source and people copy/paste it they get a space between ( and .

Thanks for PHP :-)





Edit this bug report at http://bugs.php.net/?id=3427edit=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 #12998: ext/standard/filestat.c fails compile

2001-08-28 Thread randy

From: [EMAIL PROTECTED]
Operating system: slack linux -- 2.0.34
PHP version:  4.0.6
PHP Bug Type: Compile Failure
Bug description:  ext/standard/filestat.c fails compile

ext/standard/filestat.c fails compile at line 157.
Compiler does not know size of statfs

#include sys/vfs.h directly before definition of buf
allows clean compile.  May not be the appropriate or best
fix.  We'll see ...

#ifdef logic looks broken, though I do not have the time
to verify that hunch ...

-- 
Edit bug report at: http://bugs.php.net/?id=12998edit=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 #12999: configure with sablotron support

2001-08-28 Thread unividuum

From: [EMAIL PROTECTED]
Operating system: Slackware Linux 8.0
PHP version:  4.0.6
PHP Bug Type: Sablotron XSL
Bug description:  configure with sablotron support

hi,


i can't compile php 4.0.6 and higher (4.0.7RC1) with sablotron support. i'm
always getting a configure error:


configure: error: iconv not found


my configure line:





--with-apache=/usr/src/apache_1.3.20 --with-mysql=/usr/local/mysql
--with-gd --with-jpeg=/usr --with-jpeg-dir=/usr --with-xpm-dir=/usr/X11R6
--with-png-dir=/usr --with-zlib-dir=/usr --with-ttf=/usr/lib
--with-tiff-dir=/usr/lib --with-curl=/usr/src/curl-7.8.1
--with-freetype-dir=/usr/src/freetype-2.0.4
--with-config-file-path=/usr/local/etc --with-openssl=/usr --enable-sockets
--enable-ftp --enable-versioning --enable-track-vars=yes
--enable-url-includes --enable-sysvshm=yes --enable-sysvsem=yes
--disable-debug --with-swf=/usr --enable-dbg=shared --disable-safe-mode
--enable-trans-sid --enable-bf --enable-shmop --enable-inline-optimization
--with-bz2=/usr/lib --with-mhash=/usr/local --enable-gd-native-ttf=yes
--enable-calendar --with-pdflib=/usr/lib/tcl8.3/pdflib
--with-dom=/usr/local --with-zlib=/usr --with-pgsql=/usr/local/pgsql
--with-t1lib=/usr/local --with-mm=/usr --with-qtdom=/usr/lib/qt-2.2.1
--enable-bcmath --with-gettext=/usr --with-mcrypt=/usr/local
--with-readline=/usr --with-iodbc=/usr/local
--with-mnogosearch=/usr/local/mnogosearch --with-gmp
--with-sablot=/usr/local





you can view the config.log at www.unividuum.de/config.log .





anything else you need to know?


thanks,


cu.
-- 
Edit bug report at: http://bugs.php.net/?id=12999edit=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 #13000: I can't switch safe_mode OFF!

2001-08-28 Thread lopez

From: [EMAIL PROTECTED]
Operating system: SuseLinux 7.2
PHP version:  4.0.6
PHP Bug Type: PHP options/info functions
Bug description:  I can't switch safe_mode OFF!

I have following line in my php.ini
; Safe Mode
safe_mode   = Off

But a site with phpinfo() displays safe mode ON!
I also tried to delete this line, but same effect!

PHP is compiled with
'./configure' '--with-apache=../apache_1.3.20' '--enable-calendar'
'--enable-ftp' '--with-mysql' '--enable-trans-sid' '--enable-sockets'
'--with-regex=php' '--enable-memory-limit' '--enable-track-vars'
'--with-zlib' '--enable-sysvshm'

Any ideas?
-- 
Edit bug report at: http://bugs.php.net/?id=13000edit=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] python dictionary-like % (percent) substitution in php (was: Good idea in % (percent) substitutions in string)

2001-08-28 Thread James Moore


- Original Message -
From: Zeev Suraski [EMAIL PROTECTED]
To: --- @zend.com
Cc: [EMAIL PROTECTED]
Sent: Tuesday, August 28, 2001 11:51 AM
Subject: Re: [PHP-DEV] python dictionary-like % (percent) substitution in
php (was: Good idea in % (percent) substitutions in string)


 I think that's a pretty good idea.

+1

- 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]




Re: [PHP-DEV] python dictionary-like % (percent) substitution inphp (was: Good idea in % (percent) substitutions in string)

2001-08-28 Thread Mathieu Kooiman




On Tue, 28 Aug 2001, it was written:

 I have seen that in php there isn't nothing similar to dictionary
 substitution in python.
 (a dictionary is an array with string keys, like hash in perl)
 
 This change consist in adding two functions (a stay for array):
 aprintf(string format, array dict) -- like printf, print the result
 saprintf(string format, array dict) -- like sprintf, return the result
qy 
 It works like this (written in php-like language):
 
 format - my name is %(name)s and i'm %(age)s
 dict - array( name=tom, age= eighteen );
 
 (in php, unlike python, is possible to make an array with both string and
 number indices, so the format can be also %(2)s,...)
 
 aprintf(format,dict) -- print my name is tom and i'm eighteen
 saprintf(format,dict) -- return my name is tom and i'm eighteen
 
 in python, these substitutions are very useful, especially in cgi
 programming, for making templates from text files, in php could be
 useful in, for example, language customisation, or message formatting,
 etc...
 
 An example:
 if ($lang == it)
   define(MESSAGE,il %(animal)s %(color)s sta %(action)s %(target)s);
 else
   define(MESSAGE,the %(color)s %(animal)s is %(action)s);
 
 aprintf(MESSAGE,array(animal=cobra,color=green,action=eating,target
 =mouse));
 // if the %(target)s isn't found, is ignored.
 
 
 (the s terminator could be substituted with other letters, like d for
 numbers, etc...)
 
 This approach has several advantages over something like this:
 the $color $animal is $action
 because in this phrase, variables are substituted when the parser execute
 it, and in this case:
 the %(color)s %(animal)s is %(action)s
 parameters are substituted only when the phrase is parsed with a specialized
 function like aprintf
 
 
 
 I think that this is a good idea and could save a lot of time when the
 program need to be as modular as possible.
 
 
 Federico Marani
 [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 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] python dictionary-like % (percent) substitution inphp (was: Good idea in % (percent) substitutions in string)

2001-08-28 Thread Mathieu Kooiman


Crap! Hit send for some reason.. 
When I just decided to *not* send anything :P

Sorry.

Met vriendelijke groet,

Mathieu Kooiman [EMAIL PROTECTED], [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 #13001: Unable to load dynamic library

2001-08-28 Thread adriano

From: [EMAIL PROTECTED]
Operating system: Conectiva Linux 6
PHP version:  4.0.6
PHP Bug Type: Dynamic loading
Bug description:  Unable to load dynamic library

Warning: Unable to load dynamic library '/usr/local/lib/php/gd.so' -
/usr/local/lib/php/extensions/gd.so: undefined symbol: gdImagePngCtx in
/home/htdocs/xxx.php on line 3


-- 
Edit bug report at: http://bugs.php.net/?id=13001edit=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] python dictionary-like % (percent) substitution in php (was: Good idea in % (percent) substitutions in string)

2001-08-28 Thread Jo Giraerts

This is already possible in php, though with the following simple
function..

   // function to read a file with php-vars in as a string
   // $predefined_vars: an array (varname = value). all the
   // variablenames defined in this array can be used in the bodyfile.
   // They will receive the respective values. This makes personalising
   // the mailes easier..
   function file_as_body($filename, $predefined_vars)
   {
  $ar = file($filename);
  extract($predefined_vars);

  foreach ($ar as $number = $line)
  {
 eval(\$ar2[] = \$line\;);
  }

  return implode(,$ar2);
   }

and for instance this file as template:

--- template file
You received a file on ( . date(d/m/Y (H:i)) . )

filename: .basename($file) .
filesize: .filesize($file) .
mimetype: $mimetype

Hope you enjoy it..
---

You can even use php-code already, thanks to eval :)

Maybe we better make it a PEAR-thing?




On Tue, Aug 28, 2001 at 12:25:15PM +0200,  wrote:
 I have seen that in php there isn't nothing similar to dictionary
 substitution in python.
 (a dictionary is an array with string keys, like hash in perl)
 
 This change consist in adding two functions (a stay for array):
 aprintf(string format, array dict) -- like printf, print the result
 saprintf(string format, array dict) -- like sprintf, return the result
 
 It works like this (written in php-like language):
 
 format - my name is %(name)s and i'm %(age)s
 dict - array( name=tom, age= eighteen );
 
 (in php, unlike python, is possible to make an array with both string and
 number indices, so the format can be also %(2)s,...)
 
 aprintf(format,dict) -- print my name is tom and i'm eighteen
 saprintf(format,dict) -- return my name is tom and i'm eighteen
 
 in python, these substitutions are very useful, especially in cgi
 programming, for making templates from text files, in php could be
 useful in, for example, language customisation, or message formatting,
 etc...
 
 An example:
 if ($lang == it)
   define(MESSAGE,il %(animal)s %(color)s sta %(action)s %(target)s);
 else
   define(MESSAGE,the %(color)s %(animal)s is %(action)s);
 
 aprintf(MESSAGE,array(animal=cobra,color=green,action=eating,target
 =mouse));
 // if the %(target)s isn't found, is ignored.
 
 
 (the s terminator could be substituted with other letters, like d for
 numbers, etc...)
 
 This approach has several advantages over something like this:
 the $color $animal is $action
 because in this phrase, variables are substituted when the parser execute
 it, and in this case:
 the %(color)s %(animal)s is %(action)s
 parameters are substituted only when the phrase is parsed with a specialized
 function like aprintf
 
 
 
 I think that this is a good idea and could save a lot of time when the
 program need to be as modular as possible.
 
 
 Federico Marani
 [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]
 

-- 
Jo Giraerts
Computerprutser
Life BVBA
Interleuvenlaan 15A, 3001 LEUVEN, BELGIUM
icq:81939849, email:[EMAIL PROTECTED], ph0ne:+32(0)16 20 89 61 
pgp-key available at: http://www.keyserver.net. 
fingerprint: 81EE B1FD 88E2 A03A 4F49 6D8A 806E 2220 9C2F 918B 

I've got these opium queens that move around my space, 
I said it's waste not, want not, 
I think I'll take another, 
I'm holding all this pain that I'm trying to smother.
branvan3000 - 
Afrodisiac

-- 
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-28 Thread George Schlossnagle

  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
 As far as i have seen youre only able to send messages with your
extension,
 since i dont know how to read them (couldnt find any read function in your
 source)
 and i wasnt able to download spread itself  (files from spread.org are
 corrupted),

Works fine for me - I just downloaded the 3.16.0 tarball and it built fine.

 i would like to ask you, how this messages are received, and if it is
possible
 to read
 them with PHP, or if i missunderstood the idea.

Since I use php as primarily a web scripting language, I haven't implemented
the client reciever api.  This would be easy enough to do, but would really
only be useful in a daemon-type process.  Again easy enough to add, it just
hasn't become relevant to me yet (I will consider that a change request,
though.:)

spread itself comes with a number of demo clients and there is the very nice
spreadlogd (http://www.backhand.org/mod_log_spread/spreadlogd-1.4.tar.gz)
for journaling messages to disk (used mainly as a log journaler for
mod_log_spread or for the spread-ported syslog).

George





-- 
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] python dictionary-like % (percent) substitution in php (was: Good idea in % (percent) substitutions in string)

2001-08-28 Thread Zeev Suraski

At 16:35 28-08-01, Jo Giraerts wrote:
This is already possible in php, though with the following simple
function..

// function to read a file with php-vars in as a string
// $predefined_vars: an array (varname = value). all the
// variablenames defined in this array can be used in the bodyfile.
// They will receive the respective values. This makes personalising
// the mailes easier..
function file_as_body($filename, $predefined_vars)
{
   $ar = file($filename);
   extract($predefined_vars);

   foreach ($ar as $number = $line)
   {
  eval(\$ar2[] = \$line\;);

Yikes, is there any reason that's not simply $ar2[] = $line;?

Anyway, how does it give the same functionality as the suggest aprintf()?

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]




Re: [PHP-DEV] contributing extensions?

2001-08-28 Thread George Schlossnagle

 If you think it would have a significant audience (i.e., more than you :)
 then we can add it in.

Makes sense, I guess it's usefulness is what's up for debate.


 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
 
 Due to the mutual exclusive nature of zend_extension's (extensions that
 modify the engine's behavior), we don't store these inside the PHP source
 tree.  As it came up in the past, we can (and probably should) put up a
 directory of such extensions on php.net.  All we need is someone to
 volunteer to do that.


I volunteer my efforts.  I think the full extension API is very useful and a
great addition to the language and that it would be nice to have a good
repository for such extensions.

George






-- 
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] python dictionary-like % (percent) substitution in php (was: Good idea in % (percent) substitutions in string)

2001-08-28 Thread Jo Giraerts

 function file_as_body($filename, $predefined_vars)
 {
$ar = file($filename);
extract($predefined_vars);
 
foreach ($ar as $number = $line)
{
   eval(\$ar2[] = \$line\;);
 
 Yikes, is there any reason that's not simply $ar2[] = $line;?
 
Because then the line would only be parsed until the first space..
i tried it without..


 Anyway, how does it give the same functionality as the suggest aprintf()?

oh, sorry. i didn't read the last 2 lines of the mail, where is
explained why not using plain eval.. ;)

 
 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]
 

-- 
Jo Giraerts
Computerprutser
Life BVBA
Interleuvenlaan 15A, 3001 LEUVEN, BELGIUM
icq:81939849, email:[EMAIL PROTECTED], ph0ne:+32(0)16 20 89 61 
pgp-key available at: http://www.keyserver.net. 
fingerprint: 81EE B1FD 88E2 A03A 4F49 6D8A 806E 2220 9C2F 918B 

I've got these opium queens that move around my space, 
I said it's waste not, want not, 
I think I'll take another, 
I'm holding all this pain that I'm trying to smother.
branvan3000 - 
Afrodisiac

-- 
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 #12996 Updated: PHP4 (pdf) Manuals

2001-08-28 Thread sniper

ID: 12996
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Status: Open
Old Bug Type: Unknown/Other Function
Bug Type: Documentation problem
Operating System: 
PHP Version: 4.0.6
New Comment:

reclassified

Previous Comments:


[2001-08-28 07:11:21] [EMAIL PROTECTED]

Hello,

the pdf Manuals (for PHP4) i have downloaded from this web page has a great mistake. 
Than I jump to a Chapter I see not the Chapter Titel. Please change the pdf Files for 
the PHP4 Manual.

Thanks.





Edit this bug report at http://bugs.php.net/?id=12996edit=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] [PATCH] Zend/zend_alloc.c

2001-08-28 Thread Walter Franzini


Hi,

is ok to send to this list patch for Zend?

I think _emalloc should not exit if unable to allocate enough memory,
malloc behave differently :-)

the patch below fix also a small problem with the format string.


--- php-4.0.6.ORIG/Zend/zend_alloc.cTue Jun 19 20:04:53 2001
+++ php-4.0.6/Zend/zend_alloc.c Tue Jul 31 10:32:39 2001
@@ -158,12 +158,11 @@
HANDLE_BLOCK_INTERRUPTIONS();
 
if (!p) {
-   fprintf(stderr,FATAL:  emalloc():  Unable to allocate %ld bytes\n, 
(long) size);
+   fprintf(stderr,FATAL:  emalloc():  Unable to allocate %lu bytes\n, 
+(long unsigned) size);
 #if ZEND_DEBUG  defined(HAVE_KILL)  defined(HAVE_GETPID)
kill(getpid(), SIGSEGV);
-#else
-   exit(1);
 #endif
+
HANDLE_UNBLOCK_INTERRUPTIONS();
return (void *)p;
}


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


-- 
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 #13002: annotated documentation download request

2001-08-28 Thread nksban

From: [EMAIL PROTECTED]
Operating system: 
PHP version:  4.0.6
PHP Bug Type: Feature/Change Request
Bug description:  annotated documentation download request

It would be much more helpfull to have annotated documentation at hands.
Please add option to download annotated.
Thanks a lot!
-- 
Edit bug report at: http://bugs.php.net/?id=13002edit=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-28 Thread Peter \[DiSAStA]\ Petermann

 Works fine for me - I just downloaded the 3.16.0 tarball and it built fine.
hm, well, the 3.16.0 source and the binary tarball to,
are corrupted when i try to open file.

  i would like to ask you, how this messages are received, and if it is
 possible
  to read
  them with PHP, or if i missunderstood the idea.
 Since I use php as primarily a web scripting language, I haven't implemented
 the client reciever api.  This would be easy enough to do, but would really
 only be useful in a daemon-type process.  Again easy enough to add, it just
 hasn't become relevant to me yet (I will consider that a change request,
 though.:)
well i have some ideas how this could be used, but i need to have a look on
spread
my self before.

Peter Petermann

--
*ZIMT - where PHP meets needs*
www.cyberfly.net - [EMAIL PROTECTED]
www.phpug.de - [EMAIL PROTECTED]
www.php-center.de - [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 #13003: array-pointer set in a closs-contruktor becomes reset

2001-08-28 Thread holler

From: [EMAIL PROTECTED]
Operating system: Win 2000
PHP version:  4.0.6
PHP Bug Type: Arrays related
Bug description:  array-pointer set in a closs-contruktor becomes reset

?php

/*
 * seams to be a bug
 *
 * array-position set in the constructor moves back to 1 ??!!
 */

class bug {
var $arr;
function bug() {
$this-arr = array(1,2,3,4,5);
reset($this-arr);
next($this-arr);
next($this-arr); // set to 3. element
echo current() set to  . current($this-arr) .  in 
constructorbr;
}
function show() {
echo current($this-arr) . br;;
}
}

$o = new bug();
echo current() should still be 3 but is  . current($o-arr) . br; //
back on 1. element ??!!
$o-show(); // the same

?

-- 
Edit bug report at: http://bugs.php.net/?id=13003edit=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] MFH'ing PEAR changes

2001-08-28 Thread Chuck Hagenbuch

Quoting Stig S. Bakken [EMAIL PROTECTED]:

 Any objections against me MHF'ing some non-critical stuff in php4/pear?
 It's so long between each PHP release now that the PEAR stuff that comes
 with PHP is usually outdated by the day of the release. :-P

For the record, I think we should sync up pretty much everything before 
release...

-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] R: [PHP-DEV] python dictionary-like % (percent) substitution in php

2001-08-28 Thread ---

Yes, the function you have written below make the same thing but i think
that a function written in c, inside the php module, can be faster and more
elegant than this php-function.

Again, i think that the final user will be happy to have an already written
function
instead of think and code a personalized function.

I think it's more elegant because it follow the same approach of printf-like
functions
and a user who already known these functions or known python will not have
headaches
in finding a solution for his problem

Also prinf, sprinf, etc... can be written as php functions and separated
from php core, but
it will not happen... why? too important and too useful, they requires speed
and their functionality
is required in many programs.

The same thing happen in python with dictionary substitution, and now,
nobody think to remove
it.

I think that this type of function could be useful for a lot of people...

Let me know what do you (also zeev and others) think about

-
Federico Marani
[EMAIL PROTECTED]
--

Jo Giraerts [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]
 This is already possible in php, though with the following simple
 function..

// function to read a file with php-vars in as a string
// $predefined_vars: an array (varname = value). all the
// variablenames defined in this array can be used in the bodyfile.
// They will receive the respective values. This makes personalising
// the mailes easier..
function file_as_body($filename, $predefined_vars)
{
   $ar = file($filename);
   extract($predefined_vars);

   foreach ($ar as $number = $line)
   {
  eval(\$ar2[] = \$line\;);
   }

   return implode(,$ar2);
}

 and for instance this file as template:

 --- template file
 You received a file on ( . date(d/m/Y (H:i)) . )

 filename: .basename($file) .
 filesize: .filesize($file) .
 mimetype: $mimetype

 Hope you enjoy it..
 ---

 You can even use php-code already, thanks to eval :)

 Maybe we better make it a PEAR-thing?








-- 
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] R: [PHP-DEV] python dictionary-like % (percent) substitution in php

2001-08-28 Thread Jo Giraerts

True. you got a point here. i'll stop bitching :)



On Tue, Aug 28, 2001 at 04:46:35PM +0200,  wrote:
 Yes, the function you have written below make the same thing but i think
 that a function written in c, inside the php module, can be faster and more
 elegant than this php-function.
 
 Again, i think that the final user will be happy to have an already written
 function
 instead of think and code a personalized function.
 
 I think it's more elegant because it follow the same approach of printf-like
 functions
 and a user who already known these functions or known python will not have
 headaches
 in finding a solution for his problem
 
 Also prinf, sprinf, etc... can be written as php functions and separated
 from php core, but
 it will not happen... why? too important and too useful, they requires speed
 and their functionality
 is required in many programs.
 
 The same thing happen in python with dictionary substitution, and now,
 nobody think to remove
 it.
 
 I think that this type of function could be useful for a lot of people...
 
 Let me know what do you (also zeev and others) think about
 
 -
 Federico Marani
 [EMAIL PROTECTED]
 --
 
 Jo Giraerts [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]
  This is already possible in php, though with the following simple
  function..
 
 // function to read a file with php-vars in as a string
 // $predefined_vars: an array (varname = value). all the
 // variablenames defined in this array can be used in the bodyfile.
 // They will receive the respective values. This makes personalising
 // the mailes easier..
 function file_as_body($filename, $predefined_vars)
 {
$ar = file($filename);
extract($predefined_vars);
 
foreach ($ar as $number = $line)
{
   eval(\$ar2[] = \$line\;);
}
 
return implode(,$ar2);
 }
 
  and for instance this file as template:
 
  --- template file
  You received a file on ( . date(d/m/Y (H:i)) . )
 
  filename: .basename($file) .
  filesize: .filesize($file) .
  mimetype: $mimetype
 
  Hope you enjoy it..
  ---
 
  You can even use php-code already, thanks to eval :)
 
  Maybe we better make it a PEAR-thing?
 
 
 
 
 
 
 
 
 -- 
 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]
 

-- 
Jo Giraerts
Computerprutser
Life BVBA
Interleuvenlaan 15A, 3001 LEUVEN, BELGIUM
icq:81939849, email:[EMAIL PROTECTED], ph0ne:+32(0)16 20 89 61 
pgp-key available at: http://www.keyserver.net. 
fingerprint: 81EE B1FD 88E2 A03A 4F49 6D8A 806E 2220 9C2F 918B 

I've got these opium queens that move around my space, 
I said it's waste not, want not, 
I think I'll take another, 
I'm holding all this pain that I'm trying to smother.
branvan3000 - 
Afrodisiac

-- 
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 #13004: dunno

2001-08-28 Thread shippler

From: [EMAIL PROTECTED]
Operating system: win2k
PHP version:  4.0.6
PHP Bug Type: Output Control
Bug description:  dunno

?php
if ($link==1)
{
print img src=\img/root.png\;
}
elseif ($link==2)
{
print img src=\img/root2.png\;
}
else
{
print img src=\img/root3.png\;
}
?

this script always displayed root3.png. After an upload  onto a f2s.com
server it was  displayed correct.
-- 
Edit bug report at: http://bugs.php.net/?id=13004edit=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 #12998 Updated: ext/standard/filestat.c fails compile

2001-08-28 Thread sniper

ID: 12998
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Compile Failure
Operating System: slack linux -- 2.0.34
PHP Version: 4.0.6
New Comment:

This is fixed in CVS. You can verify it by grabbing
a CVS snapshot from http://snaps.php.net/

--Jani


Previous Comments:


[2001-08-28 08:16:00] [EMAIL PROTECTED]

ext/standard/filestat.c fails compile at line 157.
Compiler does not know size of statfs

#include sys/vfs.h directly before definition of buf
allows clean compile.  May not be the appropriate or best
fix.  We'll see ...

#ifdef logic looks broken, though I do not have the time
to verify that hunch ...






Edit this bug report at http://bugs.php.net/?id=12998edit=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 #13000 Updated: I can't switch safe_mode OFF!

2001-08-28 Thread sniper

ID: 13000
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: PHP options/info functions
Operating System: SuseLinux 7.2
PHP Version: 4.0.6
New Comment:

Check what phpinfo() has to say where it's looking
for php.ini and edit that one..

Ask further support questions on the mailing lists:

http://www.php.net/support.php


Previous Comments:


[2001-08-28 08:32:47] [EMAIL PROTECTED]

I have following line in my php.ini
; Safe Mode
safe_mode   = Off

But a site with phpinfo() displays safe mode ON!
I also tried to delete this line, but same effect!

PHP is compiled with
'./configure' '--with-apache=../apache_1.3.20' '--enable-calendar' '--enable-ftp' 
'--with-mysql' '--enable-trans-sid' '--enable-sockets' '--with-regex=php' 
'--enable-memory-limit' '--enable-track-vars' '--with-zlib' '--enable-sysvshm'

Any ideas?





Edit this bug report at http://bugs.php.net/?id=13000edit=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 #13001 Updated: Unable to load dynamic library

2001-08-28 Thread sniper

ID: 13001
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Old Bug Type: Dynamic loading
Bug Type: GD related
Operating System: Conectiva Linux 6
PHP Version: 4.0.6
New Comment:

Most likely your /etc/ld.so.conf misses the line
for the location of libgd.so, so add that and run /sbin/ldconfig

Ask further support questions on the mailing lists:

http://www.php.net/support.php


Previous Comments:


[2001-08-28 09:20:38] [EMAIL PROTECTED]

Warning: Unable to load dynamic library '/usr/local/lib/php/gd.so' -
/usr/local/lib/php/extensions/gd.so: undefined symbol: gdImagePngCtx in 
/home/htdocs/xxx.php on line 3







Edit this bug report at http://bugs.php.net/?id=13001edit=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 #13000 Updated: I can't switch safe_mode OFF!

2001-08-28 Thread lopez

ID: 13000
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: PHP options/info functions
Operating System: SuseLinux 7.2
PHP Version: 4.0.6
New Comment:

Damn, do you think I'm blind??

The php.ini is located @ /usr/local/lib/
and THERE I'll edit'em!!

But it has NO EFFECT

This was NOT a support request!

Previous Comments:


[2001-08-28 11:36:42] [EMAIL PROTECTED]

Check what phpinfo() has to say where it's looking
for php.ini and edit that one..

Ask further support questions on the mailing lists:

http://www.php.net/support.php




[2001-08-28 08:32:47] [EMAIL PROTECTED]

I have following line in my php.ini
; Safe Mode
safe_mode   = Off

But a site with phpinfo() displays safe mode ON!
I also tried to delete this line, but same effect!

PHP is compiled with
'./configure' '--with-apache=../apache_1.3.20' '--enable-calendar' '--enable-ftp' 
'--with-mysql' '--enable-trans-sid' '--enable-sockets' '--with-regex=php' 
'--enable-memory-limit' '--enable-track-vars' '--with-zlib' '--enable-sysvshm'

Any ideas?





Edit this bug report at http://bugs.php.net/?id=13000edit=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 #13004 Updated: dunno

2001-08-28 Thread sniper

ID: 13004
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Output Control
Operating System: win2k
PHP Version: 4.0.6
New Comment:

So what is the problem here?




Previous Comments:


[2001-08-28 11:23:42] [EMAIL PROTECTED]

?php
if ($link==1)
{
print img src=\img/root.png\;
}
elseif ($link==2)
{
print img src=\img/root2.png\;
}
else
{
print img src=\img/root3.png\;
}
?

this script always displayed root3.png. After an upload  onto a f2s.com server it was  
displayed correct.





Edit this bug report at http://bugs.php.net/?id=13004edit=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] Zend/zend_alloc.c

2001-08-28 Thread Jason Greene

I disagree with this patch. The scenario of not being able to allocate memory is a
fatal error, and the only appropriate response for php is to exit. If you need other
behavior use pemalloc( which calls malloc if set persistant ).

-Jason

- Original Message - 
From: Walter Franzini [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 28, 2001 8:50 AM
Subject: [PHP-DEV] [PATCH] Zend/zend_alloc.c


 
 Hi,
 
 is ok to send to this list patch for Zend?
 
 I think _emalloc should not exit if unable to allocate enough memory,
 malloc behave differently :-)
 
 the patch below fix also a small problem with the format string.
 
 
 --- php-4.0.6.ORIG/Zend/zend_alloc.c Tue Jun 19 20:04:53 2001
 +++ php-4.0.6/Zend/zend_alloc.c Tue Jul 31 10:32:39 2001
 @@ -158,12 +158,11 @@
   HANDLE_BLOCK_INTERRUPTIONS();
  
   if (!p) {
 - fprintf(stderr,FATAL:  emalloc():  Unable to allocate %ld bytes\n, (long) size);
 + fprintf(stderr,FATAL:  emalloc():  Unable to allocate %lu bytes\n, (long 
unsigned) size);
  #if ZEND_DEBUG  defined(HAVE_KILL)  defined(HAVE_GETPID)
   kill(getpid(), SIGSEGV);
 -#else
 - exit(1);
  #endif
 +
   HANDLE_UNBLOCK_INTERRUPTIONS();
   return (void *)p;
   }
 
 
 Ciao
 -- 
 Walter Franzini, e-mail: [EMAIL PROTECTED]
 SysNet, Via Digione 8, 27100 Pavia - Italy
 
 
 -- 
 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]




Re: [PHP-DEV] [PATCH] Zend/zend_alloc.c

2001-08-28 Thread Stanislav Malyshev

JG I disagree with this patch. The scenario of not being able to
JG allocate memory is a fatal error, and the only appropriate
JG response for php is to exit. If you need other behavior use
JG pemalloc( which calls malloc if set persistant ).

Actually, there's a lot of code in PHP that is based on the assumption
that emalloc never fails. If emalloc can return NULLs, all this code
should be rewritten. I do not see any point in it and agree with Jason.

-- 
Stanislav Malyshev, Zend Products Engineer
[EMAIL PROTECTED]  http://www.zend.com/ +972-3-6139665 ext.115




-- 
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 #11398 Updated: uncompress unknown

2001-08-28 Thread hholzgra

ID: 11398
Updated by: hholzgra
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Compile Problem
Operating System: redhat 6.2
PHP Version: Earlier? Upgrade first!
New Comment:

looks like configure found libz and 
mysql was built with gzip compression 
support while apache does not have libz.so
in its LD_LIBRARY_PATH ?

anyway, this is a question for either the
php-general or the php-install mailing lists

Previous Comments:


[2001-06-11 13:35:04] [EMAIL PROTECTED]

i am trying to configure php-3.0.18 with apache and mysql
 apache was pre installed
 but the apache server is unable to load the libphp3.so file file and says that it 
can't reconzie the symbol uncompress
 pls help

 





Edit this bug report at http://bugs.php.net/?id=11398edit=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 #7011 Updated: httpd.h not found at correct location

2001-08-28 Thread hholzgra

ID: 7011
Updated by: hholzgra
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: *Install and Config
Operating System: Redhat 6.1
PHP Version: Earlier? Upgrade first!
New Comment:

--with-apache needs the apache _source_ directory as argument

definetly a question for php-general or php-install 
mailing list and not a bug

Previous Comments:


[2000-10-04 06:12:57] [EMAIL PROTECTED]

I have been trying to install php3 on Redhat 6.1, because my IP (co-location) warned 
me to stay away from php4 with my Linux version. Too many problems, and I am too 
inexperienced to want them.

I keep getting error messages. The instructions said use:
./configure --with-mysql --with-apache_1.3.x --enable-track-vars

That is what I did, but this didn't give the correct location for mysql, so:
./configure --with-mysql=/usr/local/mysql --with-apache_1.3.9 
--enable-track-vars   

That was an invalid location for apache, so I did a locate apache  and httpd -v to 
get the right version number:
./configure --with-mysql=/usr/local/mysql --with-apache_1.3.9 
--enable-track-vars

No, it wanted an address:
./configure --with-mysql=/usr/local/mysql --with-apache=/usr/lib/apache_1.3.9 
--enable-track-vars

It didn't like that location, saying it needed httpd.h, so:
./configure --with-mysql=/usr/local/mysql --with-apache=/usr/include/apache/ 
--enable-track-vars
./configure --with-mysql=/usr/local/mysql --with-apache=/usr/include/apache/ 
--enable-track-vars

Invalid Apache directory - unable to find httpd.h /under user/include/apache

That is the only place it is turning up. Why can't INSTALL find it there? I even name 
the file:
./configure --with-mysql=/usr/local/mysql 
--with-apache=/usr/include/apache/httpd.h --enable-track-vars

Still doesn't work, but when I do a locate, it IS there.

I'm stuck guys. Your instructions DON'T WORK. Any ideas?





Edit this bug report at http://bugs.php.net/?id=7011edit=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: Bug #12999 Updated: configure with sablotron support

2001-08-28 Thread Christian Stocker

Hi out there...

this error pops up, when one doesn't have expat-dev installed (at debian,
no idea about slackware), so maybe you should install expat from
source or at least the expat developement package

chregu

In article [EMAIL PROTECTED], sniper
[EMAIL PROTECTED] wrote:

 ID: 12999
 Updated by: sniper
 Reported By: [EMAIL PROTECTED]
 Old Status: Open
 Status: Feedback
 Bug Type: Sablotron XSL
 Operating System: Slackware Linux 8.0 PHP Version: 4.0.6
 New Comment:
 
 Does config.log have any clues what might be wrong?
 
 
 Previous Comments:
 
 
 [2001-08-28 08:20:19] [EMAIL PROTECTED]
 
 hi,
 i can't compile php 4.0.6 and higher (4.0.7RC1) with sablotron support.
 i'm always getting a configure error: configure: error: iconv not
 found
 
 you can view the config.log at www.unividuum.de/config.log .
 
 anything else you need to know?
 thanks,
 cu.
 
 
 
 
 
 Edit this bug report at http://bugs.php.net/?id=12999edit=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] python dictionary-like % (percent) substitution inphp (was: Good idea in % (percent) substitutions in string)

2001-08-28 Thread Sterling Hughes

On Tue, 28 Aug 2001, Jo Giraerts wrote:

 This is already possible in php, though with the following simple
 function..

// function to read a file with php-vars in as a string
// $predefined_vars: an array (varname = value). all the
// variablenames defined in this array can be used in the bodyfile.
// They will receive the respective values. This makes personalising
// the mailes easier..
function file_as_body($filename, $predefined_vars)
{
   $ar = file($filename);
   extract($predefined_vars);

   foreach ($ar as $number = $line)
   {
  eval(\$ar2[] = \$line\;);
   }

   return implode(,$ar2);
}

 and for instance this file as template:

 --- template file
 You received a file on ( . date(d/m/Y (H:i)) . )

 filename: .basename($file) .
 filesize: .filesize($file) .
 mimetype: $mimetype

 Hope you enjoy it..
 ---

 You can even use php-code already, thanks to eval :)

 Maybe we better make it a PEAR-thing?



Not really, the below is a different functionality (and the above is
slow because of the use of eval)... +1 for it being in the core...

-Sterling



 On Tue, Aug 28, 2001 at 12:25:15PM +0200,  wrote:
  I have seen that in php there isn't nothing similar to dictionary
  substitution in python.
  (a dictionary is an array with string keys, like hash in perl)
 
  This change consist in adding two functions (a stay for array):
  aprintf(string format, array dict) -- like printf, print the result
  saprintf(string format, array dict) -- like sprintf, return the result
 
  It works like this (written in php-like language):
 
  format - my name is %(name)s and i'm %(age)s
  dict - array( name=tom, age= eighteen );
 
  (in php, unlike python, is possible to make an array with both string and
  number indices, so the format can be also %(2)s,...)
 
  aprintf(format,dict) -- print my name is tom and i'm eighteen
  saprintf(format,dict) -- return my name is tom and i'm eighteen
 
  in python, these substitutions are very useful, especially in cgi
  programming, for making templates from text files, in php could be
  useful in, for example, language customisation, or message formatting,
  etc...
 
  An example:
  if ($lang == it)
define(MESSAGE,il %(animal)s %(color)s sta %(action)s %(target)s);
  else
define(MESSAGE,the %(color)s %(animal)s is %(action)s);
 
  aprintf(MESSAGE,array(animal=cobra,color=green,action=eating,target
  =mouse));
  // if the %(target)s isn't found, is ignored.
 
 
  (the s terminator could be substituted with other letters, like d for
  numbers, etc...)
 
  This approach has several advantages over something like this:
  the $color $animal is $action
  because in this phrase, variables are substituted when the parser execute
  it, and in this case:
  the %(color)s %(animal)s is %(action)s
  parameters are substituted only when the phrase is parsed with a specialized
  function like aprintf
 
 
 
  I think that this is a good idea and could save a lot of time when the
  program need to be as modular as possible.
 
  
  Federico Marani
  [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 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 #12965 Updated: fopen() don't open URL files

2001-08-28 Thread sander

ID: 12965
Updated by: sander
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Filesystem function related
Operating System: Windows2000
PHP Version: 4.0.6
New Comment:

I got a slightly different error:

Warning:  fopen(http://www.php.net,r;) - No error in 
e:\sander\webserver\http\test\test1.php on line 10

If you append a / to the url, it works:
fopen(http://www.php.net/;, r)

The errors are a bit weird though...

Let's make it a bogus.

Previous Comments:


[2001-08-26 10:45:23] [EMAIL PROTECTED]


I'm using PhP 4.0.6 with Apache 1.3 and the
problem is opening remote files with fopen(http://...;);

The following code:

$fp = fopen(http://www.php.net;, r) or die(OPEN);
while (! feof($fp))
{
fread($fp, 1024) or die(READ);
}
fclose($fp) or die(CLOSE);

Produced the following output:

Warning: php_hostconnect: connect failed in filename.php..

Warning: fopen(http://www.php.net,r;) - Bad file
descriptor in filename.php..


I tried to use fsockopen() with my IE proxy and port settings - it was successful. 
Maybe the problem is in Apache configuration, but I just can't figure that out!

If you can help, please, send to my email: [EMAIL PROTECTED]

Kind regards






Edit this bug report at http://bugs.php.net/?id=12965edit=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 #9805 Updated: ob_start(my_gzhandler1); - not worked

2001-08-28 Thread sander

ID: 9805
Updated by: sander
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Output Control
Operating System: RedHat 6.1
PHP Version: 4.0 Latest CVS (17/03/2001)
New Comment:

Try again with the latest version... there were a lot of problems in PHP 4.0.4 (and 
pl1) with ob_gzhandler.

Previous Comments:


[2001-03-17 05:42:21] [EMAIL PROTECTED]

In latest CVS, my Script

?
function my_gzhandler1($str){
return ob_gzhandler($str);
}

ob_start(my_gzhandler1);
phpinfo(); 

?

can't work.

With php-4.0.4pl1 - all work fine.






Edit this bug report at http://bugs.php.net/?id=9805edit=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] Bug #12965 Updated: fopen() don't open URL files

2001-08-28 Thread Brian Tanner

On the fopen page (of php manual), you'll notice:

Versions prior to PHP 4.0.5 do not handle HTTP redirects. Because of this,
directories must include trailing slashes.

http://www.domain.com is not actually a valid path... apache realizes you
want http://www.domain.com/ and issues a header redirect.  fopen cannot
handle the redirect.

-Thought I'd give a shot at a little explanation instead of just suggesting
the /.

-Brian Tanner
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: August 28, 2001 11:25 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DEV] Bug #12965 Updated: fopen() don't open URL files


ID: 12965
Updated by: sander
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Filesystem function related
Operating System: Windows2000
PHP Version: 4.0.6
New Comment:

I got a slightly different error:

Warning:  fopen(http://www.php.net,r;) - No error in
e:\sander\webserver\http\test\test1.php on line 10

If you append a / to the url, it works:
fopen(http://www.php.net/;, r)

The errors are a bit weird though...

Let's make it a bogus.

Previous Comments:


[2001-08-26 10:45:23] [EMAIL PROTECTED]


I'm using PhP 4.0.6 with Apache 1.3 and the
problem is opening remote files with fopen(http://...;);

The following code:

$fp = fopen(http://www.php.net;, r) or die(OPEN);
while (! feof($fp))
{
fread($fp, 1024) or die(READ);
}
fclose($fp) or die(CLOSE);

Produced the following output:

Warning: php_hostconnect: connect failed in filename.php..

Warning: fopen(http://www.php.net,r;) - Bad file
descriptor in filename.php..


I tried to use fsockopen() with my IE proxy and port settings - it was
successful. Maybe the problem is in Apache configuration, but I just can't
figure that out!

If you can help, please, send to my email: [EMAIL PROTECTED]

Kind regards






Edit this bug report at http://bugs.php.net/?id=12965edit=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 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 #13005: with-fdftk option not allowing configure to complete

2001-08-28 Thread dcobbs

From: [EMAIL PROTECTED]
Operating system: solaris
PHP version:  4.0.6
PHP Bug Type: FDF related
Bug description:  with-fdftk option not allowing configure to complete

I am having great difficulty in configuring php 4.0.6 to use fdftk4_05. In
following the directions I copied the file
FDFToolkitForUNIX/HeadersAndLibraries/headers/fdftk.h to
/usr/local/include/FdfTk.h

I also copied FDFToolkitForUNIX/HeadersAndLibraries/solaris/C/libfdftk.so
to /usr/local/lib/libfdftk.so


Here is a slightly altered version of my configure command:
./configure --with-apxs=/Apache/bin/apxs --enable-force-cgi-redirect
--with-oci8=/oracle --with-xml --without-mysql --with-fdftk=/usr/loca

Here is the abbreviated output from that command:
checking whether to enable ctype support... no
checking for CURL support... no
checking for CyberCash support... no
checking for cybermut support... no
checking whether to include old xDBM support... no
checking whether to enable DBA... no
checking for GDBM support... no
checking for NDBM support... no
checking for Berkeley DB2 support... no
checking for Berkeley DB3 support... no
checking for DBM support... no
checking for CDB support... no
checking whether to enable DBA interface... no
checking whether to enable the bundled dbase library... no
checking whether to enable dbx support... no
checking for DOM support... no
checking whether to enable exif support... no
checking for FrontBase SQL92 (fbsql) support... no
checking for fdftk support... yes
checking for FDFOpen in -lfdftk... no
checking for FDFOpen in -lFdfTk... no
./configure: test: argument expected



Here is the abbreviated output from the config.log:
checking for bc style precision math functions... no
checking for BZip2 support... no
checking whether to enable calendar conversion support... no
checking CCVS Support... no
checking whether to include cpdflib support... no
checking whether to include crack support... no
checking whether to enable ctype support... no
configure:14521: checking for DBM support
configure:14748: checking for CDB support
configure:14760: checking whether to enable DBA interface
configure:14925: checking whether to enable the bundled dbase library
configure:15113: checking whether to enable dbx support
configure:15299: checking for DOM support
configure:15773: checking whether to enable exif support
configure:15961: checking for FrontBase SQL92 (fbsql) support
configure:16303: checking for fdftk support
configure:16399: checking for FDFOpen in -lfdftk
configure:16418: cc -o conftest -g  -D_POSIX_PTHREAD_SEMANTICS
-DSOLARIS2=260 -DMOD_SSL=206104
 -DMOD_PERL -DUSE_PERL_SSI -DEAPI -DUSE_EXPAT  -R/usr/ucblib -L/usr/ucblib
conftest.c -lfdftk
-L/usr/local/lib -lm -lcrypt -lresolv -lresolv -lm -ldl -lnsl -lsocket 
-lsocket 15
ld: fatal: library -lfdftk: not found
ld: fatal: File processing errors. No output written to conftest
configure: failed program was:
  #line 16407 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 FDFOpen();
 
  int main() {
  FDFOpen()
  ; return 0; }
configure:16399: checking for FDFOpen in -lFdfTk
configure:16418: cc -o conftest -g  -D_POSIX_PTHREAD_SEMANTICS
-DSOLARIS2=260 -DMOD_SSL=206104
 -DMOD_PERL -DUSE_PERL_SSI -DEAPI -DUSE_EXPAT  -R/usr/ucblib -L/usr/ucblib
conftest.c -lFdfTk
-L/usr/local/lib -lm -lcrypt -lresolv -lresolv -lm -ldl -lnsl -lsocket 
-lsocket 15
ld: fatal: library -lFdfTk: not found
ld: fatal: File processing errors. No output written to conftest
configure: failed program was:
  #line 16407 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 FDFOpen();

  int main() {
  FDFOpen()
  ; return 0; }




Also here is the value of my LD_LIBRARY_PATH environment variable:
echo $LD_LIBRARY_PATH
/usr/local/lib


Please help.
-- 
Edit bug report at: http://bugs.php.net/?id=13005edit=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 #13005 Updated: with-fdftk option not allowing configure to complete

2001-08-28 Thread dcobbs

ID: 13005
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: FDF related
Operating System: solaris
PHP Version: 4.0.6
New Comment:

I copied FDFToolkitForUNIX/HeadersAndLibraries/solaris/C/libfdftk.so to 
/usr/local/lib/libFdfTk.so not to /usr/local/lib/libfdftk.so as previously stated.

Previous Comments:


[2001-08-28 15:04:36] [EMAIL PROTECTED]

I am having great difficulty in configuring php 4.0.6 to use fdftk4_05. In following 
the directions I copied the file FDFToolkitForUNIX/HeadersAndLibraries/headers/fdftk.h 
to /usr/local/include/FdfTk.h

I also copied FDFToolkitForUNIX/HeadersAndLibraries/solaris/C/libfdftk.so to 
/usr/local/lib/libfdftk.so


Here is a slightly altered version of my configure command:
./configure --with-apxs=/Apache/bin/apxs --enable-force-cgi-redirect 
--with-oci8=/oracle --with-xml --without-mysql --with-fdftk=/usr/loca

Here is the abbreviated output from that command:
checking whether to enable ctype support... no
checking for CURL support... no
checking for CyberCash support... no
checking for cybermut support... no
checking whether to include old xDBM support... no
checking whether to enable DBA... no
checking for GDBM support... no
checking for NDBM support... no
checking for Berkeley DB2 support... no
checking for Berkeley DB3 support... no
checking for DBM support... no
checking for CDB support... no
checking whether to enable DBA interface... no
checking whether to enable the bundled dbase library... no
checking whether to enable dbx support... no
checking for DOM support... no
checking whether to enable exif support... no
checking for FrontBase SQL92 (fbsql) support... no
checking for fdftk support... yes
checking for FDFOpen in -lfdftk... no
checking for FDFOpen in -lFdfTk... no
./configure: test: argument expected



Here is the abbreviated output from the config.log:
checking for bc style precision math functions... no
checking for BZip2 support... no
checking whether to enable calendar conversion support... no
checking CCVS Support... no
checking whether to include cpdflib support... no
checking whether to include crack support... no
checking whether to enable ctype support... no
configure:14521: checking for DBM support
configure:14748: checking for CDB support
configure:14760: checking whether to enable DBA interface
configure:14925: checking whether to enable the bundled dbase library
configure:15113: checking whether to enable dbx support
configure:15299: checking for DOM support
configure:15773: checking whether to enable exif support
configure:15961: checking for FrontBase SQL92 (fbsql) support
configure:16303: checking for fdftk support
configure:16399: checking for FDFOpen in -lfdftk
configure:16418: cc -o conftest -g  -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=260 
-DMOD_SSL=206104
 -DMOD_PERL -DUSE_PERL_SSI -DEAPI -DUSE_EXPAT  -R/usr/ucblib -L/usr/ucblib conftest.c 
-lfdftk
-L/usr/local/lib -lm -lcrypt -lresolv -lresolv -lm -ldl -lnsl -lsocket  -lsocket 15
ld: fatal: library -lfdftk: not found
ld: fatal: File processing errors. No output written to conftest
configure: failed program was:
  #line 16407 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 FDFOpen();
 
  int main() {
  FDFOpen()
  ; return 0; }
configure:16399: checking for FDFOpen in -lFdfTk
configure:16418: cc -o conftest -g  -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=260 
-DMOD_SSL=206104
 -DMOD_PERL -DUSE_PERL_SSI -DEAPI -DUSE_EXPAT  -R/usr/ucblib -L/usr/ucblib conftest.c 
-lFdfTk
-L/usr/local/lib -lm -lcrypt -lresolv -lresolv -lm -ldl -lnsl -lsocket  -lsocket 15
ld: fatal: library -lFdfTk: not found
ld: fatal: File processing errors. No output written to conftest
configure: failed program was:
  #line 16407 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 FDFOpen();

  int main() {
  FDFOpen()
  ; return 0; }




Also here is the value of my LD_LIBRARY_PATH environment variable:
echo $LD_LIBRARY_PATH
/usr/local/lib


Please help.





Edit this bug report at http://bugs.php.net/?id=13005edit=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 #13007: is there such meaning of unsigned long in PHP?

2001-08-28 Thread green

From: [EMAIL PROTECTED]
Operating system: FreeBSD
PHP version:  4.0.6
PHP Bug Type: *General Issues
Bug description:  is there such meaning of unsigned long in PHP? 

65536  4096 = 0 (right)
65536  65536 = 65536 (right)
but
3221225472  1073741824 = 0 (this is wrong, right answer isn't 0 but
2147483648)

what I need to do to make above mentioned operations works correctly with
unsigned long variables in PHP?
thanks.
-- 
Edit bug report at: http://bugs.php.net/?id=13007edit=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 #13008: Multiple update/inserts fail

2001-08-28 Thread Brian_Teravskis

From: [EMAIL PROTECTED]
Operating system: Linux 2.2.12-20 Red Hat 6.1
PHP version:  4.0.6
PHP Bug Type: MSSQL related
Bug description:  Multiple update/inserts fail

I'm using FreeTDS 0.51 to access an MSSQL 7.0 pl1 database server. I can
use PHP to SELECT information from the database with no problems. I'm
having problems with multiple insert/updates done to the database in
sequence.

My algorithm attempts to insert/update several rows of data into the
database after an HTTP put. It will first attempt to do an SQL insert, and
if that errors due to duplicate key restraints it will do an SQL update.

I'm finding that it will do the first update, but after that nothing
appears to work unless I close the connection to the database and reopen it
again. While this works in a small installation, I can see problems with
hundreds of database updates per minute constantly opening and closing
connections for each row updated.

I can do multiple SQL inserts in sequence with no problems. It is when the
key restraint warning occurs and I do an update.

I have the code if interested.

Here is my PHP configure line:

./configure --with-mysql --with apxs=/usr/local/apache/bin/apxs --with-gd
--with-mssql=/usr/local/freetds --with-sybase=/usr/local/freetds
--enable-track-vars

Thanks
-- 
Edit bug report at: http://bugs.php.net/?id=13008edit=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 #8130 Updated: Changing a copy of an array affects the original

2001-08-28 Thread wstockal

ID: 8130
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Closed
Bug Type: Scripting Engine problem
Operating System: Redhat Linux 6.2
PHP Version: 4.0.6-dev
New Comment:

This problem can also affect the private copies of variables
used inside of functions.

Script:

  class test {
var $property;
function do_something(){
 return;
}
  }
  function mangle($array_in) {
   $array_in[0]-property = 'trashed';
  }
  $array[0] = new test;
  $array[0]-property = 'ok';
  mangle($array);
  echo(h2Before:/h2\n);
  echo(\$array[0]-property is {$array[0]-property}br\n);
  $array[0]-do_something();
  mangle($array);
  echo(h2After:/h2\n);
  echo(\$array[0]-property is {$array[0]-property}br\n);


Output:

h2Before:/h2
$array[0]-property is okbr
h2After:/h2
$array[0]-property is trashedbr


Previous Comments:


[2001-06-17 04:54:11] [EMAIL PROTECTED]

This will not be fixed anytime soon. It is a deep seated problem in the implementation 
and fixing it would cause speed problems and numerous other problems, This is somthing 
that can be coded around too so should not cause massive problems.

- James



[2001-04-28 15:27:42] [EMAIL PROTECTED]

Reproduced in 4.0.6-dev one for the bug squash



[2001-01-06 02:38:08] [EMAIL PROTECTED]

Confirmed in 4.0.4pl1 RC1



[2000-12-07 02:28:51] [EMAIL PROTECTED]

Is this the same as bug 6417?



[2000-12-06 11:23:23] [EMAIL PROTECTED]

OK, this only affects objects in the array whose methods
have been accessed.  Other objects are still copies.  It
also works on php-4.0.3pl1 on the Win32 platform.



The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/?id=8130


Edit this bug report at http://bugs.php.net/?id=8130edit=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 #13009: ext/sablot.c compile fails w/ Forte 4 cc compiler.

2001-08-28 Thread poleson

From: [EMAIL PROTECTED]
Operating system: Solaris 2.6
PHP version:  4.0.6
PHP Bug Type: Compile Failure
Bug description:  ext/sablot.c compile fails w/ Forte 4 cc compiler.

The file sablot.c uses a non constant var in 2 array initializers with a
brace enclosed list. This breaks Sun's forte 4 cc. Using args[1] = buffer;
etc fixes this problem.
-- 
Edit bug report at: http://bugs.php.net/?id=13009edit=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 #13010: echoed multipdimensional arrays

2001-08-28 Thread dcaylor

From: [EMAIL PROTECTED]
Operating system: Linux 7.1
PHP version:  4.0.4pl1
PHP Bug Type: Arrays related
Bug description:  echoed multipdimensional arrays

Multidemensional arrays seem to not work within an echo.

$variable[one][two] = 'Hi There';
$variable[one][three] = 'This is a bug';

echo 
  htmlbody
  $variable[one][two]br
  $variable[one][three]
  /body/html
;

results in 
  Array[two]
  Array[three] 
rather than the expected
  Hi There
  This is a bug
-- 
Edit bug report at: http://bugs.php.net/?id=13010edit=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 #13010 Updated: echoed multipdimensional arrays

2001-08-28 Thread cardinal

ID: 13010
Updated by: cardinal
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Arrays related
Operating System: Linux 7.1
PHP Version: 4.0.4pl1
New Comment:

Multidimensional arrays need to be enclosed in curly braces to be interpolated in that 
manner.

echo This is not a bug.  {$array[one][two]};


Previous Comments:


[2001-08-28 20:34:09] [EMAIL PROTECTED]

Multidemensional arrays seem to not work within an echo.

$variable[one][two] = 'Hi There';
$variable[one][three] = 'This is a bug';

echo 
  htmlbody
  $variable[one][two]br
  $variable[one][three]
  /body/html
;

results in 
  Array[two]
  Array[three] 
rather than the expected
  Hi There
  This is a bug





Edit this bug report at http://bugs.php.net/?id=13010edit=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 #13011: formatting numbers

2001-08-28 Thread dcaylor

From: [EMAIL PROTECTED]
Operating system: Linux 7.1
PHP version:  4.0.4pl1
PHP Bug Type: Feature/Change Request
Bug description:  formatting numbers

It would be extremely helpful to be able to do more formatting of numbers
than is currently available.  
Specifically, it would be good if number_format would prepend a dollar sign
or allow negative numbers to be shown in brackets rather than with a
negative sign.  Both of these are necessary for accounting applications.

My current solution for negative currency looks like this: 
  if ( $value  0 )
  {
$value = (\$.number_format(abs($value),2).);
  }
which works but is less than ideal.  For one thing, it makes later use of
the number difficult.

-- 
Edit bug report at: http://bugs.php.net/?id=13011edit=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: Bug #12956: libgd2 + TTF = ugly fonts.

2001-08-28 Thread Piotr Pawlow

 I can't use libgd2 and have nice fonts.  I can't use libgd1 and have
 nice thumbnails.  I'm stuck.

Alternatively you can try php_imlib from Matt McClanahan
(http://www.mcclanahan.cx/php_imlib/). It is a PHP module for Imlib2
library. Supports true-color images, alpha blending, TTF fonts,
gradients and other cool things. It does NOT compile with PHP version
greater than 4.0.5 due to some changes in PHP config macros. To
compile with version 4.0.6 and above you will need to download my
patch from http://pp.siedziba.pl/archives/pc/php_imlib_patch.tar.gz.
This patch also adds some image filtering and caching functions and
fixes incorrect IMLIB_TEXT* constants registration. There is also
already patched version available:
http://pp.siedziba.pl/archives/pc/php_imlib-0.3-patched.tar.gz
I use it to generate thumbnails on http://www.tech4.pl/. Seems quite
stable when used with 1.0.3 version of Imlib2.

--
Regards,
 Piotr Pawlow
 mailto:[EMAIL PROTECTED], homepage: http://pp.siedziba.pl




-- 
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 #13012: running problem

2001-08-28 Thread raincorp

From: [EMAIL PROTECTED]
Operating system: Win 2000
PHP version:  4.0.6
PHP Bug Type: *General Issues
Bug description:  running problem

i am have trouble running php, i can run a simple doc like one to check the
versiona dn get the time but i cannot run anything eles and i t gives we
this 
Warning: Failed opening 'c:\inetpub\wwwroot\upload\admin\config.php' for
inclusion (include_path='') in Unknown on line 0

its that right path, i think
and what am i suppos to do with the php.ini file could you show we what
changes i need to do to it.

thanks

-- 
Edit bug report at: http://bugs.php.net/?id=13012edit=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 #13012 Updated: running problem

2001-08-28 Thread mfischer

ID: 13012
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: *General Issues
Operating System: Win 2000
PHP Version: 4.0.6
New Comment:

This is no support forum; please ask on [EMAIL PROTECTED] .

Bogusified.

- Markus

Previous Comments:


[2001-08-28 21:04:23] [EMAIL PROTECTED]

i am have trouble running php, i can run a simple doc like one to check the versiona 
dn get the time but i cannot run anything eles and i t gives we this 
Warning: Failed opening 'c:\inetpub\wwwroot\upload\admin\config.php' for inclusion 
(include_path='') in Unknown on line 0

its that right path, i think
and what am i suppos to do with the php.ini file could you show we what changes i need 
to do to it.

thanks






Edit this bug report at http://bugs.php.net/?id=13012edit=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 #13013: libphp4.so: undefined symbol: zendtext

2001-08-28 Thread x_ysd

From: [EMAIL PROTECTED]
Operating system: FreeBSD 4.2-RELEASE
PHP version:  4.0.6
PHP Bug Type: Apache related
Bug description:  libphp4.so: undefined symbol: zendtext

Hi,
  This is Stone Yu. When I running php 4.0.6, I got some error messages :

% sudo /www/apache-1.3.20/bin/apachectl start
Password:
Syntax error on line 232 of /www/apache-1.3.20/conf/httpd.conf:
Cannot load /www/apache-1.3.20/libexec/libphp4.so into server:
/www/apache-1.3.20/libexec/libphp4.so: Undefined symbol zendtext
/www/apache-1.3.20/bin/apachectl start: httpd could not be started

O.S. : FreeBSD 4.2-RELEASE
Apache version : 1.3.20 + mod_ssl-2.8.4-1.3.20(both with DSO[max] mode)
compiler : gcc 2.95.2

  I install apache + mod_ssl first, then configure and install php with DSO
mode, here's my configure parameter :

./configure --with-apxs=/www/apache-1.3.20/bin/apxs
--with-config-file-path=/www/apache-1.3.20/conf
--with-mysql=/usr/local/mysql --enable-sysvsem --enable-sysvshm --with-xml
--with-mod_charset --enable-force-cgi-redirect --enable-inline-wwwimization
--with-openssl=/usr/local --enable-track-vars --with-bz2 --enable-ftp
--with-gdbm=/usr/local --with-db2 --with-jpeg-dir --with-tiff-dir
--with-xpm-dir --with-ttf --with-mm --disable-posix

  I also found the old php version(4.0.2) has the same bugs(bug no. #6664 
#6868), but I can't find any solution for it.
  Any suggestion will be nice, thanks a lot.

with Best Regards,
--
  Stone Yu
-- 
Edit bug report at: http://bugs.php.net/?id=13013edit=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]




  1   2   >