[PHP-DEV] Bug #14750: exit signal Floating point exception (8)

2001-12-28 Thread bugs

From: [EMAIL PROTECTED]
Operating system: FreeBSD 4.4-RELEASE #0
PHP version:  4.1.1
PHP Bug Type: Reproducible crash
Bug description:  exit signal Floating point exception (8)

We upgrated to the latest PHP and still getting these errors on ANY php
page that uses decimals and EXIT. 

The shortest sample script, that DOES reproduce the bug:
exit(0.1);

The following will NOT give error: 
exit(TEST);

Since the PHP upgrade, our problem got worse. Now 8 out of 10 refresh
results in "The page cannot be displayed"
Most importantly, the first time the page is hit, it is a 100% error. 

Please HELP ...---...---...--- 

/var/log/messages:
Dec  6 16:07:17 julian /kernel: pid 38937 (httpd), uid 65534: exited on
signal 8

Apache error log:
[Thu Dec  6 16:07:17 2001] [notice] child pid 38937 exit signal Floating
point exception
(8)

Original bug:
http://bugs.php.net/bug.php?id=14366

Here is some more info.

Backtrace data:
Program received signal SIGFPE, Arithmetic exception.
0x28162f71 in strtod () from /usr/lib/libc.so.4
(gdb) b
Breakpoint 1 at 0x28162f71
(gdb) backtrace
#0  0x28162f71 in strtod () from /usr/lib/libc.so.4
#1  0x281ecfec in lex_scan (zendlval=0xbfbfd9d4) at
zend_language_scanner.c:4123
#2  0x281ce73c in zendlex (zendlval=0xbfbfd9d0) at zend_compile.c:2344
#3  0x281c5d38 in zendparse () at zend_language_parser.c:1869
#4  0x281eaf61 in compile_file (file_handle=0xbfbff93c, type=2) at
zend_language_scanner.c:3036
#5  0x281e2542 in zend_execute_scripts (type=8, file_count=3) at
zend.c:749
#6  0x281f3fdc in php_execute_script (primary_file=0xbfbff93c) at
main.c:1206
#7  0x281f07d6 in apache_php_module_main (r=0x815b034,
display_source_mode=0) at sapi_apache.c:89
#8  0x281f11b6 in send_php (r=0x815b034, display_source_mode=0,
filename=0x0) at mod_php4.c:536
#9  0x281f11f2 in send_parsed_php (r=0x815b034) at mod_php4.c:547
#10 0x806b239 in ap_invoke_handler ()
#11 0x807f940 in process_request_internal ()
#12 0x807f9aa in ap_process_request ()
#13 0x8076977 in child_main ()
#14 0x8076bfc in make_child ()
#15 0x8076cae in startup_children ()
#16 0x80772bc in standalone_main ()
#17 0x8077ad4 in main ()
#18 0x804ee5d in _start ()


System:  FreeBSD 4.4-RELEASE #0
 './configure' '--with-mysql=/usr/local/mysql' '--with-apache=../apache'
'--enable-track-vars' '--with-gettext' '--with-imap=../imap'
'--with-ldap=/usr/local'
-- 
Edit bug report at: http://bugs.php.net/?id=14750&edit=1


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




[PHP-DEV] Bug #14457 Updated: Pspell ceases to work on upgrade from 4.0.6 to 4.1.0

2001-12-28 Thread vlad

ID: 14457
Updated by: vlad
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: Pspell related
Operating System: Linux 2.4.7 (RH7.2)
PHP Version: 4.1.0
New Comment:

... well, in the original bug report you had:
'--with-pspell=/usr/local/share'
and in the new one you have
'--with-pspell=/usr/local/pspell'
That's very different

I hope that you configured pspell with
'--prefix=/usr/local/pspell', right? Otherwise you should have just specified 
'--with-pspell' in php configure line instead.

First, how did you build pspell and aspell (what are the configure lines, versions, 
and in which order you built them)

Second, could you go into the directory with pspell source and from there to examples, 
and try to compile and run an example:

cd pspell/examples
make example-c
./example-c en
s helllo

and please tell if it gives you a list of suggestions for the misspelled word 
'helllo'.

(I'll be in and out of the office for the next few days, so I might not respond in a 
timely manner)

Previous Comments:


[2001-12-17 09:46:39] [EMAIL PROTECTED]

 './configure' '--with-mysql=/usr/local/mysql' '--with-apxs' '--enable-wddx' 
'--with-sablot' '--with-pspell=/usr/local/pspell' '--enable-force-cgi-redirect' 
'--with-gettext' '--with-ldap' '--with-cpdflib=/usr/local' '--with-jpeg-dir' 
'--with-tiff-dir'

is the latest iteneration of my configuration.  This is the exact configuration I am 
using in a 4.0.6 installation.  Pspell does not work with the same using 4.1.0.

(I re-installed pspell to that directory just to make sure)



[2001-12-13 23:37:36] [EMAIL PROTECTED]

It is strange it even compiled.
Are you sure that pspell is installed in
--with-pspell=/usr/local/share
and not in
--with-pspell=/usr/local
???

(e.g. do you have a directory 
/usr/local/include/pspell
or
/usr/local/share/include/pspell
if the former, you probably need to recompile PHP specifying the right directory)

Do you have a configure line for your 4.0.6 installation to compare against?



[2001-12-12 09:09:56] [EMAIL PROTECTED]

'./configure' '--with-mysql=/usr/local/mysql' '--with-apxs' '--enable-wddx' 
'--with-sablot' '--with-pspell=/usr/local/share' '--enable-force-cgi-redirect' 
'--with-gettext '--with-ldap'

Worked in 4.0.6 but not in 4.1.0

Warning: PSPELL couldn't open the dictionary. reason: I'm sorry I can't find any 
suitable word lists for the language-tag "en".

$pspell_link = pspell_new ("en");

if (!pspell_check ($pspell_link, "testt")) {
$suggestions = pspell_suggest ($pspell_link, "testt");

foreach ($suggestions as $suggestion) {
echo "Possible spelling: $suggestion";
}
}






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


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




Re: [PHP-DEV] Getting rid of --disable-session configure option.

2001-12-28 Thread Sascha Schumann

> Problem is in loading *.so file at start up.
> Session module is designed to provide globals
> for sub modules, if session module is not compiled
> in and user load sub module, it spits "undefined
> symbol" error at start up.
> Runtime "undefined symbol" error for perfectly valid
> php.ini (or config) is design flaw, IMHO :)

That would happen on a platform which does not by default
export symbols to the global symbol resolving namespace when
loading a shared object.  On what platform are you seeing
this?

> However, session module is internal module and
> initilized always before normal module, IIRC. It makes
> external session save handler useless with current
> session module code :(
> (We need smart ini parser & module loader, also :)

We need smart administrators.

- Sascha Experience IRCG
  http://schumann.cx/http://schumann.cx/ircg


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




[PHP-DEV] Bug #14746 Updated: Problem whith option --with-mnogosearch

2001-12-28 Thread mrobinso

ID: 14746
Updated by: mrobinso
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: mnoGoSearch related
Operating System: Red Hat 7.2
PHP Version: 4.1.0
New Comment:

What version of mnogosearch are you using?

The current stable version of mnogosearch compiles
fine (mnoGoSearch-3.1.19).


Previous Comments:


[2001-12-28 16:37:27] [EMAIL PROTECTED]

Hi...

I have a problem in configuration of php-4.0.6 and php-4.1.0 when I use the option 
--with-mnogosearch

PHP Configuration
./configure --with-pgsql=/usr/local/pgsql --enable-track-vars --disable-debug 
--with-apxs=/usr/local/apache/bin/apxs --enable-versioning 
--with-config-file-path=/usr/php4/lib --enable-libgcc --with-imap=/usr/local/lib 
--enable-ftp  --with-mysql --with-kerberos --with-sybase-ct=/opt/sybase-11.9.2 
--with-openssl=../openssl-0.9.6b/ --with-mnogosearch
--

/bin/sh /root/php-4.1.0/libtool --silent --mode=compile gcc  -I. 
-I/root/php-4.1.0/main -I/root/php-4.1.0/main -I/root/php-4.1.0 
-I/usr/local/apache/include -I/root/php-4.1.0/Zend -I/root/openssl-0.9.6b/include 
-I/usr/include/imap -I/usr/local/mnogosearch/include 
-I/root/php-4.1.0/ext/mysql/libmysql -I/opt/sybase-11.9.2/include 
-I/root/php-4.1.0/ext/xml/expat  -DLINUX=22 -DMOD_SSL=208104 -DUSE_HSREGEX -DEAPI 
-DUSE_EXPAT -I/root/php-4.1.0/TSRM -g -O2 -prefer-pic  -c internal_functions.c
In file included from /usr/local/mnogosearch/include/udmsearch.h:37,
 from /root/php-4.1.0/ext/mnogosearch/php_mnogo.h:31,
 from internal_functions.c:34:
/usr/local/mnogosearch/include/udm_doc.h:7: parse error before `1'
make[2]: *** [internal_functions.lo] Error 1
make[2]: Leaving directory `/root/php-4.1.0/main'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/php-4.1.0/main'
make: *** [all-recursive] Error 1







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


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




Re: [PHP-DEV] References - good or bad

2001-12-28 Thread Alan Knowles

Andi Gutmans wrote:

> As I mentioned on the ZE2 mailing list there general rule of thumb is:
> a) Objects should be passed by reference.
> b) Everything else including arrays should be used by value whenever 
> possible semantically.
>
> In the ZE2 objects will join b).

Is there a proposed sytnax to stop copy by reference (Or did i miss it 
in the ZE2 docs)
old stuff
$object_copy = $object;  //(copy)
$object_copy = &$object;  //(copy reference)

new stuff?
$object_copy = copy_object($object);  //(copy)
$object_copy = $object;  //(copy reference)

regards
alan

>
> Basically what this means, as long as you're not changing the data 
> passing it by value will take the full advantage of reference counting.
>
> Andi
>




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




Re: [PHP-DEV] Getting rid of --disable-session configure option.

2001-12-28 Thread Yasuo Ohgaki

Derick Rethans wrote:

> Hello,
> 
> in your code you can easily do this:
> 
> #ifndef HAVE_PHP_SESSION
> #error: no session support in this PHP build
> #endif
> 
> there is no need to get rid of --disable-session then


It is okay to compile without session module.

> 
> 
> I only wonder how exactly do you build that pgsql_session handler, and how
> is it supposed to be enabled in PHP, as a .so object?


Problem is in loading *.so file at start up.
Session module is designed to provide globals
for sub modules, if session module is not compiled
in and user load sub module, it spits "undefined
symbol" error at start up.
Runtime "undefined symbol" error for perfectly valid
php.ini (or config) is design flaw, IMHO :)

There are other issue for loading sub modules. Since session
module was normal (i.e. not a internal module), sub module
could be initilized before session module.

However, session module is internal module and
initilized always before normal module, IIRC. It makes
external session save handler useless with current
session module code :(
(We need smart ini parser & module loader, also :)

--
Yasuo Ohgaki

> 
> Derick
> 
> 
> On Wed, 26 Dec 2001, Yasuo Ohgaki wrote:
> 
> 
>>Hi all,
>>
>>I keep posting about "undefiend symbol" error with sub module
>>at start up
>>
>>Since, session is internal module now. How about get rid of
>>--disable-session option from configure?
>>
>>This prevents "undefined symbol" error at runtime. This does
>>not solve sub module related issues, though...
>>
>>--
>>Yasuo Ohgaki
>>
>>
>>--
>>PHP Development Mailing List 
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>>
>>
> 



-- 
Yasuo Ohgaki


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




[PHP-DEV] Bug #14749: array_reduce() causes segmentation faults

2001-12-28 Thread dave

From: [EMAIL PROTECTED]
Operating system: RedHat 7.1
PHP version:  4.1.1
PHP Bug Type: Reproducible crash
Bug description:  array_reduce() causes segmentation faults

This drove me crazy. array_reduce() causes segmentation faults when used in
a complex, recursive manner. I'm pretty sure it's array_reduce() and not
create_function() that's the culprit here. I'm sorry I can't provide a
simpler example, but I've been unable to reprodce the crash otherwise. I'll
try to describe what I'm doing to the best of my abilities.

debug.php is an include that I use for dumping out nicely-formatted data
structures - it works like print_r() but cleaner. It's written using
functional techniques, so I'm using create_function() as a lambda and
array_reduce() as a reduction.

tree.xml is an XML file that I'm parsing into a data structure using
wddx_deserialize(). I thought that it was my deserialization that was the
problem when I was using XML-RPC, and switched to WDDX in hopes that that
would solve the crash problem. It didn't. It took a lot of monkeying around
before I figured out where the real problem was.

I don't know how to use GDB, and I don't really have any more time to
dedicate to this, so no backtrace. Sorry. I've experienced this problem
with PHP 4.1.0, 4.1.1, and 4.2.0-dev under RedHat 7.1 and Apache 1.3.22.

Here are my source files:

crash.php (this is the one to run)





debug.php:

 $val) $result[] = array($key, $val);
return $result;
}

function debug_node($key, $val) {
return "-+ $key "
 . "(" . gettype($val) .
")\n";
}

