[PHP-DEV] Bug #13213 Updated: Unknown image format

2002-01-07 Thread pulstar

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

ID: 13213
Updated by: lobbin

I get a 404 not found on this url.

http://www.dr-micro.net/files/gis.php

Sorry. I sent this script to the server months ago and somebody removed
it from there... Please try again.


Previous Comments:


[2002-01-07 08:49:28] [EMAIL PROTECTED]

I get a 404 not found on this url.



[2001-09-08 15:07:33] [EMAIL PROTECTED]

GetImageSize() don't recognize the JPG image format generated by a
software called Arles Image Web Page Creator. I make a test script, that
you can see at the address below. There have also links to sample
images, etc. 

http://www.dr-micro.net/files/gis.php

The browser display the images normally. This program website is at
http://www.digitaldutch.com






Edit this bug report at http://bugs.php.net/?id=13213&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 #14643: wordwrap() only for long words

2001-12-21 Thread pulstar

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.0.6
PHP Bug Type: Feature/Change Request
Bug description:  wordwrap() only for long words

The function wordwrap() could work in another fashion, breaking only words
bigger than the specified width instead of break all lines.

The web browsers always break text at spaces, fiting it in the web page.
But if a somebody post a message with very long words (example:
HLOHWWWAREYOOU),
it will stretch the page, showing the horizontal scrollbar and making a
mess in the layout. 

With the actual wordwrap(), it will break all lines of text, so when I need
to use the nl2br(), the text will appear as a small column in the left.

I need to use ns2br(), or the posts will appear "compacted".
So, if wordwrap() break only long words at specified width that will depend
of my layout, everything will be fine. 

I think such behavior could work with a little differece in the cut
parameter.

-- 
Edit bug report at: http://bugs.php.net/?id=14643&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 #14412: ucwords() new parameter

2001-12-11 Thread pulstar

From: [EMAIL PROTECTED]
Operating system: Linux
PHP version:  4.0.6
PHP Bug Type: Feature/Change Request
Bug description:  ucwords() new parameter

Ucwords() should have an optional parameter to set the minimum of
characters a word must have to be capitalized. For example, sometimes I
don't want to capitalize words with less than 3 characters. Examples:

New York Institute Of Photography
New York Institute of Photography (better)

My Web Site Is Cool With PHP
My Web Site is Cool With PHP (better)

Well, may the first word be capitalized by ucwords() even if its size is
less than specified by the parameter? In any case we can capitalize it with
ucfirst().  :-)

$str=ucfirst(ucwords(strtolower($str),3));

-- 
Edit bug report at: http://bugs.php.net/?id=14412&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 #13213: Unknown image format

2001-09-08 Thread pulstar

From: [EMAIL PROTECTED]
Operating system: Linux RedHat 7.1
PHP version:  4.0.6
PHP Bug Type: GetImageSize related
Bug description:  Unknown image format

GetImageSize() don't recognize the JPG image format generated by a software
called Arles Image Web Page Creator. I make a test script, that you can see
at the address below. There have also links to sample images, etc. 

http://www.dr-micro.net/files/gis.php

The browser display the images normally. This program website is at
http://www.digitaldutch.com

-- 
Edit bug report at: http://bugs.php.net/?id=13213&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 #12742: Auto appending session ID

2001-08-14 Thread pulstar

From: [EMAIL PROTECTED]
Operating system: Linux RedHat 7.1
PHP version:  4.0.6
PHP Bug Type: Session related
Bug description:  Auto appending session ID

In my last posting, about how php was appending the session ID to the links
and making a mess in the output html, I discovered something: that was
occuring because the output_buffering option was off in the php.ini file.
After I enabled it, links are fine now.
-- 
Edit bug report at: http://bugs.php.net/?id=12742&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 #12722: Re: extra slash / auto appending session ID

2001-08-13 Thread pulstar

From: [EMAIL PROTECTED]
Operating system: Red Hat 7.1
PHP version:  4.0.6
PHP Bug Type: Session related
Bug description:  Re: extra slash / auto appending session ID

>The extra slash is so that PHP is in compliance with 
>XHTML 1.0. 
>See http://www.w3.org/MarkUp/ for more information.
>Also, if this is causing your applications problems, 
>you may be designing them incorrectly.

Well, I think the slash placed by PHP in the end of the INPUT tag was
misinterpreted by Internet Explorer, but not. Below are two examples. The
first are links without the session ID appended by PHP. The second is the
same links with the session ID automatically appended by PHP. I think it
append the ID because the cookie was not avaliable (I don't know why) when
the page was loaded at the first time. When I reload the page, it works
fine. This occurs everytime when I open the site in my browser.

a) Without appended session ID:

1) 



2)  

3) see more

4) The most new option in electronic security. See more.

5) 




b) With appended session ID by PHP:

1) 



2) >idden
name=hrefvars value=''><> 

3) See more

4) The most new option in electronic security. See more.

5) <>

6) 

<>

