Bug #52404 [Com]: All TTF Files are invalid [ALL PHP.NET]

2011-12-12 Thread h...@php.net
Edit report at https://bugs.php.net/bug.php?id=52404&edit=1

 ID: 52404
 Comment by:     h...@php.net
 Reported by:    h...@php.net
 Summary:All TTF Files are invalid [ALL PHP.NET]
 Status: Open
 Type:   Bug
 Package:*General Issues
 PHP Version:Irrelevant
 Block user comment: N
 Private report: N

 New Comment:

Comment:

I was unable to replicate clockwerx's findings.

According to my results there is only a problem with the fonts changed by 
rasmus 
in r284292.

New test script:

https://github.com/pear/Image_Text/raw/master/tests/Vera.ttf
$fonts[]='fonts/Vera.ttf';

//from http://ftp.gnome.org/pub/GNOME/sources/ttf-bitstream-vera/1.10/ttf-
bitstream-vera-1.10.zip
$fonts[] = 'fonts/ttf-bitstream-vera-1.10/Vera.ttf';

foreach ($fonts as $font) {
$read = file_exists($font)?'Yes':'No';
echo "Does font '$font' exist? $read\n";

$read = is_readable($font)?'Yes':'No';
echo "Is font '$font' readable? $read\n";

$test = @imagettfbbox(1, 1, $font, 1)?'Yes':'No';
echo "Is font '$font' valid? $test\n";

echo "What PHP version? ".phpversion()."\n";

echo "\n";
}
?>

Results:

Here's the results of that:

Does font 'fonts/Vera.ttf' exist? Yes 
Is font 'fonts/Vera.ttf' readable? Yes 
Is font 'fonts/Vera.ttf' valid? No 
What PHP version? 5.3.4 

Does font 'fonts/ttf-bitstream-vera-1.10/Vera.ttf' exist? Yes 
Is font 'fonts/ttf-bitstream-vera-1.10/Vera.ttf' readable? Yes 
Is font 'fonts/ttf-bitstream-vera-1.10/Vera.ttf' valid? Yes 
What PHP version? 5.3.4

Conclusion:

In r284292 rasmus made a change which changed the EOL of these font files. 
These 
files use a "Mixed" EOL while the original files use just Unix type EOL.

Solution:

Roll back r284292.


Previous Comments:

[2011-12-12 13:58:40] clockw...@php.net

This... doesn't seem to be just those .ttf files. I grabbed 
http://ftp.gnome.org/pub/GNOME/sources/ttf-bitstream-vera/1.10/ and there's no 
differences against http://github.com/pear/Image_Text/tests/

Trying to open these; I get:
 imagettfbbox(): Could not read font


[2011-06-12 03:32:01] gozmeu at gmail dot com

same here 