function debug_leaf($key, $val) {
return "-> $key = $val "
 . "(" . gettype($val) .
")\n";
}

function debug_reduce($prep, $accum, $key_val) {
list($key, $val) = $key_val;
return "$accum$prep" . (is_array($val) ? debug_node($key,  $val)
   . debug_tree("$prep |", $val)
   : debug_leaf($key, 
$val));
}

function debug_tree($prep, $array) {
return array_reduce(array_items($array),
create_function('$a, $x',
"return debug_reduce('$prep', \$a, \$x);"),
'');
}

function debug_array($array) {
return "\n"
 . debug_tree('|', $array) . '';
}

function debug_string($string) {
return "\n"
 . nl2br($string) . "\n";
}

function debug($msg) {
?>






tree.xml:

About UsWho We Areabout/who2342
What We Doodooabout/what69aboutProductsproducts8699Servicesservices<
/array>Contact
Uscontact1

That's it. Good luck.

Peace,
Dave
-- 
Edit bug report at: http://bugs.php.net/?id=14749&edit=1


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




[PHP-DEV] libphp4.so compress problem (fwd)

2001-12-28 Thread Derick Rethans



-- Forwarded message --
Date: Fri, 28 Dec 2001 13:05:02 -0500
From: Matt McClendon <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: libphp4.so compress problem

Hello--

I was having a problem and was searching google groups for solutions when I came
upon a solution you gave to a problem someone was having about a month and a
half ago (
http://groups.google.com/groups?q=libphp4.so+compress+load&hl=en&rnum=2&selm=9tgou2%242tj%241%40FreeBSD.csie.NCTU.edu.tw
).  The simple solution was to just add "--with-zlib" to the ./configure command
line since it's required with mysql support.

You mentioned, though, that that problem was going away in 4.1.0.  I'm using
4.1.1 and still see the "problem."Just so ya know...

thx for the good work you guys do
Matt


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




[PHP-DEV] Bug #14748: ftp_put problems

2001-12-28 Thread blaloggia

From: [EMAIL PROTECTED]
Operating system: Unix
PHP version:  4.0.5
PHP Bug Type: FTP related
Bug description:  ftp_put problems

Okay, I've scoured the bug reports and the message lists and I'm not
convinced that it's even possible to upload from a local file to an ftp
server using ftp_put.  No one seems to have a good answer to the multiple
listings of people having this problem.  I don't believe my problem is a
security problem.  My problem is that PHP wants to use the directory that
my PHP program is in as the default directory for uploading.  ftp_put won't
recognize my C: drive as a local drive.

Here is the gist of the code that doesn't seem to be working:

$host = "ftp.cwplus.com";
$user = "username";
$password = "password";
$remotefile = "/www/cwplus/wendy/images/$filename";
$conn = ftp_connect("$host");
ftp_login($conn, $user, $password);
ftp_put($conn, $remotefile, "C:/test.txt", FTP_BINARY))

I've done all kinds of slash manipulation for the local file and none seem
to help.  

Thanks,
Bob


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


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




Re: [PHP-DEV] Bug #14747: Return exitcodes to shell ($?)

2001-12-28 Thread Vlad Krupin

consensus... well, it wasn't reached. I guess, the overloaded solution - 
exit(string, int) - is the last thing that was proposed and not too many 
people objected to. My understanding is that that's what will happen. Or 
am I wrong again?

-being short this time-


Vlad

Markus Fischer wrote:

>Yo guys,
>
>Derick, Zeev, Everybody who participated in the discussions
>... where were we now? :-)
>
>*smiles* - Markus
>
>On Fri, Dec 28, 2001 at 09:39:37PM -, [EMAIL PROTECTED] wrote : 
>
>>From: [EMAIL PROTECTED]
>>Operating system: 
>>PHP version:  4.1.1
>>PHP Bug Type: Feature/Change Request
>>Bug description:  Return exitcodes to shell ($?)
>>
>>Hi,
>>
>>I tried to use PHP in connection with shellprogramming.
>>
>>I would be fine if you could return exit codes to shellscripts. So that you
>>can use something like "if [ $? -eq 0 ]" to test if the PHP-Script had run
>>succesful.
>>
>>So wouldn`t need to use Perl in future.
>>
>>
>>-- 
>>Edit bug report at: http://bugs.php.net/?id=14747&edit=1
>>
>>
>>-- 
>>PHP Development Mailing List 
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>To contact the list administrators, e-mail: [EMAIL PROTECTED]
>>
>




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




Re: [PHP-DEV] Bug #14747: Return exitcodes to shell ($?)

2001-12-28 Thread Markus Fischer

Yo guys,

Derick, Zeev, Everybody who participated in the discussions
... where were we now? :-)

*smiles* - Markus

On Fri, Dec 28, 2001 at 09:39:37PM -, [EMAIL PROTECTED] wrote : 
> From: [EMAIL PROTECTED]
> Operating system: 
> PHP version:  4.1.1
> PHP Bug Type: Feature/Change Request
> Bug description:  Return exitcodes to shell ($?)
> 
> Hi,
> 
> I tried to use PHP in connection with shellprogramming.
> 
> I would be fine if you could return exit codes to shellscripts. So that you
> can use something like "if [ $? -eq 0 ]" to test if the PHP-Script had run
> succesful.
> 
> So wouldn`t need to use Perl in future.
> 
> 
> -- 
> Edit bug report at: http://bugs.php.net/?id=14747&edit=1
> 
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
Please always Cc to me when replying to me on the lists.

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




[PHP-DEV] Bug #14747: Return exitcodes to shell ($?)

2001-12-28 Thread bernd . herbold

From: [EMAIL PROTECTED]
Operating system: 
PHP version:  4.1.1
PHP Bug Type: Feature/Change Request
Bug description:  Return exitcodes to shell ($?)

Hi,

I tried to use PHP in connection with shellprogramming.

I would be fine if you could return exit codes to shellscripts. So that you
can use something like "if [ $? -eq 0 ]" to test if the PHP-Script had run
succesful.