The first append is correct, it have only that slash that I didn't knew
about. But some part of the html from it was placed over the second. As you
can see, it is making a mess in the resulting HTML. Are you sure this is a
bug in my application? :-)

-- 
Edit bug report at: http://bugs.php.net/?id=12722&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 #12720: An unnecessary extra slash

2001-08-13 Thread pulstar

From: [EMAIL PROTECTED]
Operating system: Linux RedHat 7.1
PHP version:  4.0.6
PHP Bug Type: Session related
Bug description:  An unnecessary extra slash



When cookies are not available, PHP auto append the input above in each
form of my page. My question is: why that slash is there in the end of the
tag? It is making trouble in my site...

-- 
Edit bug report at: http://bugs.php.net/?id=12720&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 #10596: Suggestions for new functions

2001-05-01 Thread pulstar

From: [EMAIL PROTECTED]
Operating system: Windows 98 4.10 english
PHP version:  4.0.4
PHP Bug Type: Feature/Change Request
Bug description:  Suggestions for new functions

These are a few suggestions for a new functions. I hope it be useful. Some of them I 
did myself and it is very useful to me.
---
1) Parse variables names inside a string with the actual variables in the current 
scope:

string parse_vars(string $str):

An example:
$str='Width: $specs[0] pixels (the minimum is $min_width)';
$str2="These \$specs[0] and \$min_width are just examples";
$specs[0]=250;
$min_width=300;
echo parse_vars($str);
echo parse_vars($str2);

Will must output:
Width: 250 pixels (the minimum is 300)
These 250 and 300 are just examples

2) Set the PHP internal pointer to point a specific element in an array:

mixed setpos(array $arr, mixed $position):

function setpos(&$arr,$index) {
if(is_array($arr)) {
reset($arr);
while(list($key,$value)=each($arr)) {
if($key==$index) {
if(!prev($str))
end($str);
return $value;
}
}
}
return FALSE;
}
I did this function to get such functionality.
-
3) Simple Left and Right portions of a string:

function left($str,$length) {
return substr($str,0,$lenght);
}

function right($str,$lenght) {
return substr($str,strlen($str)-$lenght);
}

PHP have everything to manipulate strings, why do not have these BASIC's string 
functions too?  :-)
--
4) A built-in date object

Like the javascript date object, with methods to manipulate dates and time, but 
capable of manipulate years since 1100 to  as MySQL do.
The methods must be able to convert different date formats (unix timestamps to sql 
date format and to user readable formats).
--
5) void include_embed(string url):
Can read a remote file and embed it in the current web page, like the include() 
function, but translating all links, images and java's to run as they are in the 
current web page. The translations will do things like this:

In the remote file:
  
to:  http://www.remote_address/image.gif";>
(The same for forms, java applets, javascripts, Cascade Style Sheets and everything 
that can be translated).

In the case of the links, they should be:
Click me  
to:  http://remote_address/file.html";>Click me
(this will call a runtime generated php page with an include_embed() on it, which will 
receive the address from the embedurl variable, and will load the remote file to do 
the translating again).

Regards,

Edemilson Lima
PS: the functions names are just suggestions too.  ;-)



-- 
Edit Bug report at: http://bugs.php.net/?id=10596&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 #10432: Functions as parameters default values

2001-04-21 Thread pulstar

From: [EMAIL PROTECTED]
Operating system: Windows 98 4.10 english
PHP version:  4.0.4
PHP Bug Type: Feature/Change Request
Bug description:  Functions as parameters default values

function foo(parameter1, parameter2=value, parameter3=any_php_function(), 
parameter4=an_user_function()) {
statments
}

Example:

function foo($anytime=FALSE) {
if(!$anytime) $anytime=time();
statments
}

function foo($anytime=time()) {
 statments
}



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



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




[PHP-DEV] PHP 4.0 Bug #10104: Feedback

2001-04-01 Thread pulstar

From: [EMAIL PROTECTED]
Operating system: All
PHP version:  4.0.4pl1
PHP Bug Type: MySQL related
Bug description:  Feedback

Suggestions:

Add a new optional parameter in the mysql_fetch_array() function to move the internal 
pointer to the previous row in the result set. This can also be applyed to another 
fetch functions that work the same way.

The mysql_data_seek() can also work in a relative method, moving the pointer 'n' rows 
before the actual row or 'n' rows after it.

I don't know if this is possible, but I think this will be very useful.



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



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




[PHP-DEV] PHP 4.0 Bug #10102: Parse error

2001-04-01 Thread pulstar

From: [EMAIL PROTECTED]
Operating system: Windows 98 4.10 english
PHP version:  4.0.4
PHP Bug Type: Scripting Engine problem
Bug description:  Parse error

Parse error: parse error, expecting `')'' 
in c:\site\home\news.php on line 21

Line 21:  if(!empty($news->getField(url)))
Line 22:  echo $news->getField(url);

What is wrong in this line? 
I changed it to:

$thing=$news->getField(url);
if(!empty($thing))
 echo $news->getField(url);

Now, it works fine. Weird...



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