Warning: imagettftext() [function.imagettftext]: Could not find/open font in 
/home/gozmeu/domains/pwiguilds.com/public_html/travelcounter.php on line 40
‰PNG  IHDRPÆ-q" 
PLTEÿÿÿÿÿÿsx¥cIDAT(‘cpÀ±,»ÊQ3GÍÄk&]7>7¡ˆFIEND®B`‚


with a valid or invalid ttf file :s

--------
[2010-12-07 12:51:33] h...@php.net

This is not a difficult bug to fix. Anybody with commit access should be able 
to fix it.

Can somebody fix it?

Thanks.


[2010-10-18 18:30:24] h...@php.net

I would if I could.

I don't think I have commit access to all of the ttf files on the php.net svn.


[2010-07-27 01:54:48] ras...@php.net

You may just have to re-import them into Subversion or something.  All I did 
was 
flip the svn property so Subversion wouldn't mangle them.




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

https://bugs.php.net/bug.php?id=52404


-- 
Edit this bug report at https://bugs.php.net/bug.php?id=52404&edit=1


[PHP-BUG] Bug #53963 [NEW]: Failed to decode, yet json_last_error() is JSON_ERROR_NONE

2011-02-08 Thread h...@php.net
From: hm2k
Operating system: 
PHP version:  5.3.5
Package:  JSON related
Bug Type: Bug
Bug description:Failed to decode, yet json_last_error() is JSON_ERROR_NONE

Description:

I'm trying the json_decode() function on real world strings, not just from
strings 

produced using json_encode().



I have included the test case from bug #52262 as well to show that this
issue is 

different.



Thanks.

Test script:
---


http://dealerservices.autotrader.co.uk/14184/cars.htm */

$urls[]='http://atsearch.autotrader.co.uk/js/uvl/InlineServlet.js?did=14184&configfile=http://dealerservices.autotrader.co.uk/dealers/14184/14184_config.xml&csslocation=http://dealerservices.autotrader.co.uk/dealers/14184/14184&dropdowntype=uvl&partner=TMG&postcode=me86ad&miles=1500&sort=5&action=searchresults';

/* from http://api.jquery.com/jQuery.getJSON/ */

$urls[]='http://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=jQuery15094986786483787_1297190250272&tags=cat&tagmode=any&format=json&_=1297190250280';

/* from http://code.google.com/apis/base/samples/javascript/tutorial.html
*/

$urls[]='http://www.google.com/base/feeds/attributes/-/vehicles?max-values=30&bq=[target%20country:GB]&alt=json-in-script&callback=showMake';

/* from http://code.google.com/apis/gdata/docs/json.html */

$urls[]='http://www.google.com/calendar/feeds/developer-calen...@google.com/public/full?alt=json';

/* from http://code.google.com/apis/gdata/docs/json.html */

$urls[]='http://www.google.com/calendar/feeds/developer-calen...@google.com/public/full?alt=json-in-script&callback=myFunction';

/* from http://bugs.php.net/bug.php?id=52262 */

$urls[]='http://api.steampowered.com/ISteamUserStats/GetGlobalAchievementPercentagesForApp/v0001/?gameid=440';



/* from http://php.net/manual/en/function.json-last-error.php */

$json_errors=array( -1 => 'An unknown error occured',


JSON_ERROR_NONE => 'No error has occurred',


JSON_ERROR_DEPTH => 'The maximum stack depth has been exceeded',


JSON_ERROR_CTRL_CHAR => 'Control character error, possibly
incorrectly encoded',


JSON_ERROR_STATE_MISMATCH => 'Invalid or malformed JSON',


JSON_ERROR_SYNTAX => 'Syntax error',


JSON_ERROR_UTF8 => 'Malformed UTF-8 characters, possibly
incorrectly encoded');



/* main loop */

foreach($urls as $url) {

echo PHP_EOL;



//call the json

$json=file_get_contents($url);

echo 'Decoding... ' . $url . PHP_EOL;



//convert from jsonp to json

$json=preg_replace('/.+?({.+}).+/','$1',$json);



//get a result

$result=json_decode($json);

if ($result) {

echo 'Decoded.';

} else {

  echo 'Failed to decode.';

}

echo PHP_EOL;



$err=json_last_error();

if ($err != JSON_ERROR_NONE) {

echo 'Error: ';

echo 
isset($json_errors[$err])?$json_errors[$err]:$json_errors[-1];

} else {

echo 'No error.';

}

echo PHP_EOL;

}



//eof

Expected result:

The first result should either:



* Decode successfully and have no error (preferable)

Or

* Fail to decode and have an error which explains why

Actual result:
--


Decoding... http://atsearch.autotrader.co.uk/js/uvl/InlineServlet.js?

did=14184&configfile=http://dealerservices.autotrader.co.uk/dealers/14184/14184_

config.xml&csslocation=http://dealerservices.autotrader.co.uk/dealers/14184/1418

4&dropdowntype=uvl&partner=TMG&postcode=me86ad&miles=1500&sort=5&action=searchre

sults

Failed to decode.

No error.



Decoding... http://api.flickr.com/services/feeds/photos_public.gne?

jsoncallback=jQuery15094986786483787_1297190250272&tags=cat&tagmode=any&format=j

son&_=1297190250280

Failed to decode.

Error: Syntax error



Decoding... http://www.google.com/base/feeds/attributes/-/vehicles?max-

values=30&bq=[target%20country:GB]&alt=json-in-script&callback=showMake

Decoded.

No error.



Decoding... http://www.google.com/calendar/feeds/developer-

calen...@google.com/public/full?alt=json

Decoded.

No error.



Decoding... http://www.google.com/calendar/feeds/developer-

calen...@google.com/public/full?alt=json-in-script&callback=myFunction

Decoded.

No error.



Decoding... 

http://api.steampowered.com/ISteamUserStats/GetGlobalAchievementPercentagesForAp

p/v0001/?gameid=440

Decoded.

No error.

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

[PHP-BUG] Bug #53894 [NEW]: parse_ini_string('no="test"') unexpected BOOL_FALSE

2011-01-31 Thread h...@php.net
From: hm2k
Operating system: 
PHP version:  5.3.5
Package:  Strings related
Bug Type: Bug
Bug description:parse_ini_string('no="test"') unexpected BOOL_FALSE

Description:

When using parse_ini_string or parse_ini_file, if you have the key as "no"
it 

causes a syntax error, unexpected BOOL_FALSE.

Test script:
---


Expected result:

NULL

Actual result:
--
 

Warning:  syntax error, unexpected BOOL_FALSE in Unknown on line 1

 in /home/.../no.php on line 1 

-- 
Edit bug report at http://bugs.php.net/bug.php?id=53894&edit=1
-- 
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=53894&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=53894&r=trysnapshot53
Try a snapshot (trunk):  
http://bugs.php.net/fix.php?id=53894&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=53894&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=53894&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=53894&r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=53894&r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=53894&r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=53894&r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=53894&r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=53894&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=53894&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=53894&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=53894&r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=53894&r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=53894&r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=53894&r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=53894&r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=53894&r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=53894&r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=53894&r=mysqlcfg



[PHP-BUG] Bug #53444 [NEW]: get_headers and $http_response_header returns unusable formatting

2010-12-01 Thread h...@php.net
From: hm2k
Operating system: 
PHP version:  5.3.3
Package:  Streams related
Bug Type: Bug
Bug description:get_headers and $http_response_header returns unusable 
formatting

Description:

The get_headers() function and the $http_response_header variable often
returns multiple headers combined into a completely unusable format.

Test script:
---


http://google.com/');

print_r($http_response_header);



echo "Testing the normal get_headers format\n";

$headers=get_headers('http://google.com/');

print_r($headers);



echo "Testing the get_headers format with keys\n";

$headers=get_headers('http://google.com/',1);

print_r($headers);



?>

Expected result:

Each set of headers from each request should be separated into another
array, rather than simply appended to the existing ones.



There is currently no safe way to separate the returned values into a
usable format. The get_headers format with keys is the worst offender of
this.

Actual result:
--
Testing the $http_response_header format

Array

(

[0] => HTTP/1.0 301 Moved Permanently

[1] => Location: http://www.google.com/

[2] => Content-Type: text/html; charset=UTF-8

[3] => Date: Wed, 01 Dec 2010 22:36:17 GMT

[4] => Expires: Fri, 31 Dec 2010 22:36:17 GMT

[5] => Cache-Control: public, max-age=2592000

[6] => Server: gws

[7] => Content-Length: 219

[8] => X-XSS-Protection: 1; mode=block

[9] => HTTP/1.0 302 Found

[10] => Location: http://www.google.co.uk/

[11] => Cache-Control: private

[12] => Content-Type: text/html; charset=UTF-8

[13] => Set-Cookie:
PREF=ID=4a205a8a49c12cc1:FF=0:TM=1291242977:LM=1291242977:S=nhA-vebjo6ayX0bQ;
expires=Fri, 30-Nov-2012 22:36:17 GMT; path=/; domain=.google.com

[14] => Set-Cookie:
NID=41=LcFt9zVP6L3dEVMKDUeNblPFQVRlOJaak9BjEUnZErgDkDh9yjljWhydKUteQdcqGh4PM0gaVJlyLT6CEu6K_LpFYJhRJRMkgy7-u45iMOa4xvItP26T_03rqUm-Lrrv;
expires=Thu, 02-Jun-2011 22:36:17 GMT; path=/; domain=.google.com;
HttpOnly

[15] => Date: Wed, 01 Dec 2010 22:36:17 GMT

[16] => Server: gws

[17] => Content-Length: 221

[18] => X-XSS-Protection: 1; mode=block

[19] => HTTP/1.0 200 OK

[20] => Date: Wed, 01 Dec 2010 22:36:17 GMT

[21] => Expires: -1

[22] => Cache-Control: private, max-age=0

[23] => Content-Type: text/html; charset=ISO-8859-1

[24] => Set-Cookie:
PREF=ID=16ffcfbf48f03139:FF=0:TM=1291242977:LM=1291242977:S=Niy-I-NoOBYJK2Tl;
expires=Fri, 30-Nov-2012 22:36:17 GMT; path=/; domain=.google.co.uk

[25] => Set-Cookie:
NID=41=eXX6NtkDo7xtT_Y7l3MVRtVznVjPE0fUUwfcmcSTXOX_80oJhSDTi_NJvidjgq_fwl3xOTvMTXatxlUqJPZsSPk2b8jIZ-oG4_tO9Eyf_beK0jqoJ20u72Ukhsydzxih;
expires=Thu, 02-Jun-2011 22:36:17 GMT; path=/; domain=.google.co.uk;
HttpOnly

[26] => Server: gws

[27] => X-XSS-Protection: 1; mode=block

)

Testing the normal get_headers format

Array

(

[0] => HTTP/1.0 301 Moved Permanently

[1] => Location: http://www.google.com/

[2] => Content-Type: text/html; charset=UTF-8

[3] => Date: Wed, 01 Dec 2010 22:36:17 GMT

[4] => Expires: Fri, 31 Dec 2010 22:36:17 GMT

[5] => Cache-Control: public, max-age=2592000

[6] => Server: gws

[7] => Content-Length: 219

[8] => X-XSS-Protection: 1; mode=block

[9] => HTTP/1.0 302 Found

[10] => Location: http://www.google.co.uk/

[11] => Cache-Control: private

[12] => Content-Type: text/html; charset=UTF-8

[13] => Set-Cookie:
PREF=ID=1c5409426fc05ac7:FF=0:TM=1291242978:LM=1291242978:S=Gq5q1jDdprguyJVX;
expires=Fri, 30-Nov-2012 22:36:18 GMT; path=/; domain=.google.com

[14] => Set-Cookie:
NID=41=YVFzP9yX2jgAGZzNfMYIIjZ2BE3FBZGe35hvkcZnv_vXG_Y6-3WWfeY3X5_B7ggaA7-bLOR2WihGFyFTo_9etxMb-o5KbD6wxs3chDweWERpzOaRzSwRdKZZ0r469lOq;
expires=Thu, 02-Jun-2011 22:36:18 GMT; path=/; domain=.google.com;
HttpOnly

[15] => Date: Wed, 01 Dec 2010 22:36:18 GMT

[16] => Server: gws

[17] => Content-Length: 221

[18] => X-XSS-Protection: 1; mode=block

[19] => HTTP/1.0 200 OK

[20] => Date: Wed, 01 Dec 2010 22:36:18 GMT

[21] => Expires: -1

[22] => Cache-Control: private, max-age=0

[23] => Content-Type: text/html; charset=ISO-8859-1

[24] => Set-Cookie:
PREF=ID=72fb7f7330dc6dda:FF=0:TM=1291242978:LM=1291242978:S=8hdaRNIKWI_17QQW;
expires=Fri, 30-Nov-2012 22:36:18 GMT; path=/; domain=.google.co.uk

[25] => Set-Cookie:
NID=41=emzDdkZVlIzPUExRMV6yXykCd0Jqrc665mzd5smnyV-MCBqEeC7wEndKmpsRqgb5M3_2dfdEK1Fbjwq0OPd87oz9UFjVYXqPqKABcPHtp_FWZw4rUluDtHeBI04rCyHH;
expires=Thu, 02-Jun-2011 22:36:18 GMT; path=/; domain=.google.co.uk;
HttpOnly

[26] => Server: gws

[27] => X-XSS-Protection: 1; mode=block

)

Testing the get_headers format with keys

Array

(

[0] => HTTP/1.0 301 Moved Permanently

[Location] => Array

(

[0] => http://www.google.com/

[1] => http://www.google.co.uk/

)



[

Bug #53375 [Com]: imap_search 'ALL' always returns false

2010-11-25 Thread h...@php.net
Edit report at http://bugs.php.net/bug.php?id=53375&edit=1

 ID: 53375
 Comment by:     h...@php.net
 Reported by:    h...@php.net
 Summary:imap_search 'ALL' always returns false
 Status: Bogus
 Type:   Bug
 Package:IMAP related
 Operating System:   CentOS
 PHP Version:5.3.3
 Block user comment: Y
 Private report: N

 New Comment:

http://bugs.centos.org/view.php?id=4640


Previous Comments:

[2010-11-25 21:25:10] paj...@php.net

There is no c-client implementation in PHP, we use the library which is
installed by your distribution (centos). So if you don't want to report
a bug to c-client, just go to centos.


[2010-11-25 21:20:56] h...@php.net

The bug is in PHP, it is a PHP implementation of the IMAP c-client
library.



Reporting the bug in a third party implementations is NOT the
responsibility of the end user, it is of the developer.



Imagine if I told every user of every bug reported to me in everything I
developed in PHP to do the same thing you're telling me. They would get
closed and the bug would never get fixed.



So, this doesn't wash with me I'm afraid.



All that aside, this bug is NOT bogus. I created an implementation in
perl which worked fine, while the PHP counterpart fails.



The least you should do as a representative for this implementation is
report the bug to the appropriate vendor on behalf of the end user.



I trust you will agree.


[2010-11-25 20:51:54] il...@php.net

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

Looking at the backend code, PHP calls the mail_search_full() method
directly and 

relies on its output, so the issue lies within c-client, rather than
PHP.

----
[2010-11-22 12:58:44] h...@php.net

Further more, here's an example of it working by sending raw commands to
the imap server through a normal telnet connection.



---

* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THRE

AD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP
ready. Copyr

ight 1998-2010 Double Precision, Inc.  See COPYING for distribution
information.

a1 LOGIN   OK LOGIN Ok.

a2 EXAMINE INBOX* FLAGS ($MDNSent Junk NonJunk $Forwarded \Draft
\Answered \Flag

ged \Deleted \Seen \Recent)

* OK [PERMANENTFLAGS ()] No permanent flags permitted

* 984 EXISTS

* 0 RECENT

* OK [UIDVALIDITY 1174303484] Ok

* OK [MYRIGHTS "acdilrsw"] ACL

a2 OK [READ-ONLY] Ok

a3 SEARCH ALL* SEARCH 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
21 22 2

3 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
47 48 49

50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
74 75 76

 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
100 101 10

2 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
120 121 12

2 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
140 141 14

2 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
160 161 16

2 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
180 181 18

2 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
200 201 20

2 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219
220 221 22

2 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239
240 241 24

2 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259
260 261 26

2 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279
280 281 28

2 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299
300 301 30

2 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319
320 321 32

2 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339
340 341 34

2 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359
360 361 36

2 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379
380 381 38

2 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399
400 401 40

2 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419
420 421 42

2 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439
440 441 44

2 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459
460 461 46

2 463 464 465 466 46

Bug #53375 [Com]: imap_search 'ALL' always returns false

2010-11-22 Thread h...@php.net
Edit report at http://bugs.php.net/bug.php?id=53375&edit=1

 ID: 53375
 Comment by:     h...@php.net
 Reported by:    h...@php.net
 Summary:imap_search 'ALL' always returns false
 Status: Open
 Type:   Bug
 Package:IMAP related
 Operating System:   CentOS
 PHP Version:5.3.3
 Block user comment: N
 Private report: N

 New Comment:

Further more, here's an example of it working by sending raw commands to
the imap server through a normal telnet connection.



---

* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE
THREAD=ORDEREDSUBJECT THRE

AD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP
ready. Copyr

ight 1998-2010 Double Precision, Inc.  See COPYING for distribution
information.

a1 LOGIN   OK LOGIN Ok.

a2 EXAMINE INBOX* FLAGS ($MDNSent Junk NonJunk $Forwarded \Draft
\Answered \Flag

ged \Deleted \Seen \Recent)

* OK [PERMANENTFLAGS ()] No permanent flags permitted

* 984 EXISTS

* 0 RECENT

* OK [UIDVALIDITY 1174303484] Ok

* OK [MYRIGHTS "acdilrsw"] ACL

a2 OK [READ-ONLY] Ok

a3 SEARCH ALL* SEARCH 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
21 22 2

3 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
47 48 49

50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
74 75 76

 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
100 101 10

2 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
120 121 12

2 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139
140 141 14

2 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159
160 161 16

2 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
180 181 18

2 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199
200 201 20

2 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219
220 221 22

2 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239
240 241 24

2 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259
260 261 26

2 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279
280 281 28

2 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299
300 301 30

2 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319
320 321 32

2 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339
340 341 34

2 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359
360 361 36

2 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379
380 381 38

2 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399
400 401 40

2 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419
420 421 42

2 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439
440 441 44

2 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459
460 461 46

2 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479
480 481 48

2 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499
500 501 50

2 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519
520 521 52

2 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539
540 541 54

2 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559
560 561 56

2 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579
580 581 58

2 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599
600 601 60

2 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619
620 621 62

2 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639
640 641 64

2 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659
660 661 66

2 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679
680 681 68

2 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699
700 701 70

2 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719
720 721 72

2 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739
740 741 74

2 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759
760 761 76

2 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779
780 781 78

2 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799
800 801 80

2 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819
820 821 82

2 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839
840 841 84

2 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859
860 861 86

2 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879
880 881 88

2 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899
900 901 90

2 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919
920 921 92

2 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939
940 941 94

2 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959
960 961 96

2 963 964 96

[PHP-BUG] Bug #53375 [NEW]: imap_search 'ALL' always returns false

2010-11-22 Thread h...@php.net
From: hm2k
Operating system: CentOS
PHP version:  5.3.3
Package:  IMAP related
Bug Type: Bug
Bug description:imap_search 'ALL' always returns false

Description:

An imap_search for all always seems to return false, even though the
mailbox Nmsgs returns a positive integer.

Test script:
---


Nmsgs\n";

var_dump(imap_mailboxmsginfo($stream)->Nmsgs);

echo "\n";



$search='ALL';

echo "imap_search $search\n";

var_dump(imap_search($stream,$search)); //bool(false)

if (imap_last_error()) { echo 'Error: '.imap_last_error()."\n"; }

echo "\n";



echo "imap_alerts\n";

var_dump(imap_alerts());

echo "imap_errors\n";

var_dump(imap_errors());



Expected result:

imap_search should return an array of message numbers or UIDs.



If it failed, there should be an error in imap_last_error().

Actual result:
--
PHP 5.3.3

imap_mailboxmsginfo->Nmsgs

int(981)



imap_search ALL

bool(false)



imap_alerts

bool(false)

imap_errors

bool(false)



-- 
Edit bug report at http://bugs.php.net/bug.php?id=53375&edit=1
-- 
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=53375&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=53375&r=trysnapshot53
Try a snapshot (trunk):  
http://bugs.php.net/fix.php?id=53375&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=53375&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=53375&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=53375&r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=53375&r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=53375&r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=53375&r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=53375&r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=53375&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=53375&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=53375&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=53375&r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=53375&r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=53375&r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=53375&r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=53375&r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=53375&r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=53375&r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=53375&r=mysqlcfg



Bug #52403 [Com]: imagettfbbox/imagettftext "Could not read font" error

2010-07-27 Thread h...@php.net
Edit report at http://bugs.php.net/bug.php?id=52403&edit=1

 ID: 52403
 Comment by:     h...@php.net
 Reported by:    h...@php.net
 Summary:imagettfbbox/imagettftext "Could not read font"
 error
 Status: Open
 Type:   Bug
 Package:GD related
 Operating System:   CentOS4
 PHP Version:5.2.13
 Block user comment: Y

 New Comment:

To clarify:



Expected result:



Warning: imagettfbbox() [function.imagettfbbox]: Invalid font file in
/home/share/www/dev/test/php/imagettfbbox.php on line 4



What PHP version? 5.2.13

Does font 'Vera.ttf' exist? Yes

Is font 'Vera.ttf' readable? Yes



Actual result:

--

Warning: imagettfbbox() [function.imagettfbbox]: Could not read font in
/home/share/www/dev/test/php/imagettfbbox.php on line 4



What PHP version? 5.2.13

Does font 'Vera.ttf' exist? Yes

Is font 'Vera.ttf' readable? Yes


Previous Comments:
--------
[2010-07-27 10:57:18] h...@php.net

Excuse me, but this is -NOT- the same bug.



Just because it's simply related does not make it the same.



The problem here is the error, not the TTF files, which is the problem
described in the other bug report.



Please check and try again.


[2010-07-27 01:04:09] ka...@php.net

Same issue as in bug #52404

----
[2010-07-22 14:24:49] h...@php.net

Description:

Using the Vera.ttf font, which is part of the Image_Text PEAR package
results in an odd error...



The font can be found here:



http://svn.php.net/viewvc/pear/packages/Image_Text/trunk/tests/Vera.ttf?view=log



The error given by imagettfbbox() is "Could not read font".



When tested with is_readable(), the font is indeed readable.



When opening the Vera.ttf font file in windows, it produces the
following error:



"The requested file Vera.ttf was not a valid font file."



It would appear that the file may well be corrupt, not that it "could
not read".



This error lead to a very confusing situation...



I propose that the error should be more descriptive.



Instead of "Could not read font", consider "Invalid font file".

Test script:
---
What PHP version? ".phpversion();

$read = file_exists($font)?'Yes':'No';

echo "\nDoes font '$font' exist? ".$read;

$read = is_readable($font)?'Yes':'No';

echo "\nIs font '$font' readable? ".$read;



?>

Expected result:

Warning: imagettfbbox() [function.imagettfbbox]: Could not read font in
/home/share/www/dev/test/php/imagettfbbox.php on line 4

Actual result:
--
Warning: imagettfbbox() [function.imagettfbbox]: Could not read font in
/home/share/www/dev/test/php/imagettfbbox.php on line 4



What PHP version? 5.2.13

Does font 'Vera.ttf' exist? Yes

Is font 'Vera.ttf' readable? Yes






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


[PHP-BUG] Bug #52404 [NEW]: All TTF Files are invalid [ALL PHP.NET]

2010-07-22 Thread h...@php.net
From: hm2k
Operating system: 
PHP version:  Irrelevant
Package:  *General Issues
Bug Type: Bug
Bug description:All TTF Files are invalid [ALL PHP.NET]

Description:

All of the TTF files that are on PHP.net appear to be invalid/corrupt.



A change that happened 12 months ago with the description of "Fix TTF
files" appears to be where the problem lies.



http://svn.php.net/viewvc?view=revision&revision=284292



To fix this, this revision should be reverted to all files.



On Windows, when you try to open any of these files it will say



"The requested file *.ttf was not a valid font file".



Here at PHP, we get a different message when using the imagettfbbox()
function...



"Could not read font".



In the example below I am using the arial.ttf file which can be downloaded
here:

http://svn.php.net/viewvc/web/php/trunk/bin/arial.ttf?view=co

Test script:
---
Does font '$font' exist? ".$read;



$read = is_readable($font)?'Yes':'No';

echo "\nIs font '$font' readable? ".$read;



$test = @imagettfbbox(1, 1, $font, 1)?'Yes':'No';

echo "\nIs font '$font' valid? ".$test;



echo "\nWhat PHP version? ".phpversion();



?>

Expected result:

Does font 'fonts/arial.ttf' exist? Yes

Is font 'fonts/arial.ttf' readable? Yes

Is font 'fonts/arial.ttf' valid? Yes

What PHP version? 5.2.13

Actual result:
--
Does font 'fonts/arial.ttf' exist? Yes

Is font 'fonts/arial.ttf' readable? Yes

Is font 'fonts/arial.ttf' valid? No

What PHP version? 5.2.13

-- 
Edit bug report at http://bugs.php.net/bug.php?id=52404&edit=1
-- 
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=52404&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=52404&r=trysnapshot53
Try a snapshot (trunk):  
http://bugs.php.net/fix.php?id=52404&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=52404&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=52404&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=52404&r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=52404&r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=52404&r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=52404&r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=52404&r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=52404&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=52404&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=52404&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=52404&r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=52404&r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=52404&r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=52404&r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=52404&r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=52404&r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=52404&r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=52404&r=mysqlcfg



[PHP-BUG] Bug #52403 [NEW]: imagettfbbox/imagettftext "Could not read font" error

2010-07-22 Thread h...@php.net
From: hm2k
Operating system: CentOS4
PHP version:  5.2.13
Package:  GD related
Bug Type: Bug
Bug description:imagettfbbox/imagettftext "Could not read font" error

Description:

Using the Vera.ttf font, which is part of the Image_Text PEAR package
results in an odd error...



The font can be found here:



http://svn.php.net/viewvc/pear/packages/Image_Text/trunk/tests/Vera.ttf?view=log



The error given by imagettfbbox() is "Could not read font".



When tested with is_readable(), the font is indeed readable.



When opening the Vera.ttf font file in windows, it produces the following
error:



"The requested file Vera.ttf was not a valid font file."



It would appear that the file may well be corrupt, not that it "could not
read".



This error lead to a very confusing situation...



I propose that the error should be more descriptive.



Instead of "Could not read font", consider "Invalid font file".

Test script:
---
What PHP version? ".phpversion();

$read = file_exists($font)?'Yes':'No';

echo "\nDoes font '$font' exist? ".$read;

$read = is_readable($font)?'Yes':'No';

echo "\nIs font '$font' readable? ".$read;



?>

Expected result:

Warning: imagettfbbox() [function.imagettfbbox]: Could not read font in
/home/share/www/dev/test/php/imagettfbbox.php on line 4

Actual result:
--
Warning: imagettfbbox() [function.imagettfbbox]: Could not read font in
/home/share/www/dev/test/php/imagettfbbox.php on line 4



What PHP version? 5.2.13

Does font 'Vera.ttf' exist? Yes

Is font 'Vera.ttf' readable? Yes

-- 
Edit bug report at http://bugs.php.net/bug.php?id=52403&edit=1
-- 
Try a snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=52403&r=trysnapshot52
Try a snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=52403&r=trysnapshot53
Try a snapshot (trunk):  
http://bugs.php.net/fix.php?id=52403&r=trysnapshottrunk
Fixed in SVN:
http://bugs.php.net/fix.php?id=52403&r=fixed
Fixed in SVN and need be documented: 
http://bugs.php.net/fix.php?id=52403&r=needdocs
Fixed in release:
http://bugs.php.net/fix.php?id=52403&r=alreadyfixed
Need backtrace:  
http://bugs.php.net/fix.php?id=52403&r=needtrace
Need Reproduce Script:   
http://bugs.php.net/fix.php?id=52403&r=needscript
Try newer version:   
http://bugs.php.net/fix.php?id=52403&r=oldversion
Not developer issue: 
http://bugs.php.net/fix.php?id=52403&r=support
Expected behavior:   
http://bugs.php.net/fix.php?id=52403&r=notwrong
Not enough info: 
http://bugs.php.net/fix.php?id=52403&r=notenoughinfo
Submitted twice: 
http://bugs.php.net/fix.php?id=52403&r=submittedtwice
register_globals:
http://bugs.php.net/fix.php?id=52403&r=globals
PHP 4 support discontinued:  http://bugs.php.net/fix.php?id=52403&r=php4
Daylight Savings:http://bugs.php.net/fix.php?id=52403&r=dst
IIS Stability:   
http://bugs.php.net/fix.php?id=52403&r=isapi
Install GNU Sed: 
http://bugs.php.net/fix.php?id=52403&r=gnused
Floating point limitations:  
http://bugs.php.net/fix.php?id=52403&r=float
No Zend Extensions:  
http://bugs.php.net/fix.php?id=52403&r=nozend
MySQL Configuration Error:   
http://bugs.php.net/fix.php?id=52403&r=mysqlcfg



Bug #51968 [Com]: dns_get_record() [function.dns-get-record]: res_nsend() failed

2010-06-06 Thread h...@php.net
Edit report at http://bugs.php.net/bug.php?id=51968&edit=1

 ID:  51968
 Comment by:  h...@php.net
 Reported by: php at hm2k dot org
 Summary: dns_get_record() [function.dns-get-record]: res_nsend()
  failed
 Status:  Feedback
 Type:Bug
 Package: *Network Functions
 PHP Version: 5.3.2

 New Comment:

Not Windows. I was testing on CentOS 4 and 5, but based on Google
results, I'd say it's more common across many Linux based servers.


Previous Comments:

[2010-06-06 08:30:40] ka...@php.net

Please be more specific, which OS does this happen on?


[2010-06-01 18:49:43] php at hm2k dot org

Description:

Certain hosts cause the dns_get_record() to fail with the following
error:



Warning: dns_get_record() [function.dns-get-record]: res_nsend() failed
in dns.php  on line 3



A live example of this error is found here:



http://www.easywhois.com/index.php?mode=dnsinfo&domain=jjpny.com

Test script:
---








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