So wouldn`t need to use Perl in future.


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


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




[PHP-DEV] Bug #14746: Problem whith option --with-mnogosearch

2001-12-28 Thread pescobar

From: [EMAIL PROTECTED]
Operating system: Red Hat 7.2
PHP version:  4.1.0
PHP Bug Type: mnoGoSearch related
Bug description:  Problem whith option --with-mnogosearch

Hi...

I have a problem in configuration of php-4.0.6 and php-4.1.0 when I use the
option --with-mnogosearch

PHP Configuration
./configure --with-pgsql=/usr/local/pgsql --enable-track-vars
--disable-debug --with-apxs=/usr/local/apache/bin/apxs --enable-versioning
--with-config-file-path=/usr/php4/lib --enable-libgcc
--with-imap=/usr/local/lib --enable-ftp  --with-mysql --with-kerberos
--with-sybase-ct=/opt/sybase-11.9.2 --with-openssl=../openssl-0.9.6b/
--with-mnogosearch
--

/bin/sh /root/php-4.1.0/libtool --silent --mode=compile gcc  -I.
-I/root/php-4.1.0/main -I/root/php-4.1.0/main -I/root/php-4.1.0
-I/usr/local/apache/include -I/root/php-4.1.0/Zend
-I/root/openssl-0.9.6b/include -I/usr/include/imap
-I/usr/local/mnogosearch/include -I/root/php-4.1.0/ext/mysql/libmysql
-I/opt/sybase-11.9.2/include -I/root/php-4.1.0/ext/xml/expat  -DLINUX=22
-DMOD_SSL=208104 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -I/root/php-4.1.0/TSRM -g
-O2 -prefer-pic  -c internal_functions.c
In file included from /usr/local/mnogosearch/include/udmsearch.h:37,
 from /root/php-4.1.0/ext/mnogosearch/php_mnogo.h:31,
 from internal_functions.c:34:
/usr/local/mnogosearch/include/udm_doc.h:7: parse error before `1'
make[2]: *** [internal_functions.lo] Error 1
make[2]: Leaving directory `/root/php-4.1.0/main'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/php-4.1.0/main'
make: *** [all-recursive] Error 1


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


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




[PHP-DEV] Bug #14745 Updated: unlink handles relative links oddly

2001-12-28 Thread caldwell

ID: 14745
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Summary: ulink handles relative links oddly
Old Status: Open
Status: Closed
Bug Type: Filesystem function related
Operating System: Linux 2.4.4-ac6
PHP Version: 4.1.1


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


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




[PHP-DEV] Bug #14745: ulink handles relative links oddly

2001-12-28 Thread caldwell

From: [EMAIL PROTECTED]
Operating system: Linux 2.4.4-ac6
PHP version:  4.1.1
PHP Bug Type: Filesystem function related
Bug description:  ulink handles relative links oddly

I am using the relative path "../includes/gifs/" in a script "upload.php". 
This script is in a directory called
glossary/admin, and I have a soft link to it in one called 
curios/admin.  

When I access it from curios/admin (over the web), the command dir works
fine with ""../includes/gifs/" and returns the listing of
curios/includes/gifs/.  But when
the same script from the same URL executes unlink on
"../includes/gifs/up.gif" it complains 

  Warning: Unlink failed (No such file or directory) in
/home/caldwell/public_html/glossary/admin/upload.php on line 62

In short: dir(../*) seems to be relative to the script
soft link, and unlink(../*) seems to be relative to the soft link's
target.

Configure line:

 './configure' '--with-mysql=/usr/local' '--with-apache=../apache_1.3.22'
'--enable-track-vars' '--with-posix' '--enable-sockets' '--with-gmp'
'--with-db2' '--with-ndbm'
-- 
Edit bug report at: http://bugs.php.net/?id=14745&edit=1


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




[PHP-DEV] Bug #14744 Updated: destructor emulation problem (references?)

2001-12-28 Thread cox

ID: 14744
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 4.1.0
New Comment:

The paste seems that wasn't very good, sorry. The correct code:
register();
   }
   
   function register() {
   $GLOBALS['_call_destruct'] =& $this;
   }
}

function _destruct() {
   $foo =& $GLOBALS['_call_destruct'];
   echo "in destructor: {$foo->a}\n";
}

register_shutdown_function('_destruct');

$foo = new Foo;
$foo->a = "new value";
echo "updated value: {$foo->a}\n";
?>


Previous Comments:


[2001-12-28 13:54:45] [EMAIL PROTECTED]

I catched a bug in the PEAR object destructor emulation and could isolate the problem 
in this script.
register();
}

function register() {
$GLOBALS['_call_destruct'] =& $this;
}
}updated value: new value
in destructor: orig value

function _destruct() {
$foo =& $GLOBALS['_call_destruct'];
echo "in destructor: {$foo->a}\n";
}

register_shutdown_function('_destruct');

$foo = new Foo;
$foo->a = "new value";
echo "updated value: {$foo->a}\n";
?>

This outputs:
updated value: new value
in destructor: orig value

Which means that the value of the "a" property is lost. Really the whole object is 
equal to the object comming from the constructor instead of the modified one. This 
doesn't ocurr if you register the object in a method out the constructor.

The correct output of this should be:
updated value: new value
in destructor: new value

-- Tomas V.V.Cox





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


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




[PHP-DEV] Need karma to close bugs 14602, 14616

2001-12-28 Thread Adam Dickmeiss

I need karma to remove @EXTRA_LIBS@ from Zend/Makefile.am in the
defintion of libZend_la_LDFLAGS to solve bugs #14602 and #14616.
Zend people please respond this.

CVS account: dickmeiss

Happy new year,
  Adam

-- 
Adam Dickmeiss  mailto:[EMAIL PROTECTED]  http://www.indexdata.dk
Index Data  T: +45 33410100   Mob.: 212 212 66

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




[PHP-DEV] Bug #14739 Updated: xmltree

2001-12-28 Thread mfischer

ID: 14739
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: DOM XML related
Operating System: Linux
PHP Version: 4.1.0
New Comment:

I even get a segfault with your sample under 4.1.0 but this is fixed in 4.1.1

Except that ATTLIST is not supported the xmltree() works for me (i.e. I don't get 
false back with 4.1.1).

I'm closing it as there's already a feature request open for ATTLIST.

Previous Comments:


[2001-12-28 13:45:23] [EMAIL PROTECTED]

Here is a "short" exemple:

$myXML = '



  


  
  
  
  



  
  


  

]>

  
     

  20011228
  1903
  
Economie
Economie
  
  VGAirlines vliegt vanaf maart dagelijks naar New York
  
BELGABRIEF
ECONOMIE
BELGIE
BEDRIJVEN
LUCHTVAART
TRANSPORT
AGENDA
VS
  

  
  
';

$docTree = xmltree($myXML); 
print("< pre>"); 
var_dump($docTree);
print( "" ); 




[2001-12-28 13:20:26] [EMAIL PROTECTED]

Please provide a short, self-contained example for further references (you know, 
single php file with xml source in a variable and then you call xmltree).

Fedback.



[2001-12-28 12:26:51] [EMAIL PROTECTED]

The xmltree function works very well (faster and shorter to write) but it seems that 
there is a problem when the DTD is in the header of the xml source.
I know it's an experimental function and I know that XML it's not fixed. I just wanted 
to notice you this little problem.

In my case when the DTD is send in the header, the xmltree function return false.

Well ... I will not use and abuse of this wonderful function right now.

This bug was not mentionned in the 4.1.0 -> 4.1.1 modification list. So it's probably 
still in.

Thanks anyway for reading this mail.

Regards.

P.S.: sorry for the English :)






Edit this bug report at http://bugs.php.net/?id=14739&edit=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 #14744: destructor emulation problem (references?)

2001-12-28 Thread cox

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.1.0
PHP Bug Type: Scripting Engine problem
Bug description:  destructor emulation problem (references?)

I catched a bug in the PEAR object destructor emulation and could isolate
the problem in this script.
register();
}

function register() {
$GLOBALS['_call_destruct'] =& $this;
}
}updated value: new value
in destructor: orig value

function _destruct() {
$foo =& $GLOBALS['_call_destruct'];
echo "in destructor: {$foo->a}\n";
}

register_shutdown_function('_destruct');

$foo = new Foo;
$foo->a = "new value";
echo "updated value: {$foo->a}\n";
?>

This outputs:
updated value: new value
in destructor: orig value

Which means that the value of the "a" property is lost. Really the whole
object is equal to the object comming from the constructor instead of the
modified one. This doesn't ocurr if you register the object in a method out
the constructor.

The correct output of this should be:
updated value: new value
in destructor: new value

-- Tomas V.V.Cox
-- 
Edit bug report at: http://bugs.php.net/?id=14744&edit=1


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




[PHP-DEV] Bug #14739 Updated: xmltree

2001-12-28 Thread sebastien . barbieri

ID: 14739
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Open
Bug Type: DOM XML related
Operating System: Linux
PHP Version: 4.1.0
New Comment:

Here is a "short" exemple:

$myXML = '



  


  
  
  
  



  
  


  

]>

  
 
    
  20011228
  1903
  
Economie
Economie
  
  VGAirlines vliegt vanaf maart dagelijks naar New York
  
BELGABRIEF
ECONOMIE
BELGIE
BEDRIJVEN
LUCHTVAART
TRANSPORT
AGENDA
VS
  

  
  
';

$docTree = xmltree($myXML); 
print("< pre>"); 
var_dump($docTree);
print( "" ); 


Previous Comments:


[2001-12-28 13:20:26] [EMAIL PROTECTED]

Please provide a short, self-contained example for further references (you know, 
single php file with xml source in a variable and then you call xmltree).

Fedback.



[2001-12-28 12:26:51] [EMAIL PROTECTED]

The xmltree function works very well (faster and shorter to write) but it seems that 
there is a problem when the DTD is in the header of the xml source.
I know it's an experimental function and I know that XML it's not fixed. I just wanted 
to notice you this little problem.

In my case when the DTD is send in the header, the xmltree function return false.

Well ... I will not use and abuse of this wonderful function right now.

This bug was not mentionned in the 4.1.0 -> 4.1.1 modification list. So it's probably 
still in.

Thanks anyway for reading this mail.

Regards.

P.S.: sorry for the English :)






Edit this bug report at http://bugs.php.net/?id=14739&edit=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 #14743 Updated: infite method calls

2001-12-28 Thread mfischer

ID: 14743
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Reproducible crash
Operating System: Linux
PHP Version: 4.1.0
New Comment:

And still there's nothing PHP can do about it (this has been discussed in the past a 
few times). Bogus.

Previous Comments:


[2001-12-28 13:19:53] [EMAIL PROTECTED]

This script (stupid) makes php crash. I know is a fail of the developer but still a 
crash.
updateA('new value');
}

function updateA($val) {
$this->register();
$this->a = $val;
}
}

$foo = new Foo;
$foo->updateA("new value");

?>





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


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




[PHP-DEV] Bug #14741 Updated: is_file returns an error rather than if a file exists or not

2001-12-28 Thread mfischer

ID: 14741
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Filesystem function related
Operating System: FreeBSD 4.3
PHP Version: 4.1.0
New Comment:

This has been fixed in 4.1.1 . Closing.

Previous Comments:


[2001-12-28 13:14:08] [EMAIL PROTECTED]



That code throws this error:

Warning: stat failed for .php (errno=2 - No such file or directory) in 
/usr/home/edgewww/helpandsupport.net/cs/htdocs/index.php on line 39

Warning: stat failed for .inc (errno=2 - No such file or directory) in 
/usr/home/edgewww/helpandsupport.net/cs/htdocs/index.php on line 40

I've corrected this issue by using file_exists but for the sake of not having to 
change my backend, I'd love for is_file to start working again.





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


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




[PHP-DEV] Bug #14739 Updated: xmltree

2001-12-28 Thread mfischer

ID: 14739
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: DOM XML related
Operating System: Linux
PHP Version: 4.1.0
New Comment:

Please provide a short, self-contained example for further references (you know, 
single php file with xml source in a variable and then you call xmltree).

Fedback.

Previous Comments:


[2001-12-28 12:26:51] [EMAIL PROTECTED]

The xmltree function works very well (faster and shorter to write) but it seems that 
there is a problem when the DTD is in the header of the xml source.
I know it's an experimental function and I know that XML it's not fixed. I just wanted 
to notice you this little problem.

In my case when the DTD is send in the header, the xmltree function return false.

Well ... I will not use and abuse of this wonderful function right now.

This bug was not mentionned in the 4.1.0 -> 4.1.1 modification list. So it's probably 
still in.

Thanks anyway for reading this mail.

Regards.

P.S.: sorry for the English :)






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


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




[PHP-DEV] Bug #14743: infite method calls

2001-12-28 Thread cox

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.1.0
PHP Bug Type: Reproducible crash
Bug description:  infite method calls

This script (stupid) makes php crash. I know is a fail of the developer but
still a crash.
updateA('new value');
}

function updateA($val) {
$this->register();
$this->a = $val;
}
}

$foo = new Foo;
$foo->updateA("new value");

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


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




[PHP-DEV] Bug in bugs.php.net?

2001-12-28 Thread Andrey Hristov

When I saw a recent message on the PHP-DEV lists an idea of that stripslashes() is not 
applied to the output before a mail about a
bug is sent
Example :
From: [EMAIL PROTECTED]
Operating system: don\'t care
PHP version:  4.1.1
PHP Bug Type: Documentation problem
Bug description:  Example is wrong

http://download.php.net/manual/en/function.strftime.php

This is a mistake.
print (strftime ("%A, in French "));
setlocale ("LC_TIME", "fr_CA");

fr is the French language
...
...
In the "Operating system: don\'t care" there is a slash, but it is not needed there.

Regards,
Andrey Hristov


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




[PHP-DEV] Bug #14742: Example is wrong

2001-12-28 Thread php

From: [EMAIL PROTECTED]
Operating system: don\'t care
PHP version:  4.1.1
PHP Bug Type: Documentation problem
Bug description:  Example is wrong

http://download.php.net/manual/en/function.strftime.php

This is a mistake.
print (strftime ("%A, in French "));
setlocale ("LC_TIME", "fr_CA");

fr is the French language
CA is a country, Canada in this case.
So, fr_CA is likely Quebec Time or Eastern Time.

This example should be replaced with:

print (strftime ("%A, in French "));
setlocale ("LC_TIME", "fr_FR");

Denis

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


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




[PHP-DEV] Bug #14741: is_file returns an error rather than if a file exists or not

2001-12-28 Thread watford

From: [EMAIL PROTECTED]
Operating system: FreeBSD 4.3
PHP version:  4.1.0
PHP Bug Type: Filesystem function related
Bug description:  is_file returns an error rather than if a file exists or not



That code throws this error:

Warning: stat failed for .php (errno=2 - No such file or directory) in
/usr/home/edgewww/helpandsupport.net/cs/htdocs/index.php on line 39

Warning: stat failed for .inc (errno=2 - No such file or directory) in
/usr/home/edgewww/helpandsupport.net/cs/htdocs/index.php on line 40

I've corrected this issue by using file_exists but for the sake of not
having to change my backend, I'd love for is_file to start working again.
-- 
Edit bug report at: http://bugs.php.net/?id=14741&edit=1


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




RE: [PHP-DEV] unsubscibe

2001-12-28 Thread James Cox

actually, try sending mail to [EMAIL PROTECTED]

Thanks,

James Cox

> -Original Message-
> From: Alexander Wagner [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 28, 2001 5:38 PM
> To: Oleg Nazarevych; [EMAIL PROTECTED]
> Subject: Re: [PHP-DEV] unsubscibe
> 
> 
> Oleg Nazarevych wrote:
> > unsubscibe
> 
> try unsubscribe with r
> 
> regards
> Wagner
> 
> -- 
> Cynic, n.: A blackguard whose faulty vision sees things as they are,
> not as they ought to be. 
>-- Ambrose Bierce, "The Devil's Dictionary"
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 

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




Re: [PHP-DEV] unsubscibe

2001-12-28 Thread Alexander Wagner

Oleg Nazarevych wrote:
> unsubscibe

try unsubscribe with r

regards
Wagner

-- 
Cynic, n.: A blackguard whose faulty vision sees things as they are,
not as they ought to be. 
   -- Ambrose Bierce, "The Devil's Dictionary"

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




[PHP-DEV] Bug #14740 Updated: fsockopen() won't timeout

2001-12-28 Thread l0cky

ID: 14740
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Sockets related
Old Operating System: Win98
Operating System: Win98 and Win2k
PHP Version: 4.1.0
New Comment:

A simple query to a server with fsockopen() won't timeout if the requested server is
down.

$serverquery = fsockopen($host, $port, &$errno, &$errstr, $timeout);

The operation times out first (120 seconds), even if $timeout is as low as 1 second; 
it
works fine if I remove unavailable servers from the query list.  Sometimes the server
crashes if I try the function again before the last operation times out.

Previous Comments:


[2001-12-28 12:31:36] [EMAIL PROTECTED]

A simple query to a server with fsockopen() won't timeout if the requested server is 
down.

$serverquery = fsockopen($host, $port, &$errno, &$errstr, $timeout);

The operation times out first (120 seconds), even if $timeout is as low as 1 second; 
it works fine if I remove unavailable servers from the query list.  Sometimes the 
server crashes if I try the function again before the last operation times out.





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


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




[PHP-DEV] Bug #14740: fsockopen() won't timeout

2001-12-28 Thread l0cky

From: [EMAIL PROTECTED]
Operating system: Win98
PHP version:  4.1.0
PHP Bug Type: Sockets related
Bug description:  fsockopen() won't timeout

A simple query to a server with fsockopen() won't timeout if the requested
server is down.

$serverquery = fsockopen($host, $port, &$errno, &$errstr, $timeout);

The operation times out first (120 seconds), even if $timeout is as low as
1 second; it works fine if I remove unavailable servers from the query
list.  Sometimes the server crashes if I try the function again before the
last operation times out.
-- 
Edit bug report at: http://bugs.php.net/?id=14740&edit=1


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




[PHP-DEV] unsubscibe

2001-12-28 Thread Oleg Nazarevych

unsubscibe


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




[PHP-DEV] Bug #14739: xmltree

2001-12-28 Thread sebastien . barbieri

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.1.0
PHP Bug Type: DOM XML related
Bug description:  xmltree

The xmltree function works very well (faster and shorter to write) but it
seems that there is a problem when the DTD is in the header of the xml
source.
I know it's an experimental function and I know that XML it's not fixed. I
just wanted to notice you this little problem.

In my case when the DTD is send in the header, the xmltree function return
false.

Well ... I will not use and abuse of this wonderful function right now.

This bug was not mentionned in the 4.1.0 -> 4.1.1 modification list. So
it's probably still in.

Thanks anyway for reading this mail.

Regards.

P.S.: sorry for the English :)

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


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




[PHP-DEV] Bug #14729 Updated: after phpinfo() is called, web page is still running...

2001-12-28 Thread wfottley

ID: 14729
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: IIS related
Operating System: Windows XP
PHP Version: 4.1.0
New Comment:

I'm sorry, this is not a DNS issue. when I mentioned I setup to Windows XP systems, I 
also used on on MY network at the office, and I can assure you, my office PC has no 
DNS issues. I even set everything to the "legit" address on my IIS: 
"beaktest.beak.com".

Previous Comments:


[2001-12-28 11:22:21] [EMAIL PROTECTED]

Probably a netwrok/dns problem.
Ask support questions on [EMAIL PROTECTED]



[2001-12-27 23:13:49] [EMAIL PROTECTED]

mysql, php 4.1.0, IIS 5.1
I have installed php as ISAPI. with the php .dll's in c:\windows\system32 dir. when I 
create a simple html with phpinfo() in it, I get all the info back, but down at the 
bottom, I can see "Opening page index.php at localhost.." for approx 5 minutes, and 
then the page returns with a DNS.

I call the page with "http://localhost/test/index.php";

I tested this same situation on another Windows XP machine: copied the php.ini file, 
and get the same "hanging"...

I don't want to try and run apache, I need IIS 5 to work.

html file:



My first PHP page








---   php.ini:  ---


[PHP]

; Language Options ;


; Enable the PHP scripting language engine under Apache.
engine = On

; Allow the  tags are recognized.
short_open_tag = On

; Allow ASP-style <% %> tags.
asp_tags = Off

; The number of significant digits displayed in floating point numbers.
precision=  14

; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
y2k_compliance = Off

; Output buffering allows you to send header lines (including cookies) even
; after you send body content, at the price of slowing PHP's output layer a
; bit.  You can enable output buffering during runtime by calling the output
; buffering functions.  You can also enable output buffering for all files by
; setting this directive to On.
output_buffering = Off

; You can redirect all of the output of your scripts to a function.  For
; example, if you set output_handler to "ob_gzhandler", output will be
; transparently compressed for browsers that support gzip or deflate encoding.
; Setting an output handler automatically turns on output buffering.
;output_handler =

; Transparent output compression using the zlib library
; Valid values for this option are 'off', 'on', or a specific buffer size
; to be used for compression (default is 4KB)
zlib.output_compression = Off

; Implicit flush tells PHP to tell the output layer to flush itself
; automatically after every output block.  This is equivalent to calling the
; PHP function flush() after each and every call to print() or echo() and each
; and every HTML block.  Turning this option on has serious performance
; implications and is generally recommended for debugging purposes only.
implicit_flush = Off

; Whether to enable the ability to force arguments to be passed by reference
; at function call time.  This method is deprecated and is likely to be
; unsupported in future versions of PHP/Zend.  The encouraged method of
; specifying which arguments should be passed by reference is in the function
; declaration.  You're encouraged to try and turn this option Off and make
; sure your scripts work properly with it in order to ensure they will work
; with future versions of the language (you will receive a warning each time
; you use this feature, and the argument will be passed by value instead of by
; reference).
allow_call_time_pass_reference = On


;
; Safe Mode
;
safe_mode = Off

safe_mode_exec_dir =

; Setting certain environment variables may be a potential security breach.
; This directive contains a comma-delimited list of prefixes.  In Safe Mode,
; the user may only alter environment variables whose names begin with the
; prefixes supplied here.  By default, users will only be able to set
; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR).
;
; Note:  If this directive is empty, PHP will let the user modify ANY
; environment variable!
safe_mode_allowed_env_vars = PHP_

; This directive contains a comma-delimited list of environment variables that
; the end user won't be able to change using putenv().  These variables will be
; protected even if safe_mode_allowed_env_vars is set to allow to change them.
safe_mode_protected_env_vars = LD_LIBRARY_PATH

; This directive allows you to disable certain functions for security reasons.
; It receives a comma-deliminated list of function names.  This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
disable_functions =

; Colors for Syntax Highlighting mode.  

[PHP-DEV] CVS Account Request: bradmssw

2001-12-28 Thread Brad House

I have written an extension to php for the MCVE engine.  It can be loaded as a module 
or compiled into the code base, and would like to have it distributed with PHP.  I 
would need commit access in order to maintain the module.  The product, MCVE is a 
credit card processing engine similar in purpose to RedHat's CCVS or CyberCash's 
ICVerify.  Though RedHat's CCVS has been discontinued. And MCVE is the only 
replacement product for Linux/UNIX systems.

Thanks.

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




[PHP-DEV] Bug #14734 Updated: new superglobals ($_SERVER, etc.) not documented

2001-12-28 Thread goba

ID: 14734
Updated by: goba
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Documentation problem
Operating System: Win XP
PHP Version: 4.1.0
New Comment:

Tested again. Yes you are right. It would be good
to have it listed only in _SERVER, as the other vars.

Previous Comments:


[2001-12-28 10:29:47] [EMAIL PROTECTED]

It's printed in _SERVER too (apache 1.3.22/php 4.1.0).



[2001-12-28 10:17:17] [EMAIL PROTECTED]

Just a note: in the PHP 4.1.0 phpinfo() output, all the
predefined vars are printed as _SERVER and _ENV members,
except PHP_SELF, it is printed alone, and not in any
array. This must be corrected!



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

Valid point. I'm reopening this as a documentation problem.



[2001-12-28 10:01:35] [EMAIL PROTECTED]

Hi All,

Thanks for the replies. The docs tell me that using globally registered vars presents 
a security risk and is being turned off in future versions anyway, so it's quite 
necessary to get accustomed to it.

Using $_SERVER['PHP_SELF'] must be the way to go.

However, where to find proper documentation on these 'new' vars ? I can't find them, 
only some pages mentioning they exist.. 



[2001-12-28 09:56:13] [EMAIL PROTECTED]

The correct way would be to use $_SERVER['PHP_SELF'] ; this is guaranteed to work with 
and without register_globals = off.



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=14734


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


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




Re: [PHP-DEV] References - good or bad

2001-12-28 Thread Andi Gutmans

As I mentioned on the ZE2 mailing list there general rule of thumb is:
a) Objects should be passed by reference.
b) Everything else including arrays should be used by value whenever 
possible semantically.

In the ZE2 objects will join b).

Basically what this means, as long as you're not changing the data passing 
it by value will take the full advantage of reference counting.

Andi

At 10:28 AM 12/28/2001 -0600, Brian Moon wrote:
>Ok, there has been some discussion on the ZE2 list about returning
>references from functions and it has gotten me looking at references in
>general.  Phorum deals with some pretty large arrays and so far that has
>made us faster than other BB's.  I want to keep it that way.
>
>First, the question: When is it a good idea to use references for
>performance reasons?
>
>Now, some things I tried (PHP 4.0.6):
>
> $arr=array();
> $arr=array_pad($arr, 1, md5(microtime()));
>
> function test($arr){
> $newvar=$arr;
> return $newvar;
> }
>
> $newvar=test($arr);
>
>This code takes 2.6MB of ram to run. Changing the function to any of these:
>
> function test(&$arr){
> $newvar=$arr;
> return $newvar;
> }
>
> function test(&$arr){
> $newvar=&$arr;
> return $newvar;
> }
>
> function test($arr){
> $newvar=&$arr;
> return $newvar;
> }
>
>it now takes 4.4MB to run. That is not what I expected.
>
>Now, this function:
>
> function test($arr){
> foreach($arr as $key => $var){
> $newvar[$key]=$var;
> }
> return $newvar;
> }
>
>takes 4.4MB also.  I would expect that.  However, changing it to:
>
> function test($arr){
> foreach($arr as $key => $var){
> $newvar[$key]=&$arr[$key];
> }
> return $newvar;
> }
>
>It now takes 6.8MB of ram.
>
>Last, this code:
>
> $arr=array();
> $arr=array_pad($arr, 1, md5(microtime()));
>
> $arr2=$arr;
>
>uses 2.6MB where:
>
> $arr=array();
> $arr=array_pad($arr, 1, md5(microtime()));
>
> $arr2=&$arr;
>
>uses 3.5MB.
>
>
>So, my conclusion is that references are bad in all cases on memory and
>should only be used when you have to know you are using the same exact data
>in two places, or a variable needs to be modified by a function.  If this is
>the case, shouldn't this be documented?
>
>Am I missing something?
>
>Brian Moon
>--
>dealnews.com, Inc.
>Makers of dealnews & dealmac
>http://dealnews.com/ | http://dealmac.com/
>
>
>
>--
>PHP Development Mailing List 
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]


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




[PHP-DEV] References - good or bad

2001-12-28 Thread Brian Moon

Ok, there has been some discussion on the ZE2 list about returning
references from functions and it has gotten me looking at references in
general.  Phorum deals with some pretty large arrays and so far that has
made us faster than other BB's.  I want to keep it that way.

First, the question: When is it a good idea to use references for
performance reasons?

Now, some things I tried (PHP 4.0.6):

$arr=array();
$arr=array_pad($arr, 1, md5(microtime()));

function test($arr){
$newvar=$arr;
return $newvar;
}

$newvar=test($arr);

This code takes 2.6MB of ram to run. Changing the function to any of these:

function test(&$arr){
$newvar=$arr;
return $newvar;
}

function test(&$arr){
$newvar=&$arr;
return $newvar;
}

function test($arr){
$newvar=&$arr;
return $newvar;
}

it now takes 4.4MB to run. That is not what I expected.

Now, this function:

function test($arr){
foreach($arr as $key => $var){
$newvar[$key]=$var;
}
return $newvar;
}

takes 4.4MB also.  I would expect that.  However, changing it to:

function test($arr){
foreach($arr as $key => $var){
$newvar[$key]=&$arr[$key];
}
return $newvar;
}

It now takes 6.8MB of ram.

Last, this code:

$arr=array();
$arr=array_pad($arr, 1, md5(microtime()));

$arr2=$arr;

uses 2.6MB where:

$arr=array();
$arr=array_pad($arr, 1, md5(microtime()));

$arr2=&$arr;

uses 3.5MB.


So, my conclusion is that references are bad in all cases on memory and
should only be used when you have to know you are using the same exact data
in two places, or a variable needs to be modified by a function.  If this is
the case, shouldn't this be documented?

Am I missing something?

Brian Moon
--
dealnews.com, Inc.
Makers of dealnews & dealmac
http://dealnews.com/ | http://dealmac.com/



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




[PHP-DEV] Bug #14730 Updated: return wrong charset

2001-12-28 Thread sander

ID: 14730
Updated by: sander
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Feedback
Bug Type: MSSQL related
Operating System: Windows2000Pro
PHP Version: 4.1.0
New Comment:

Can you provide a (short) sample script?

Previous Comments:


[2001-12-28 03:16:49] [EMAIL PROTECTED]

Dataset return incorrect charset. I use russian win-1251 charset.
With version 4.0.5 work fine.





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


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




[PHP-DEV] Bug #14727 Updated: implode() does not implode in order

2001-12-28 Thread sander

ID: 14727
Updated by: sander
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Arrays related
Operating System: win 98
PHP Version: 4.0.6
New Comment:

Implode works fine.
Probably an error in your script. Ask support questions on [EMAIL PROTECTED]

Previous Comments:


[2001-12-27 19:10:45] [EMAIL PROTECTED]

 in multiple array $cards, implode("-",$cards["num"]) differs from concatenated string 
$cards["num"][...order...]

imploded: ";
$periexomeno=implode("-",$cards["num"]);
$aneinai20=implode("-",$cards["d20"]);
echo $periexomeno."";
}

//-
function sorthim($poion,&$cards){
$t=0;
$kartesoldexei=array(1=>1);
for ($i=1;$i<=24;$i++){
if ((($cards["PiT"][$i])< (8 + ($poion - 1) * 10)) and 
(($cards["PiT"][$i])>(($poion - 1) * 10))) {
$t++;
$kartesoldpoia[$t]=$i;
$kartesoldpou[$t]=$cards["PiT"][$i];
$kartesoldexei[$t]=$cards["num"][$i];
}  //if end
}  // for end
sort ($kartesoldexei);
for ($i=1;$i<=$t;$i++){
$cards["num"][$kartesoldpoia[$i]]=$kartesoldexei[$i-1];
$cards["PiT"][$kartesoldpoia[$i]]=$kartesoldpou[$i];
}
}
//-END OF 
FUNCTIONS---
$palia=array(1=>1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24);
$cards= array ("num"=>array(1=>1)
,"PiP"=>array(1=>1)
,"PiT"=>array(1=>1),
"d20"=>array(1=>"N")
,"d40"=>array(1=>"N")
,"nine"=>array(1=>"N")
,"can"=>array(1=>"N")
);
for ($i=24;$i;$i--){
  $randval=1;
  if  ($i<>1){
 mt_srand ((double) microtime() * 100);
 $randval = mt_rand(1,$i) ;
  }
  $cards["num"][$i]=$palia[$randval];
  if ($i<>$randval)
$palia[$randval]=$palia[$i];
} //Ôþñá  õðÜñ÷ïõí ïé êÜñôåò áíáêáôåìÝíåò
for ($i=1;$i<=24;$i++){
$cards["PiP"][$i]=$i;
$cards["PiT"][$i]=18;
$cards["d20"][$i]="N";
$cards["d40"][$i]="N";
$cards["nine"][$i]="N";
$cards["can"][$i]="N";
}
mt_srand ((double) microtime() * 100);
$randval = mt_rand(0,1) ;
for ($i=1;$i<=6;$i++){
$cards["PiT"][$i]=$i;
$cards["PiT"][$i+6]=10+$i;
}
$cards["PiT"][13]=8;
$x=tria($cards); //print sample
$poion=1;
 sorthim ($poion,$cards);
$poion=2;
 sorthim ($poion,$cards);
$x=tria($cards);//print sample
?>





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


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




[PHP-DEV] Bug #14729 Updated: after phpinfo() is called, web page is still running...

2001-12-28 Thread sander

ID: 14729
Updated by: sander
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: IIS related
Operating System: Windows XP
PHP Version: 4.1.0
New Comment:

Probably a netwrok/dns problem.
Ask support questions on [EMAIL PROTECTED]

Previous Comments:


[2001-12-27 23:13:49] [EMAIL PROTECTED]

mysql, php 4.1.0, IIS 5.1
I have installed php as ISAPI. with the php .dll's in c:\windows\system32 dir. when I 
create a simple html with phpinfo() in it, I get all the info back, but down at the 
bottom, I can see "Opening page index.php at localhost.." for approx 5 minutes, and 
then the page returns with a DNS.

I call the page with "http://localhost/test/index.php";

I tested this same situation on another Windows XP machine: copied the php.ini file, 
and get the same "hanging"...

I don't want to try and run apache, I need IIS 5 to work.

html file:



My first PHP page








---   php.ini:  ---


[PHP]

; Language Options ;


; Enable the PHP scripting language engine under Apache.
engine = On

; Allow the  tags are recognized.
short_open_tag = On

; Allow ASP-style <% %> tags.
asp_tags = Off

; The number of significant digits displayed in floating point numbers.
precision=  14

; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
y2k_compliance = Off

; Output buffering allows you to send header lines (including cookies) even
; after you send body content, at the price of slowing PHP's output layer a
; bit.  You can enable output buffering during runtime by calling the output
; buffering functions.  You can also enable output buffering for all files by
; setting this directive to On.
output_buffering = Off

; You can redirect all of the output of your scripts to a function.  For
; example, if you set output_handler to "ob_gzhandler", output will be
; transparently compressed for browsers that support gzip or deflate encoding.
; Setting an output handler automatically turns on output buffering.
;output_handler =

; Transparent output compression using the zlib library
; Valid values for this option are 'off', 'on', or a specific buffer size
; to be used for compression (default is 4KB)
zlib.output_compression = Off

; Implicit flush tells PHP to tell the output layer to flush itself
; automatically after every output block.  This is equivalent to calling the
; PHP function flush() after each and every call to print() or echo() and each
; and every HTML block.  Turning this option on has serious performance
; implications and is generally recommended for debugging purposes only.
implicit_flush = Off

; Whether to enable the ability to force arguments to be passed by reference
; at function call time.  This method is deprecated and is likely to be
; unsupported in future versions of PHP/Zend.  The encouraged method of
; specifying which arguments should be passed by reference is in the function
; declaration.  You're encouraged to try and turn this option Off and make
; sure your scripts work properly with it in order to ensure they will work
; with future versions of the language (you will receive a warning each time
; you use this feature, and the argument will be passed by value instead of by
; reference).
allow_call_time_pass_reference = On


;
; Safe Mode
;
safe_mode = Off

safe_mode_exec_dir =

; Setting certain environment variables may be a potential security breach.
; This directive contains a comma-delimited list of prefixes.  In Safe Mode,
; the user may only alter environment variables whose names begin with the
; prefixes supplied here.  By default, users will only be able to set
; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR).
;
; Note:  If this directive is empty, PHP will let the user modify ANY
; environment variable!
safe_mode_allowed_env_vars = PHP_

; This directive contains a comma-delimited list of environment variables that
; the end user won't be able to change using putenv().  These variables will be
; protected even if safe_mode_allowed_env_vars is set to allow to change them.
safe_mode_protected_env_vars = LD_LIBRARY_PATH

; This directive allows you to disable certain functions for security reasons.
; It receives a comma-deliminated list of function names.  This directive is
; *NOT* affected by whether Safe Mode is turned On or Off.
disable_functions =

; Colors for Syntax Highlighting mode.  Anything that's acceptable in
;  would work.
highlight.string  = #CC
highlight.comment = #FF9900
highlight.keyword = #006600
highlight.bg  = #FF
highlight.default = #CC
highlight.html= #00


;
; Misc
;
; Decides whether PHP may expose the fact that it is installed on the server
; (e.g. by adding its signature to the Web server header).  

Re: [PHP-DEV] Development question: DNS lookups

2001-12-28 Thread Stig Venaas

On Fri, Dec 28, 2001 at 05:00:20PM +0100, Edwin Boersma wrote:
> At 16:51 28-12-01, you wrote:
> >On Fri, Dec 28, 2001 at 04:30:33PM +0100, Edwin Boersma wrote:
> > > Hi there,
> > >
> > > My provider stopped the DNS service on the server that runs mySQL and
> > > PHP. By result, the function GetHostByAddr() is useless. Can I tell PHP
> > > to use another DNS server to lookup the IP-address?
> >
> >No PHP uses whatever is configured on the system. PHP just does the
> >gethostbyaddr() call, and the system does the rest. One solution
> >could be to call an external program like host or something. host
> >can be told to use a specific nameserver, and does not depend on
> >system configuration.
> >
> >Stig
> 
> Hmm, not a very satisfying answer. I don't know of any Linux program, that 

I know it's not very satisfying, but on most Linux installations you have
the program called "host". Try "host ipaddress serveraddress". If you
have this, it is simple to call the program from PHP and use the output.

> does what you suggest. Wouldn't it be handy to extend the function (or have 
> another one), so that it can use any DNS server, that is parsed to the 
> function?

Sorry, but I'm against adding all that extra code for a special case
like this. Personally I would say that if service provider blocked
DNS, then the provider is the problem. If provider wants to, he can
block all DNS lookups going out from the box. I'm cc-ing this to
php-dev.

Stig

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




[PHP-DEV] Bug #14738: array_pad dies with large pad length

2001-12-28 Thread brianm

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.0.6
PHP Bug Type: Arrays related
Bug description:  array_pad dies with large pad length 

This code:

$arr=array();
$arr=array_pad($arr, 65535, md5(microtime()));

causes this output:

[Fri Dec 28 10:01:38 2001]  Script:  './test.php'
---
zend_execute.h(62) : Block 0x081BD070 status:
Beginning:  Cached (allocated on ./zend_execute.c:1502, 12 bytes)
  End:  OK
---

backing that down to 65534 will cause no error.  Looks like that parameter
is set to only allow 32 bit integers. 
-- 
Edit bug report at: http://bugs.php.net/?id=14738&edit=1


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




[PHP-DEV] Bug #14737: PDF DLL is not working

2001-12-28 Thread ralf . dreger

From: [EMAIL PROTECTED]
Operating system: Windows 2000 Server
PHP version:  4.1.0
PHP Bug Type: *General Issues
Bug description:  PDF DLL is not working

- New Installation
- OS W2K Server Sp2 Eng
- Standart IIS installation
- Terminal Services (not yet)
- phpMyAdmin 2.2.2

When I try to add a extension (e.g. php_pdf.dll),
I get the following error messige back:
--
X-Powered-By: PHP/4.1.0 Content-type: text/html PHP Warning: Unable to load
dynamic library './php_pdf.dll' - The specified module could not be found.
in Unknown on line 0
--

I tryed the following ways in the php.ini:
--
extension_dir = ./
extension_dir = D:\Tools\PHP\extensions
extension_dir = D:\Tools\PHP\extensions\
extension_dir = D:/Tools/PHP/extensions
--
but nothings works.
I'm using the dlls witch where part of the zip file from
your download site.

The new dlls are very smale (e.g. pdf now 92k, before 500k)

Do you have any idea. Thank you for your support/help.

Best wishes
Ralf
[EMAIL PROTECTED]
-- 
Edit bug report at: http://bugs.php.net/?id=14737&edit=1


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




[PHP-DEV] Bug #14736: about error_reporting for $_GET

2001-12-28 Thread Xuefer

From: [EMAIL PROTECTED]
Operating system: all
PHP version:  4.1.1
PHP Bug Type: Feature/Change Request
Bug description:  about error_reporting for $_GET

suggest that it should be possible to turn off warnning of undefined index
of $_GET ans $_POST and so on..

example:

such as:
url: http://www.domain.com/index.php
code: 
would cause warnning 'Undefined index'
unless the user must type in http://www.domain.com/index.php?id=123

or the code should be changed into:

or maybe:



of cause, we can turn off warnning for a running website.
buthow can the web developers bear it when developing ?
it's a 'terrible' warnning message that we don't want, we should have our
attentions to those warnning about variables like $foo['bar'] not
$_GET['id'] nor $_POST['username']
-- 
Edit bug report at: http://bugs.php.net/?id=14736&edit=1


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




Re: [PHP-DEV] Development question: DNS lookups

2001-12-28 Thread Stig Venaas

On Fri, Dec 28, 2001 at 04:30:33PM +0100, Edwin Boersma wrote:
> Hi there,
> 
> My provider stopped the DNS service on the server that runs mySQL and
> PHP. By result, the function GetHostByAddr() is useless. Can I tell PHP
> to use another DNS server to lookup the IP-address?

No PHP uses whatever is configured on the system. PHP just does the
gethostbyaddr() call, and the system does the rest. One solution
could be to call an external program like host or something. host
can be told to use a specific nameserver, and does not depend on
system configuration.

Stig

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




[PHP-DEV] Development question: DNS lookups

2001-12-28 Thread Edwin Boersma

Hi there,

My provider stopped the DNS service on the server that runs mySQL and
PHP. By result, the function GetHostByAddr() is useless. Can I tell PHP
to use another DNS server to lookup the IP-address?

Regards,
Edwin

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




[PHP-DEV] Bug #14732 Updated: Broken links in global.ent

2001-12-28 Thread georg

ID: 14732
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Documentation problem
Operating System: all
PHP Version: 4.1.1
New Comment:

broken links fixed for

- adabas
- ldap
- libiconv 


Previous Comments:


[2001-12-28 09:55:54] [EMAIL PROTECTED]

Please commit that little script into phpdoc into the
scripts directory. We have some scripts there to test
XML files, such as the entities.php or dbtags.php. It
would be nice to make this test from time to time.

To answer your current bug report, I have not time
currently to skim through these addresses and find
the right, so anybody with sufficient time, or
who knows some of the right links would be welcome :)

--
Goba



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

Hi,

just wrote a little script and checked global.ent

url.adabas: unknown host (www.adabas.com)
url.hyperwave-proto: document not found 
(http://www.hyperwave.de/7.17-hg-prot)
url.iicm: unknown host (iicm.edu)
url.iptc: document not found or unreachable 
(http://www.iptc.org/)
url.ldap.ldapworld: document not found or unreachable 
(http://elvira.innosoft.com/ldapworld)
url.libiconv: document not found 
(http://clisp.cons.org/~haible/packages-libiconv.html)
url.malinimg: document not found 
(http://www.pvv.org/~ssb/malin/bilder/mi/twain001.jpg)
url.mersenne.twister: unknown host (www.scp.syr.edu)
url.nis: document not found 
(http://www.desy.de/~sieversm/ypdoku/ypdoku/ypdoku.html)

Georg






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


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




[PHP-DEV] Bug #14734 Updated: new superglobals ($_SERVER, etc.) not documented

2001-12-28 Thread mfischer

ID: 14734
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Documentation problem
Operating System: Win XP
PHP Version: 4.1.0
New Comment:

It's printed in _SERVER too (apache 1.3.22/php 4.1.0).

Previous Comments:


[2001-12-28 10:17:17] [EMAIL PROTECTED]

Just a note: in the PHP 4.1.0 phpinfo() output, all the
predefined vars are printed as _SERVER and _ENV members,
except PHP_SELF, it is printed alone, and not in any
array. This must be corrected!



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

Valid point. I'm reopening this as a documentation problem.



[2001-12-28 10:01:35] [EMAIL PROTECTED]

Hi All,

Thanks for the replies. The docs tell me that using globally registered vars presents 
a security risk and is being turned off in future versions anyway, so it's quite 
necessary to get accustomed to it.

Using $_SERVER['PHP_SELF'] must be the way to go.

However, where to find proper documentation on these 'new' vars ? I can't find them, 
only some pages mentioning they exist.. 



[2001-12-28 09:56:13] [EMAIL PROTECTED]

The correct way would be to use $_SERVER['PHP_SELF'] ; this is guaranteed to work with 
and without register_globals = off.



[2001-12-28 09:34:57] [EMAIL PROTECTED]

Then don't turn register_globals off.  Turning off register_globals gets rid of all 
the globals.  If you still want some, leave it turned on, but simply set your 
variables_order directive in your php.ini file to reflect which globals you want.  For 
example, if you want environment and server variables, set it to "ES"



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=14734


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


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




[PHP-DEV] Bug #14734 Updated: new superglobals ($_SERVER, etc.) not documented

2001-12-28 Thread goba

ID: 14734
Updated by: goba
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Documentation problem
Operating System: Win XP
PHP Version: 4.1.0
New Comment:

Just a note: in the PHP 4.1.0 phpinfo() output, all the
predefined vars are printed as _SERVER and _ENV members,
except PHP_SELF, it is printed alone, and not in any
array. This must be corrected!

Previous Comments:


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

Valid point. I'm reopening this as a documentation problem.



[2001-12-28 10:01:35] [EMAIL PROTECTED]

Hi All,

Thanks for the replies. The docs tell me that using globally registered vars presents 
a security risk and is being turned off in future versions anyway, so it's quite 
necessary to get accustomed to it.

Using $_SERVER['PHP_SELF'] must be the way to go.

However, where to find proper documentation on these 'new' vars ? I can't find them, 
only some pages mentioning they exist.. 



[2001-12-28 09:56:13] [EMAIL PROTECTED]

The correct way would be to use $_SERVER['PHP_SELF'] ; this is guaranteed to work with 
and without register_globals = off.



[2001-12-28 09:34:57] [EMAIL PROTECTED]

Then don't turn register_globals off.  Turning off register_globals gets rid of all 
the globals.  If you still want some, leave it turned on, but simply set your 
variables_order directive in your php.ini file to reflect which globals you want.  For 
example, if you want environment and server variables, set it to "ES"



[2001-12-28 09:31:19] [EMAIL PROTECTED]

When using PHP with track_vars On and register_globals Off (recommended setting), PHP 
doesn't know the built-in system and environment vars anymore.

For example, $PHP_SELF becomes and unknow variable.

This is really annoying.





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


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




[PHP-DEV] Bug #14734 Updated: new superglobals ($_SERVER, etc.) not documented

2001-12-28 Thread mfischer

ID: 14734
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Summary: default HTTP vars and PHP_SELF not available
Old Status: Bogus
Status: Open
Old Bug Type: Scripting Engine problem
Bug Type: Documentation problem
Operating System: Win XP
PHP Version: 4.1.0
New Comment:

Valid point. I'm reopening this as a documentation problem.

Previous Comments:


[2001-12-28 10:01:35] [EMAIL PROTECTED]

Hi All,

Thanks for the replies. The docs tell me that using globally registered vars presents 
a security risk and is being turned off in future versions anyway, so it's quite 
necessary to get accustomed to it.

Using $_SERVER['PHP_SELF'] must be the way to go.

However, where to find proper documentation on these 'new' vars ? I can't find them, 
only some pages mentioning they exist.. 



[2001-12-28 09:56:13] [EMAIL PROTECTED]

The correct way would be to use $_SERVER['PHP_SELF'] ; this is guaranteed to work with 
and without register_globals = off.



[2001-12-28 09:34:57] [EMAIL PROTECTED]

Then don't turn register_globals off.  Turning off register_globals gets rid of all 
the globals.  If you still want some, leave it turned on, but simply set your 
variables_order directive in your php.ini file to reflect which globals you want.  For 
example, if you want environment and server variables, set it to "ES"



[2001-12-28 09:31:19] [EMAIL PROTECTED]

When using PHP with track_vars On and register_globals Off (recommended setting), PHP 
doesn't know the built-in system and environment vars anymore.

For example, $PHP_SELF becomes and unknow variable.

This is really annoying.





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


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




[PHP-DEV] Bug #14734 Updated: default HTTP vars and PHP_SELF not available

2001-12-28 Thread abraham_guyt

ID: 14734
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Win XP
PHP Version: 4.1.0
New Comment:

Hi All,

Thanks for the replies. The docs tell me that using globally registered vars presents 
a security risk and is being turned off in future versions anyway, so it's quite 
necessary to get accustomed to it.

Using $_SERVER['PHP_SELF'] must be the way to go.

However, where to find proper documentation on these 'new' vars ? I can't find them, 
only some pages mentioning they exist.. 

Previous Comments:


[2001-12-28 09:56:13] [EMAIL PROTECTED]

The correct way would be to use $_SERVER['PHP_SELF'] ; this is guaranteed to work with 
and without register_globals = off.



[2001-12-28 09:34:57] [EMAIL PROTECTED]

Then don't turn register_globals off.  Turning off register_globals gets rid of all 
the globals.  If you still want some, leave it turned on, but simply set your 
variables_order directive in your php.ini file to reflect which globals you want.  For 
example, if you want environment and server variables, set it to "ES"



[2001-12-28 09:31:19] [EMAIL PROTECTED]

When using PHP with track_vars On and register_globals Off (recommended setting), PHP 
doesn't know the built-in system and environment vars anymore.

For example, $PHP_SELF becomes and unknow variable.

This is really annoying.





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


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




[PHP-DEV] Bug #14734 Updated: default HTTP vars and PHP_SELF not available

2001-12-28 Thread mfischer

ID: 14734
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Win XP
PHP Version: 4.1.0
New Comment:

The correct way would be to use $_SERVER['PHP_SELF'] ; this is guaranteed to work with 
and without register_globals = off.

Previous Comments:


[2001-12-28 09:34:57] [EMAIL PROTECTED]

Then don't turn register_globals off.  Turning off register_globals gets rid of all 
the globals.  If you still want some, leave it turned on, but simply set your 
variables_order directive in your php.ini file to reflect which globals you want.  For 
example, if you want environment and server variables, set it to "ES"



[2001-12-28 09:31:19] [EMAIL PROTECTED]

When using PHP with track_vars On and register_globals Off (recommended setting), PHP 
doesn't know the built-in system and environment vars anymore.

For example, $PHP_SELF becomes and unknow variable.

This is really annoying.





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


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




[PHP-DEV] Bug #14732 Updated: Broken links in global.ent

2001-12-28 Thread goba

ID: 14732
Updated by: goba
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Documentation problem
Operating System: all
PHP Version: 4.1.1
New Comment:

Please commit that little script into phpdoc into the
scripts directory. We have some scripts there to test
XML files, such as the entities.php or dbtags.php. It
would be nice to make this test from time to time.

To answer your current bug report, I have not time
currently to skim through these addresses and find
the right, so anybody with sufficient time, or
who knows some of the right links would be welcome :)

--
Goba

Previous Comments:


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

Hi,

just wrote a little script and checked global.ent

url.adabas: unknown host (www.adabas.com)
url.hyperwave-proto: document not found 
(http://www.hyperwave.de/7.17-hg-prot)
url.iicm: unknown host (iicm.edu)
url.iptc: document not found or unreachable 
(http://www.iptc.org/)
url.ldap.ldapworld: document not found or unreachable 
(http://elvira.innosoft.com/ldapworld)
url.libiconv: document not found 
(http://clisp.cons.org/~haible/packages-libiconv.html)
url.malinimg: document not found 
(http://www.pvv.org/~ssb/malin/bilder/mi/twain001.jpg)
url.mersenne.twister: unknown host (www.scp.syr.edu)
url.nis: document not found 
(http://www.desy.de/~sieversm/ypdoku/ypdoku/ypdoku.html)

Georg






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


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




[PHP-DEV] Bug #14734 Updated: default HTTP vars and PHP_SELF not available

2001-12-28 Thread rasmus

ID: 14734
Updated by: rasmus
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Bogus
Bug Type: Scripting Engine problem
Operating System: Win XP
PHP Version: 4.1.0
New Comment:

Then don't turn register_globals off.  Turning off register_globals gets rid of all 
the globals.  If you still want some, leave it turned on, but simply set your 
variables_order directive in your php.ini file to reflect which globals you want.  For 
example, if you want environment and server variables, set it to "ES"

Previous Comments:


[2001-12-28 09:31:19] [EMAIL PROTECTED]

When using PHP with track_vars On and register_globals Off (recommended setting), PHP 
doesn't know the built-in system and environment vars anymore.

For example, $PHP_SELF becomes and unknow variable.

This is really annoying.





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


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




[PHP-DEV] Bug #14734: default HTTP vars and PHP_SELF not available

2001-12-28 Thread abraham_guyt

From: [EMAIL PROTECTED]
Operating system: Win XP
PHP version:  4.1.0
PHP Bug Type: Scripting Engine problem
Bug description:  default HTTP vars and PHP_SELF not available

When using PHP with track_vars On and register_globals Off (recommended
setting), PHP doesn't know the built-in system and environment vars
anymore.

For example, $PHP_SELF becomes and unknow variable.

This is really annoying.
-- 
Edit bug report at: http://bugs.php.net/?id=14734&edit=1


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




[PHP-DEV] Bug #14687 Updated: Ignoring @'s after set_error_handler() is used

2001-12-28 Thread zeev

ID: 14687
Updated by: zeev
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: Scripting Engine problem
Operating System: Redhat 7.0, Solaris 7
PHP Version: 4.0.6
New Comment:

It's the programmer's responsibility to honor error_reporting in the error handler.  
The error handler will be called even if the error that occured is not inside the 
error_reporting mask - to allow you to conduct logging, recovery, etc.

You can easily honor it by using the return value of error_reporting(), and compare it 
(using &) with the error level that you got.

Previous Comments:


[2001-12-24 10:16:05] [EMAIL PROTECTED]



This echos: 
8


Yet according to: http://www.php.net/manual/en/function.set-error-handler.php

"Of particular note is that this value will be 0 if the statement that caused the 
error was prepended by the @ error-control operator. "



I've tried this on 4.0.4pl1 and 4.0.6
The changelog for 4.1.0 doesn't mention a fix.

The @ works fine for lines executed before set_error_handler().



Here's one of the configure lines, though (to me) it doesn't seem likely to be a 
compiley issue...

'./configure' '--with-db' '--enable-dba' '--with-gdbm' '--with-xml' 
'--with-oci8=/usr/local/oracle/' '--with-apxs=/usr/local/apache-1.3.14/bin/apxs' 
'--with-mysql=/usr/local/mysql' '--with-gd' '--with-sablot'

Thanks!





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


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




[PHP-DEV] Bug #14706 Updated: Apache won't load php4apache.dll

2001-12-28 Thread daniel . steylemans

ID: 14706
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Bogus
Bug Type: Apache related
Operating System: Windows 98 SE
PHP Version: 4.1.0
New Comment:

I uninstalled and reinstalled Apache and PHP for the 3rd time.

Now, when I test the Apache configuration, it says:

e:/root/apache group/apache/conf/httpd.conf: Syntax OK
[Fri Dec 28 14:51:44 2001] [error] Cannot remove module mod_php4.c: not found in 
module list

...But it seems to work fine!
Problem solved by some kind of miracle.

Previous Comments:


[2001-12-27 10:21:06] [EMAIL PROTECTED]

php4ts.dll was already in windows\system (and in windows\system32), like all the other 
dlls. This doesn't work.



[2001-12-27 05:51:14] [EMAIL PROTECTED]

Ask support questions at [EMAIL PROTECTED]

Hint: you should copy php4ts.dll to windows/system (system32 on NT-based versions of 
Windows)



[2001-12-26 18:42:04] [EMAIL PROTECTED]

Apache can't start because it cannot load php4apache.dll.

I installed PHP 4.1.0 and Apache 1.3.22 (both cases: .msi install files).

Syntax error on line 1 of c:/program files/apache group/apache/conf/httpd.conf:
Cannot load c:/program files/php/sapi/php4apache.dll into server: (31) Un périphérique 
attaché au système ne fonctionne pas correctement:

(Translation of last line: "a peripherial attached to the system doesn't work 
properly").

Apache website analyze this as a problem with PHP.

The other .dll's (from php/dll directory) have been copied in windows\system _and_ in 
windows\system32.

The command line in Apache config file is:
LoadModule php4_module c:/progra~1/php/sapi/php4apache.dll

Apache finds the .dll at the correct place (tested).

If I delete the command line, Apache works fine (tested), but PHP won't work...

I tried to replace php4apache.dll with the one provided with PHP 1.0.6 but it doesn't 
help.

Thank you for helping.





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


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




[PHP-DEV] Bug #14733: header() not working

2001-12-28 Thread jukka . pakkanen

From: [EMAIL PROTECTED]
Operating system: NT4sp6a
PHP version:  4.1.0
PHP Bug Type: *General Issues
Bug description:  header() not working

header() function doesn't redirect the browser to new location. Example
test.php file:

http://www.qnet.fi";); ?>

Nothing happens when opening this file with IE 5.5sp2, IE6, etc. There are
no extra spaces, LF's, CR's. PHP.INI has "output_buffering = on".

NT4sp6a, PHP4.1.0 (ISAPI).
-- 
Edit bug report at: http://bugs.php.net/?id=14733&edit=1


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




[PHP-DEV] Bug #14732: Broken links in global.ent

2001-12-28 Thread georg

From: [EMAIL PROTECTED]
Operating system: all
PHP version:  4.1.1
PHP Bug Type: Documentation problem
Bug description:  Broken links in global.ent

Hi,

just wrote a little script and checked global.ent

url.adabas: unknown host (www.adabas.com)
url.hyperwave-proto: document not found 
(http://www.hyperwave.de/7.17-hg-prot)
url.iicm: unknown host (iicm.edu)
url.iptc: document not found or unreachable 
(http://www.iptc.org/)
url.ldap.ldapworld: document not found or unreachable 
(http://elvira.innosoft.com/ldapworld)
url.libiconv: document not found 
(http://clisp.cons.org/~haible/packages-libiconv.html)
url.malinimg: document not found 
(http://www.pvv.org/~ssb/malin/bilder/mi/twain001.jpg)
url.mersenne.twister: unknown host (www.scp.syr.edu)
url.nis: document not found 
(http://www.desy.de/~sieversm/ypdoku/ypdoku/ypdoku.html)

Georg

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


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




[PHP-DEV] Bug #11341 Updated: OCI8 returns null password on logon at ora7

2001-12-28 Thread w . steenhoff

ID: 11341
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Old Status: Open
Status: Closed
Bug Type: OCI8 related
Operating System: AIX
PHP Version: 4.0.4pl1
New Comment:

Solution as described in bug id 13525 works.
Set NLS_LANG before starting apache:

export NLS_LANG=English_America.WE8ISO8859P1


Previous Comments:


[2001-06-25 09:43:19] [EMAIL PROTECTED]

Updated to php 4.0.5, same problem.
Note: my email is [EMAIL PROTECTED]  (ff@)



[2001-06-07 17:08:12] [EMAIL PROTECTED]

When connecting to an Oracle 7 database using OCI8 I get
ORA-01005: null password given; logon denied
(This happens both using OCILogon() and OCIPLogon())

Note that oracle 8 and 8i databases work allright while
none of my 7 databases work.

If the password in incorrect, OCI tells me so, and if the password is correct I get 
this error.

I user php as a module in apache, and OCI uses the oracle 8 client.

phpinfo():
System AIX esther 3 4 00920517A000 
Build Date Feb 9 2001 
Configure Command './configure.ok' '--with-config-file-path=/etc/php' '--with-apxs' 
'--disable-pic' '--disable-rpath' '--disable-c9x-inline' 
'--disable-inline-optimization' '--with-gettext=shared' 
'--with-mysql=shared,/usr/local' '--with-pgsql=shared' '--with-dbm' '--with-db3' 
'--with-gdbm' '--with-mm=shared,/usr/local' '--with-readline=shared' 
'--with-gd=shared' '--with-jpeg-dir' '--with-xpm-dir' '--with-png-dir' 
'--with-zlib=shared' '--with-ldap=shared,/usr/ldap' '--enable-shared' '--enable-dbase' 
'--enable-filepro' '--with-oci8=shared,/oracle' '--with-imap-ssl=shared' 
'--with-imap=shared' '--with-java=/usr/jdk_base' 
Server API Apache 
Virtual Directory Support disabled 
Configuration File (php.ini) Path /etc/php 
ZEND_DEBUG disabled 
Thread Safety disabled 

 This program makes use of the Zend scripting language engine:
Zend Engine v1.0.4, Copyright (c) 1998-2000 Zend Technologies

 




PHP 4.0 Credits



Configuration
PHP Core 
Directive Local Value Master Value 
allow_call_time_pass_reference
 On On 
allow_url_fopen
 1 1 
arg_separator
 & & 
asp_tags
 Off Off 
auto_append_file
 no value no value 
auto_prepend_file
 no value no value 
browscap
 no value no value 
default_charset
 no value no value 
default_mimetype
 text/html text/html 
define_syslog_variables
 Off Off 
disable_functions
 no value no value 
display_errors
 Off Off 
display_startup_errors
 Off Off 
doc_root
 no value no value 
enable_dl
 On On 
error_append_string
 Off Off 
error_log
 no value no value 
error_prepend_string
 Off Off 
error_reporting
 2039 2039 
expose_php
 On On 
extension_dir
 /usr/local/lib/php/extensions/no-debug-non-zts-20001222/ 
/usr/local/lib/php/extensions/no-debug-non-zts-20001222/ 
file_uploads
 1 1 
gpc_order
 GPC GPC 
highlight.bg
 #FF #FF 
highlight.comment
 #FF8000 #FF8000 
highlight.default
 #BB #BB 
highlight.html
 #00 #00 
highlight.keyword
 #007700 #007700 
highlight.string
 #DD #DD 
html_errors
 On On 
ignore_user_abort
 Off Off 
implicit_flush
 Off Off 
include_path
 /usr/local/lib /usr/local/lib 
log_errors
 Off Off 
magic_quotes_gpc
 On On 
magic_quotes_runtime
 Off Off 
magic_quotes_sybase
 Off Off 
max_execution_time
 300 300 
open_basedir
 no value no value 
output_buffering
 Off Off 
output_handler
 no value no value 
post_max_size
 8M 8M 
precision
 14 14 
register_argc_argv
 On On 
register_globals
 On On 
safe_mode
 Off Off 
safe_mode_exec_dir
 no value no value 
sendmail_from
 [EMAIL PROTECTED] [EMAIL PROTECTED] 
sendmail_path
 /usr/sbin/sendmail -t -i  /usr/sbin/sendmail -t -i  
short_open_tag
 On On 
SMTP
 localhost localhost 
sql.safe_mode
 Off Off 
track_errors
 On On 
upload_max_filesize
 2M 2M 
upload_tmp_dir
 no value no value 
user_dir
 no value no value 
variables_order
 EGPCS EGPCS 
y2k_compliance
 Off Off 


gd
GD Support enabled 
GD Version 1.6.2 or higher 
FreeType Support enabled 
FreeType Linkage with TTF library 
JPG Support enabled 
PNG Support enabled 
WBMP Support enabled 


oci8
OCI8 Support enabled 
Revision $Revision: 1.104.2.1 $ 
Oracle Version 8.0 
Compile-time ORACLE_HOME /oracle 
Libraries Used -R/oracle/lib -L/oracle/lib -lclntsh -lpsa -lcore4 -lnlsrtl3  


zlib
ZLib Support enabled 
Compiled Version 1.1.3 
Linked Version 1.1.3 


xml
XML Support active 


standard
Regex Library Bundled library enabled 
Dynamic Library Support enabled 
Path to sendmail /usr/sbin/sendmail -t -i  

Directive Local Value Master Value 
assert.active
 1 1 
assert.bail
 0 0 
assert.callbac

[PHP-DEV] Bug #14731: read_exif_data crash reading specific images

2001-12-28 Thread jt-news

From: [EMAIL PROTECTED] 
Operating system: FreeBSD 4.4
PHP version:  4.1.0
PHP Bug Type: Reproducible crash
Bug description:  read_exif_data crash reading specific images

When calling read_exif_data with a picture taken with a Kodak DC240 it
causes PHP to crash. (This error is probably related to bug #14026)

It seems to be caused to the (mis-)reading of the thumbnail-info from the
exif-tag. After changing the ext/exif.c and removing the cases TAG_JPEGQUAL
and TAG_MACRO at line 760-779, the read_exif_data runs without any problems
- But then (of course) it only read the data about the picture and not the
thumbnail.

To reproduce call read_exif_data with any photo taken with a Kodak DC240
Examplephoto http://thoestesen.dk/DCP_4030.JPG
-- 
Edit bug report at: http://bugs.php.net/?id=14731&edit=1


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




[PHP-DEV] Bug #13154 Updated: ODBC query to Openingres 2.0 fail with scs_p_GetTblAttribs: DRV_DDTables failed

2001-12-28 Thread lobbin

ID: 13154
Updated by: lobbin
Reported By: [EMAIL PROTECTED]
Old Status: Feedback
Status: Closed
Bug Type: ODBC related
Operating System: Solaris 8
PHP Version: 4.0.6
Assigned To: ahill
New Comment:

No feedback. Closing.

Previous Comments:


[2001-12-07 13:11:40] [EMAIL PROTECTED]

We've not had any problems with your configuration - are you getting an error message?

Best regards,
Andrew Hill




[2001-12-07 12:25:32] [EMAIL PROTECTED]

Assigning this to Ahill as he knows the OpenLink software best.



[2001-09-05 14:57:19] [EMAIL PROTECTED]

No queries can be made with PHP 4 and Openlink ODBC to access OpenIngres.

Test program:
" ;
$odbc = odbc_connect("Desenv" , "notes", "notes", SQL_CUR_USE_IF_NEEDED   );
echo " ODBC_CONNECT return code: $odbc ";

$query = "select matrica from srhtb002";
$queryprep = odbc_prepare ($odbc, $query);   // This produces the error.
$result = odbc_execute($queryprep );
print "ok. result = $result";

$nextrow = odbc_fetch_row($result, 1);

if (! $nextrow ) {
 print "Nco achou nada...";
}
else {
print odbc_result($result , 1 );
print "";
print odbc_result($result , 2 );
}
?>

The configure line is:
./configure  --enable-track-vars --with-yp --with-apxs --with-oci8 
--with-iodbc=/software/openlink/odbcsdk






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


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




Re: [PHP-DEV] Proposed patch for /php4/win32/install.txt

2001-12-28 Thread Phil Driscoll

On Friday 28 December 2001 2:03 am, James Cox wrote:
> Since the url specified for browscap.ini is dead, and i can't find a cached
> version, i am proposing a patch to remove the link (And assoc. text) from
> the page.
>

To the best of my knowledge, install.txt is now built by a script which 
generates it from the installation page in the manual. I've CC'd this to the 
doc list where, I'm sure, someone will correct me if I'm wrong. If I'm 
correct, you need to patch the manual page.

Cheers
-- 
Phil Driscoll

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




Re: [PHP-DEV] php compiler - (or really) big binary builder

2001-12-28 Thread Peter Petermann

> bytecode, the idea was just to merge php code (either zipped) or just
> appended to the php binary, and making it execute code from the end of
> it'self..
For windows something like that exists.. Plot did it..
The URL was: www.deskcode.com/phpcompiler but doesnt seem to exist any
longer.
but i think Plot is still reading this list, so maybe he will tell us his
new URL.

regards,
Peter Petermann




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




[PHP-DEV] Persistent connection to Oracle with OCI

2001-12-28 Thread Berlina

Hi to everybody,

Im trying to use persistents connections to an Oracle Database through PHP,
for manageing transactions, and have some problems.

My Schema:

* Web Server: Apache 1.3.22 on a Linux RedHat 7.0
* PHP: 4.1.1 compiled with oracle module functions (OCI*)
* Data Base: Oracle 8.1.7 on a Windows NT Server

I need to manage transactions to database. For it i made a test pages like
this:

* 1 index page that generate some frames and open a persistent connection to
Oracle
* 1 frame that made an insert to one table of the database, and reopen the
persistent connection
* 1 frame that made an insert to another table of the same database, and
reopen the persistent  connection
* 1 frame with 2 buttons, one for execute a Commit and another for execture
a Rollback

 When i was using the ORA_* functions, some times works well, but other
times not work correctly...
Now using the OCI* functions dont work.
What im doing wrong?
Can somebody help me?

Avanced thanks


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




Re: [PHP-DEV] php compiler - (or really) big binary builder

2001-12-28 Thread derick

Hello,

On Fri, 28 Dec 2001, Alan Knowles wrote:

> Ok, this may seem totaly crazy :)
>
> I was having a look at the issue of the php compiler (really
> distributing a single executable) of php code. - we are starting to
> develop php-gtk apps and it seemed usefull - it appears that the
> previous effort at doing this has dissappeared of the face of the web...

I have both the executable and source on my harddisk here.

Derick


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




[PHP-DEV] php compiler - (or really) big binary builder

2001-12-28 Thread Alan Knowles

Ok, this may seem totaly crazy :)

I was having a look at the issue of the php compiler (really 
distributing a single executable) of php code. - we are starting to 
develop php-gtk apps and it seemed usefull - it appears that the 
previous effort at doing this has dissappeared of the face of the web...

rather than get into the hard chore of actually building it against the 
bytecode, the idea was just to merge php code (either zipped) or just 
appended to the php binary, and making it execute code from the end of 
it'self..

eg.

| php binary |

| php raw code |


taking a bit of code from all over the place, I created a 'embedded 
extension' the core bit being below..


Now, it currently would assume creating a big '' area (where the 
echo'test' stuff is) which would replaced by php code by  a post 
processing on the binary..

It would be nice if the application could some how work out the memory 
address at the end of the php binary - where some kind of lookup table 
of all attached php files would be located...
other than that, an easy way to do an array rather than this hacked 
embedded_1 variable stuff... would be usefull...

--ideas would be appreciated..

anyway have a happy new year everybody..

regards
alan



PHP_FUNCTION(embedded_run)
{
char *arg = NULL;
int arg_len=0 , len;
char *string = NULL;
char *tmp = "embedded_run";
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|s", &arg, 
&arg_len) == FAILURE) {
return;
}
if (arg) {
   string  =   embedded_get_data(arg);
   tmp=arg;
} else {  
   string  =   embedded_get_data(tmp);
}  
   
if (string)
  embedded_eval_string(string, return_value, tmp CLS_CC ELS_CC);

}


/* auto generated bit */

char *embedded_1 = "embedded_run";
char *embedded_2 = "START_EMBEDDED_2_XX...";
char *embedded_r1 = "echo \"hello there\n\";";
char *embedded_r2 = "START_EMBEDDED_R2_XX...";";


char *embedded_get_data(char *str) {

   if (!strcmp(str,embedded_1))
  return   embedded_r1;
   if (!strcmp(str,embedded_2))
  return  embedded_r2; 
   return NULL;
}


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




Re: [PHP-DEV] DBA extension

2001-12-28 Thread Andrey Hristov

Open win32/php_modules.dsw with VisualC. Select DBA as an active project. Rebiuld all.


HTH


Andrey Hristov

- Original Message - 
From: "David Robinson (AU)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 28, 2001 1:12 AM
Subject: [PHP-DEV] DBA extension


> Hello
> 
> 
> How do I rebuild the PHP_DBA.DLL extension to include the "dbm" handler as
> well? Only the "db3" handler is enabled in the standard Win32 distribution.
> 
> I know its easy on unix: just add "--with-db" to configure. But how does it
> work on Windows?
> 
> 
> Thanks
> David Robinson
> 
> -- 
> PHP Development Mailing List 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 


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




Re: [PHP-DEV] Re: Bug #14679 Updated: Crash with RH ucd-snmp libs-- BUGFIX

2001-12-28 Thread Henning Schmiedehausen

On Fri, 2001-12-28 at 09:21, Henning Schmiedehausen wrote:
> Hi,
> 
> attached is an even more complete patch that doesn't just enable the
> usage of the sbuf stuff in snmp but checks for the vendor modified
> libraries. It works with RH 6.x (vendor modified) and should work with
> the original stuff from UCD. 
> 
> (It would be possible to do this at runtime by checking for the binit()
> symbol in the libsnmp, but this would be (IMHO) overkill.. =:-)

The last patch was incomplete. Please use this one.

Regards
Henning


-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen   -- Geschaeftsfuehrer
INTERMETA - Gesellschaft fuer Mehrwertdienste mbH [EMAIL PROTECTED]

Am Schwabachgrund 22  Fon.: 09131 / 50654-0   [EMAIL PROTECTED]
D-91054 Buckenhof Fax.: 09131 / 50654-20   


diff -urb php-4.1.0.orig/ext/snmp/config.m4 php-4.1.0/ext/snmp/config.m4
--- php-4.1.0.orig/ext/snmp/config.m4	Mon Dec 24 02:39:03 2001
+++ php-4.1.0/ext/snmp/config.m4	Fri Dec 28 09:16:49 2001
@@ -67,18 +67,38 @@
 
 PHP_EXTENSION(snmp, $ext_shared)
 PHP_SUBST(SNMP_SHARED_LIBADD)
-  fi
-
 
-AC_MSG_CHECKING(whether to enable UCD SNMP hack)
-AC_ARG_ENABLE(ucd-snmp-hack,
-[  --enable-ucd-snmp-hack  Enable UCD SNMP hack],[
+AC_MSG_CHECKING(whether to enable UCD SNMP hack)
+AC_ARG_ENABLE(ucd-snmp-hack,
+[  --enable-ucd-snmp-hack  Enable UCD SNMP hack],[
   if test "$enableval" = "yes" ; then
 AC_DEFINE(UCD_SNMP_HACK, 1, [ ])
 AC_MSG_RESULT(yes)
   else
 AC_MSG_RESULT(no)
   fi
-],[
+],[
   AC_MSG_RESULT(no)
-])
+])
+
+_SAVE_CPPFLAGS=$CPPFLAGS
+_SAVE_LDFLAGS=$LDFLAGS
+_SAVE_LIBS=$LIBS
+
+CPPFLAGS="$CPPFLAGS -I$SNMP_INCDIR"
+LDFLAGS="$LDFLAGS -L$SNMP_LIBDIR"
+LIBS="$LIBS -lsnmp"
+
+AC_CACHE_CHECK([for vendor modified SNMP libs], ac_cv_snmp_vendor,
+[AC_TRY_LINK([ #include 
+#include 
+#include "asn1.h"
+#include "parse.h" ],[binit(NULL, NULL, 0);],
+ac_cv_snmp_vendor=yes, ac_cv_snmp_vendor=no)])
+if test "$ac_cv_snmp_vendor" = yes; then
+  AC_DEFINE(HAVE_SNMP_VENDORHACK,1,[SNMP libs are vendor modified])
+fi
+CPPFLAGS=$_SAVE_CPPFLAGS
+LDFLAGS=$_SAVE_LDFLAGS
+LIBS=$_SAVE_LIBS
+  fi
Only in php-4.1.0/ext/snmp: config.m4~
diff -urb php-4.1.0.orig/ext/snmp/snmp.c php-4.1.0/ext/snmp/snmp.c
--- php-4.1.0.orig/ext/snmp/snmp.c	Mon Dec 24 02:39:03 2001
+++ php-4.1.0/ext/snmp/snmp.c	Fri Dec 28 09:14:27 2001
@@ -74,6 +74,8 @@
 #define SNMP_MSG_GETNEXT GETNEXT_REQ_MSG
 #endif
 
+#define SNMP_BUFSIZE 2048
+
 void php_snmp(INTERNAL_FUNCTION_PARAMETERS, int st);
 
 /* constant - can be shared among threads */
@@ -158,8 +160,8 @@
 int name_length;
 int status, count,rootlen=0,gotroot=0;
 	oid root[MAX_NAME_LEN];
-	char buf[2048];
-	char buf2[2048];
+	char buf[SNMP_BUFSIZE];
+	char buf2[SNMP_BUFSIZE];
 	int keepwalking=1;
 	long timeout=SNMP_DEFAULT_TIMEOUT;
 	long retries=SNMP_DEFAULT_RETRIES;
@@ -315,7 +317,11 @@
 	}
 
 	if (st != 11) {
+#ifdef HAVE_SNMP_VENDORHACK
+		sprint_value(binit(NULL, buf, SNMP_BUFSIZE) ,vars->name, vars->name_length, vars);
+#else
 		sprint_value(buf,vars->name, vars->name_length, vars);
+#endif
 	}
 #if 0
 	Debug("snmp response is: %s\n",buf);
@@ -325,7 +331,11 @@
 	} else if (st == 2) {
 		add_next_index_string(return_value,buf,1); /* Add to returned array */
 	} else if (st == 3)  {
+#ifdef HAVE_SNMP_VENDORHACK
+		sprint_objid(binit(NULL, buf2, SNMP_BUFSIZE), vars->name, vars->name_length);
+#else
 		sprint_objid(buf2, vars->name, vars->name_length);
+#endif
 		add_assoc_string(return_value,buf2,buf,1);
 	}
 	if (st >= 2 && st != 11) {
@@ -344,7 +354,11 @@
 		for (count=1, vars = response->variables; vars && count != response->errindex;
 		vars = vars->next_variable, count++);
 		if (vars) {
+#ifdef HAVE_SNMP_VENDORHACK
+			sprint_objid(binit(NULL, buf, SNMP_BUFSIZE), vars->name, vars->name_length);
+#else
 			sprint_objid(buf,vars->name, vars->name_length);
+#endif
 		}
 		php_error(E_WARNING,"This name does not exist: %s\n",buf);
 	}
--- php-4.1.0/main/php_config.h.in~	Fri Dec 28 09:16:56 2001
+++ php-4.1.0/main/php_config.h.in	Fri Dec 28 09:30:37 2001
@@ -1771,6 +1771,9 @@
 #undef UCD_SNMP_HACK
 
 /*   */
+#undef HAVE_SNMP_VENDORHACK
+
+/*   */
 #undef UNDEF_THREADS_HACK
 
 /*   */



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


Re: [PHP-DEV] Re: Bug #14679 Updated: Crash with RH ucd-snmp libs-- BUGFIX

2001-12-28 Thread Henning Schmiedehausen

On Mon, 2001-12-24 at 16:24, Markus Fischer wrote:
> On Mon, Dec 24, 2001 at 12:27:48PM +0100, Henning Schmiedehausen wrote : 
> > Great, if you would tell me how to add a comment to an existing bug
> > report if I'm neither owner nor developer. 
> 
> Don't forget to set a password.
> 
> > And if you would point people somewhere to snaps.php.net, building of
> > the existing snapshots would be much easier. :-)
> 
> Occasionally, we do. I fault of mine was also to advice you
> to patch against current CVS HEAD branch, not 4.1.0 .Well,
> those days aren't really the most productive ones :)
> 
> -- 
> Please always Cc to me when replying to me on the lists.


Hi,

attached is an even more complete patch that doesn't just enable the
usage of the sbuf stuff in snmp but checks for the vendor modified
libraries. It works with RH 6.x (vendor modified) and should work with
the original stuff from UCD. 

(It would be possible to do this at runtime by checking for the binit()
symbol in the libsnmp, but this would be (IMHO) overkill.. =:-)

Regards
Henning


-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen   -- Geschaeftsfuehrer
INTERMETA - Gesellschaft fuer Mehrwertdienste mbH [EMAIL PROTECTED]

Am Schwabachgrund 22  Fon.: 09131 / 50654-0   [EMAIL PROTECTED]
D-91054 Buckenhof Fax.: 09131 / 50654-20   


diff -urb php-4.1.0.orig/ext/snmp/config.m4 php-4.1.0/ext/snmp/config.m4
--- php-4.1.0.orig/ext/snmp/config.m4	Mon Dec 24 02:39:03 2001
+++ php-4.1.0/ext/snmp/config.m4	Fri Dec 28 09:16:49 2001
@@ -67,18 +67,38 @@
 
 PHP_EXTENSION(snmp, $ext_shared)
 PHP_SUBST(SNMP_SHARED_LIBADD)
-  fi
-
 
-AC_MSG_CHECKING(whether to enable UCD SNMP hack)
-AC_ARG_ENABLE(ucd-snmp-hack,
-[  --enable-ucd-snmp-hack  Enable UCD SNMP hack],[
+AC_MSG_CHECKING(whether to enable UCD SNMP hack)
+AC_ARG_ENABLE(ucd-snmp-hack,
+[  --enable-ucd-snmp-hack  Enable UCD SNMP hack],[
   if test "$enableval" = "yes" ; then
 AC_DEFINE(UCD_SNMP_HACK, 1, [ ])
 AC_MSG_RESULT(yes)
   else
 AC_MSG_RESULT(no)
   fi
-],[
+],[
   AC_MSG_RESULT(no)
-])
+])
+
+_SAVE_CPPFLAGS=$CPPFLAGS
+_SAVE_LDFLAGS=$LDFLAGS
+_SAVE_LIBS=$LIBS
+
+CPPFLAGS="$CPPFLAGS -I$SNMP_INCDIR"
+LDFLAGS="$LDFLAGS -L$SNMP_LIBDIR"
+LIBS="$LIBS -lsnmp"
+
+AC_CACHE_CHECK([for vendor modified SNMP libs], ac_cv_snmp_vendor,
+[AC_TRY_LINK([ #include 
+#include 
+#include "asn1.h"
+#include "parse.h" ],[binit(NULL, NULL, 0);],
+ac_cv_snmp_vendor=yes, ac_cv_snmp_vendor=no)])
+if test "$ac_cv_snmp_vendor" = yes; then
+  AC_DEFINE(HAVE_SNMP_VENDORHACK,1,[SNMP libs are vendor modified])
+fi
+CPPFLAGS=$_SAVE_CPPFLAGS
+LDFLAGS=$_SAVE_LDFLAGS
+LIBS=$_SAVE_LIBS
+  fi
Only in php-4.1.0/ext/snmp: config.m4~
diff -urb php-4.1.0.orig/ext/snmp/snmp.c php-4.1.0/ext/snmp/snmp.c
--- php-4.1.0.orig/ext/snmp/snmp.c	Mon Dec 24 02:39:03 2001
+++ php-4.1.0/ext/snmp/snmp.c	Fri Dec 28 09:14:27 2001
@@ -74,6 +74,8 @@
 #define SNMP_MSG_GETNEXT GETNEXT_REQ_MSG
 #endif
 
+#define SNMP_BUFSIZE 2048
+
 void php_snmp(INTERNAL_FUNCTION_PARAMETERS, int st);
 
 /* constant - can be shared among threads */
@@ -158,8 +160,8 @@
 int name_length;
 int status, count,rootlen=0,gotroot=0;
 	oid root[MAX_NAME_LEN];
-	char buf[2048];
-	char buf2[2048];
+	char buf[SNMP_BUFSIZE];
+	char buf2[SNMP_BUFSIZE];
 	int keepwalking=1;
 	long timeout=SNMP_DEFAULT_TIMEOUT;
 	long retries=SNMP_DEFAULT_RETRIES;
@@ -315,7 +317,11 @@
 	}
 
 	if (st != 11) {
+#ifdef HAVE_SNMP_VENDORHACK
+		sprint_value(binit(NULL, buf, SNMP_BUFSIZE) ,vars->name, vars->name_length, vars);
+#else
 		sprint_value(buf,vars->name, vars->name_length, vars);
+#endif
 	}
 #if 0
 	Debug("snmp response is: %s\n",buf);
@@ -325,7 +331,11 @@
 	} else if (st == 2) {
 		add_next_index_string(return_value,buf,1); /* Add to returned array */
 	} else if (st == 3)  {
+#ifdef HAVE_SNMP_VENDORHACK
+		sprint_objid(binit(NULL, buf2, SNMP_BUFSIZE), vars->name, vars->name_length);
+#else
 		sprint_objid(buf2, vars->name, vars->name_length);
+#endif
 		add_assoc_string(return_value,buf2,buf,1);
 	}
 	if (st >= 2 && st != 11) {
@@ -344,7 +354,11 @@
 		for (count=1, vars = response->variables; vars && count != response->errindex;
 		vars = vars->next_variable, count++);
 		if (vars) {
+#ifdef HAVE_SNMP_VENDORHACK
+			sprint_objid(binit(NULL, buf, SNMP_BUFSIZE), vars->name, vars->name_length);
+#else
 			sprint_objid(buf,vars->name, vars->name_length);
+#endif
 		}
 		php_error(E_WARNING,"This name does not exist: %s\n",buf);
 	}



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


[PHP-DEV] Bug #14730: return wrong charset

2001-12-28 Thread bib

From: [EMAIL PROTECTED]
Operating system: Windows2000Pro
PHP version:  4.1.0
PHP Bug Type: MSSQL related
Bug description:  return wrong charset

Dataset return incorrect charset. I use russian win-1251 charset.
With version 4.0.5 work fine.
-- 
Edit bug report at: http://bugs.php.net/?id=14730&edit=1


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