RE: [PHP-DEV] Bug #13183: \ at end of literal causes parsing error

2001-09-06 Thread Angel \"Java\" Lopez

But it seems a "feature" rather than a "bug". ;-)

Angel "Java" Lopez

- Original Message - 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 06, 2001 4:21 PM
Subject: [PHP-DEV] Bug #13183: \ at end of literal causes parsing error


> From: [EMAIL PROTECTED]
> Operating system: Linux
> PHP version:  4.0.6
> PHP Bug Type: Scripting Engine problem
> Bug description:  \ at end of literal causes parsing error
> 
> 
> Fails
> 
>  
> echo 'Set ts = fso.CreateTextFile("c:\';
> 
> ?>
> 
> Suceeds
> 
>  
> echo 'Set ts = fso.CreateTextFile("c:\\';
> 
> ?>
> 
> If a \ is the last character of a string literal then a parse error is
> raise.
> -- 



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




[PHP-DEV] Bug #13000 Updated: I can't switch safe_mode OFF!

2001-08-28 Thread lopez

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

Damn, do you think I'm blind??

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

But it has NO EFFECT

This was NOT a support request!

Previous Comments:


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

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

Ask further support questions on the mailing lists:

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




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

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

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

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

Any ideas?





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

2001-08-28 Thread lopez

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

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

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

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

Any ideas?
-- 
Edit bug report at: http://bugs.php.net/?id=13000&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 #12805: ./configure: lex: command not found

2001-08-17 Thread lopez

From: [EMAIL PROTECTED]
Operating system: SuseLinux 7.2
PHP version:  4.0.6
PHP Bug Type: Compile Failure
Bug description:  ./configure: lex: command not found

While running confugire, this error applies:

checking lex output file root... ./configure: lex: command not found

What the is it, and how to fix the problem!?
-- 
Edit bug report at: http://bugs.php.net/?id=12805&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 #11674 Updated: can#t connect on socket, still a problem

2001-06-29 Thread Pepe Lopez

Hi, read first this:

> The default is still /tmp/mysql.sock.
> But if you have mysql.sock somewhere else in your
> system, it will be detected instead.
>
> --Jani


Nop, check this URL:
http://pepe-lopez.com/mysqltest.php

You'll get

Warning: Can't connect to local MySQL server through socket
'/var/tmp/mysql.sock' (2) in
/usr/local/etc/httpd/htdocs/pepe-lopez/mysqltest.php on line 2

Warning: MySQL Connection Failed: Can't connect to local MySQL server
through socket '/var/tmp/mysql.sock' (2) in
/usr/local/etc/httpd/htdocs/pepe-lopez/mysqltest.php on line 2


There's no php.ini, so, the default doesn't work!!!
It's compiled as CGI. I updated it from 4.0.5 which worked fine.

If I configure php.ini, the error
: Can't connect to local MySQL server through socket '/var/tmp/mysql.sock'
(-1)
appears.


Have a nice day,
Lopez



