#49587 [NEW]: Parsing WSDL: Couldn't load from URL throws exception AND fatal error
From: proofek at gmail dot com Operating system: Linux PHP version: 5.3.0 PHP Bug Type: SOAP related Bug description: Parsing WSDL: Couldn't load from URL throws exception AND fatal error Description: It is related to #34657 but happens in a bit different situation. No xdebug loaded. Exception is throws and is catchable, but FATAL error still appears in error log. Now to my surprise FATAL error is not visible on standard output when you switch display_errors on. That also explains why it's not revealed in http://svn.php.net/viewvc/php/php- src/branches/PHP_5_2/ext/soap/tests/bugs/bug34657.phpt?view=markup, although this test is broken anyway. Both php 5.3 and 5.2 affected Reproduce code: --- Pseudo code: try { $client = new SoapClient('http://not.there.com/a.php?wsdl'); } catch (Exception $e) { echo "Exception thrown: " . $e->getMessage(); } Expected result: Message on std output: Exception thrown: SOAP-ERROR: Parsing WSDL: Couldn't load from http://not.there.com/a.php?wsdl Actual result: -- Message on std output: Exception thrown: SOAP-ERROR: Parsing WSDL: Couldn't load from http://not.there.com/a.php?wsdl FATAL thrown in error log: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from http://not.there.com/a.php?wsdl Script halted. -- Edit bug report at http://bugs.php.net/?id=49587&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49587&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49587&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49587&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49587&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49587&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49587&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49587&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49587&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49587&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49587&r=support Expected behavior: http://bugs.php.net/fix.php?id=49587&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49587&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49587&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49587&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49587&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=49587&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49587&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49587&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49587&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49587&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49587&r=mysqlcfg
#49587 [Opn->Bgs]: Parsing WSDL: Couldn't load from URL throws exception AND fatal error
ID: 49587 User updated by: proofek at gmail dot com Reported By: proofek at gmail dot com -Status: Open +Status: Bogus Bug Type: SOAP related Operating System: Linux PHP Version: 5.3.0 New Comment: Bogus. The problem is actually because of SoapClient raises a E_WARNING "SoapClient::SoapClient() [function.SoapClient-SoapClient]: php_network_getaddresses: getaddrinfo failed: Name or service not known" which then was caught by my custom error handler and turn into Exception. Previous Comments: [2009-09-18 11:31:01] proofek at gmail dot com Description: It is related to #34657 but happens in a bit different situation. No xdebug loaded. Exception is throws and is catchable, but FATAL error still appears in error log. Now to my surprise FATAL error is not visible on standard output when you switch display_errors on. That also explains why it's not revealed in http://svn.php.net/viewvc/php/php- src/branches/PHP_5_2/ext/soap/tests/bugs/bug34657.phpt?view=markup, although this test is broken anyway. Both php 5.3 and 5.2 affected Reproduce code: --- Pseudo code: try { $client = new SoapClient('http://not.there.com/a.php?wsdl'); } catch (Exception $e) { echo "Exception thrown: " . $e->getMessage(); } Expected result: Message on std output: Exception thrown: SOAP-ERROR: Parsing WSDL: Couldn't load from http://not.there.com/a.php?wsdl Actual result: -- Message on std output: Exception thrown: SOAP-ERROR: Parsing WSDL: Couldn't load from http://not.there.com/a.php?wsdl FATAL thrown in error log: PHP Fatal error: SOAP-ERROR: Parsing WSDL: Couldn't load from http://not.there.com/a.php?wsdl Script halted. -- Edit this bug report at http://bugs.php.net/?id=49587&edit=1
#41477 [NEW]: ReflectionParameter getName returns null
From: proofek at gmail dot com Operating system: Linux (Debian) PHP version: 5.2.2 PHP Bug Type: Class/Object related Bug description: ReflectionParameter getName returns null Description: ReflectionParameter getName returns null for SoapClient object. Happend on 5.2.0 too. Reproduce code: --- $objRfClass = new ReflectionClass('SoapClient'); $objRfMethod = $objRfClass->getMethod('__soapCall'); $arrParams = $objRfMethod->getParameters(); foreach($arrParams as $objRfParam) { var_dump($objRfParam->getName()); } Expected result: Param names? Actual result: -- NULL NULL NULL NULL NULL -- Edit bug report at http://bugs.php.net/?id=41477&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41477&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41477&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41477&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41477&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41477&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41477&r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=41477&r=needscript Try newer version:http://bugs.php.net/fix.php?id=41477&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41477&r=support Expected behavior:http://bugs.php.net/fix.php?id=41477&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41477&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41477&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41477&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41477&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41477&r=dst IIS Stability:http://bugs.php.net/fix.php?id=41477&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41477&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41477&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41477&r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=41477&r=mysqlcfg
[PHP-BUG] Req #54252 [NEW]: Implement countLines() method for SplFileObject
From: Operating system: n/a PHP version: Irrelevant Package: SPL related Bug Type: Feature/Change Request Bug description:Implement countLines() method for SplFileObject Description: It'd be nice to have native support for counting lines in SplFileObject. At the moment I have to go through the file line by line to count the lines. It's a real pain. Also see the discussion in the internal mailing list: http://marc.info/?l=php- internals&m=129988577428035&w=2 I have attached a patch containing both countLines() method implementation and phpt tests. -- Edit bug report at http://bugs.php.net/bug.php?id=54252&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=54252&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=54252&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=54252&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=54252&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=54252&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=54252&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=54252&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=54252&r=needscript Try newer version: http://bugs.php.net/fix.php?id=54252&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=54252&r=support Expected behavior: http://bugs.php.net/fix.php?id=54252&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=54252&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=54252&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=54252&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=54252&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=54252&r=dst IIS Stability: http://bugs.php.net/fix.php?id=54252&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=54252&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=54252&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=54252&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=54252&r=mysqlcfg