Req #12802 [Com]: gethostbyname/gethostbyaddr timeout

2013-08-21 Thread zach dot bailey at pardot dot com
Edit report at https://bugs.php.net/bug.php?id=12802edit=1

 ID: 12802
 Comment by: zach dot bailey at pardot dot com
 Reported by:cheapsalsa at yahoo dot com
 Summary:gethostbyname/gethostbyaddr timeout
 Status: Assigned
 Type:   Feature/Change Request
 Package:*General Issues
 PHP Version:*
 Assigned To:pajoye
 Block user comment: N
 Private report: N

 New Comment:

Please, please, please consider adding this. It's a huge 
scalability/performance 
issue anytime a call out to an external service is not bounded with a timeout. 
PHP 
users are having to resort to ridiculous workarounds to something that should 
be 
built into the core language. It's unfathomable that PHP has functions like the 
ability to get the time that the sun will rise for a certain date and location 
but 
it can't be bothered with having a timeout on an extremely common function.


Previous Comments:

[2012-09-25 12:34:49] tyr...@php.net

any progress on this?


[2010-11-19 02:06:51] paj...@php.net

It will be available when committed.


[2010-11-19 01:37:47] tyra3l at gmail dot com

can I access that implementation from userspace right now?
if there is a way, then it's fine for me as is, but I wouldn't dare to change 
the 
current implementation of those functions.
so maybe the best would be to add new userspace functions for the async 
behaviour.

Tyrael


[2010-11-19 01:07:41] paj...@php.net

We have an implementation, only a matter of using it instead of get*. I have 
some patch for that, adding some features for the DNS APIs. It should be easy 
to modify this function while being at it.


[2010-11-19 00:53:25] tyra3l at gmail dot com

maybe we could use some non-blocking dns library?
http://c-ares.haxx.se/

Tyrael




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


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


[PHP-BUG] Bug #62561 [NEW]: DateTime add 'P1D' adds 25 hours

2012-07-13 Thread zach dot bailey at pardot dot com
From: zach dot bailey at pardot dot com
Operating system: Mac OS X 10.7.4
PHP version:  5.3.14
Package:  Date/time related
Bug Type: Bug
Bug description:DateTime add 'P1D' adds 25 hours

Description:

When a DateTime is constructed with a non-UTC timezone and one day is
added, the 
time also jumps forward by an hour as well.

Test script:
---
$ts = new DateTime('@1341115200', new DateTimeZone('America/New_York'));

$dayFromTs = new DateTime('@1341115200', new
DateTimeZone('America/New_York'));
$dayFromTs-add(new DateInterval('P1D'));

echo 'ts: '.$ts-format('Y-m-d H:i:s').\n;
echo 'day from ts: '.$dayFromTs-format('Y-m-d H:i:s').\n;

Expected result:

ts: 2012-07-01 04:00:00
day from ts: 2012-07-02 04:00:00

Actual result:
--
ts: 2012-07-01 04:00:00
day from ts: 2012-07-02 05:00:00

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