> ID: 11674
> Updated by: sniper
> Reported By: [EMAIL PROTECTED]
> Old-Status: Open
> Status: Closed
> Bug Type: MySQL related
> Operating system:
> PHP Version: 4.0.6
> Assigned To:
> Comments:
>
>
>
> Previous Comments:
> --
-
>
> [2001-06-25 14:33:25] [EMAIL PROTECTED]
> OK, I compile 4.0.6 (runs as CGI), and copy it to my cgi-bin (where 4.0.5
is/was located (running)).
> Then, PHP can't connect to mysql.sock in /tmp/var
>
> - in 4.0.5 the default *SEEMS* /tmp, however, in 4.0.5 the default works,
in 4.0.6 NOT.
>
> When I set up the php.ini (.ini-dist or optimized, it's the same thing!)
with mysql.default.socket = /tmp/mysql.sock
>
> the same error (warning) is displaying, but this time with
> mysql.sock '-1'.
>
> OK, I delete the php.ini, and 4.0.5 works without any probs, when I copy
4.0.6, -> can't connect to mysql.sock /tmp/var
>
> so...?
>
>
> regards,
> Lopez
>
> --
-
>
>
>
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at
http://bugs.php.net/?id=11674&edit=2
>
>


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




[PHP-DEV] Bug #11674: can#t connect on socket

2001-06-25 Thread lopez

From: [EMAIL PROTECTED]
Operating system: FreeBSD 4.2
PHP version:  4.0.6
PHP Bug Type: MySQL related
Bug description:  can#t connect on socket

OK, I compile 4.0.6 (runs as CGI), and copy it to my cgi-bin (where 4.0.5 is/was 
located (running)).
Then, PHP can't connect to mysql.sock in /tmp/var

- in 4.0.5 the default *SEEMS* /tmp, however, in 4.0.5 the default works, in 4.0.6 
NOT. 

When I set up the php.ini (.ini-dist or optimized, it's the same thing!) with 
mysql.default.socket = /tmp/mysql.sock

the same error (warning) is displaying, but this time with
mysql.sock '-1'.

OK, I delete the php.ini, and 4.0.5 works without any probs, when I copy 4.0.6, -> 
can't connect to mysql.sock /tmp/var

so...?


regards,
Lopez


-- 
Edit Bug report at: http://bugs.php.net/?id=11674&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] AW: Bug #10847 Updated: nl2br - buggy

2001-05-14 Thread Pepe Lopez

Hi there,

but  is NOT HTML-sompatible.
With other commends, there'll be some errors in output...


> -Ursprüngliche Nachricht-
> Von: Bug Database [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 14. Mai 2001 14:02
> An: [EMAIL PROTECTED]
> Betreff: Bug #10847 Updated: nl2br - buggy
>
>
> ID: 10847
> Updated by: sniper
> Reported By: [EMAIL PROTECTED]
> Old-Status: Open
> Status: Bogus
> Bug Type: Strings related
> Operating system:
> PHP Version: 4.0.5
> Assigned To:
> Comments:
>
> This is the correct behaviour. It's now xhtml compatible.
> No bug.
>
>
> --Jani
>
>
> Previous Comments:
> --
> -
>
> [2001-05-14 07:54:43] [EMAIL PROTECTED]
> $foo = "n";
> $foo = nl2br($foo);
>
> // $foo is now ""  !!
>
> --
> -
>
>
>
> ATTENTION! Do NOT reply to this email!
> To reply, use the web interface found at
> http://bugs.php.net/?id=10847&edit=2
>
>


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




[PHP-DEV] PHP 4.0 Bug #8998 Updated: htmlspecialchars() DONT convert a string/array ONCE

2001-01-30 Thread lopez

ID: 8998
User Update by: [EMAIL PROTECTED]
Status: Open
Bug Type: Strings related
Description: htmlspecialchars() DONT convert a string/array ONCE

ReEdit...
Please note:

$foo = "..";
$foo = htmlspecialchars($foo);

//now $foo is "& lt;a href="foo"& gt;..& lt;/a& gt;" 

$foo = "..";

//$foo is & lt;a href="foo"& gt;..& lt;/a& gt; 
//although $foo is filled with a new value, $foo converts the string!


Previous Comments:
---

[2001-01-30 07:10:04] [EMAIL PROTECTED]
Please note:

$foo = "..";
$foo = htmlspecialchars($foo);

//now $foo is ".." 

$foo = "..";

//$foo is .. 
//although $foo is filled with a new value, $foo converts the string!


//sorry, my english is too poor to explain more

---


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


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




[PHP-DEV] PHP 4.0 Bug #8998: htmlspecialchars() DONT convert a string/array ONCE

2001-01-30 Thread lopez

From: [EMAIL PROTECTED]
Operating system: Debian/Linux
PHP version:  4.0.4pl1
PHP Bug Type: Strings related
Bug description:  htmlspecialchars() DONT convert a string/array ONCE

Please note:

$foo = "..";
$foo = htmlspecialchars($foo);

//now $foo is ".." 

$foo = "..";

//$foo is .. 
//although $foo is filled with a new value, $foo converts the string!


//sorry, my english is too poor to explain more


-- 
Edit Bug report at: http://bugs.php.net/?id=8998&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]