[PHP-DEV] PHP CLI and opcode caches
Hi, I have some PHP scripts to be run as daemons or as gearman workers. Now it would be fine, if PHP could make use of an opcode cache also for CLI scripts. Is anybody aware of an opcode cache (APC, XCache, eaccelerator) that could be addapted in this way? Two possible scenarios: - A Runner starts and keeps running x PHP threads with the same PHP script which share an opcode cache. - A gearman worker starts different PHP scripts according to the requested task. All threads share the opcode cache. Which is the best mailing list to discuss this further, please? Best regards, Thomas Koch, http://www.koch.ro -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] PHP 5 Bug Summary Report
PHP 5 Bug Database summary - http://bugs.php.net/ Num Status Summary (1456 total -- which includes 888 feature requests) ===[*General Issues]== 48597 Open Unclosed array keys break space escaping in $_GET/POST/REQUEST 48612 Open PHP command line interpreter ignores LC_ALL setting 48719 Assigned parse_ini_file scanner more sanitation 48778 Open Files on NTFS Mounted Volumes (Junctions) inaccessible 48813 Feedback used ob_start() and CPU usage become 100% 48890 Feedback $_POST not working properly 48899 Open is_callable returns true even if method does not exist in parent class ===[*Network Functions]=== 48167 To be documented undefined function checkdnsrr() ===[*Unicode Issues]== 48895 Open Can't red php files with special characters ===[*XML functions]=== 48095 Verified Load RDF Format Error ===[Apache related]=== 48894 Open Occasional crashes with Apache 1.3.41 ===[Apache2 related]== 32220 Assigned [PATCH] thread_resources for thread not getting freed when apache kills thread 47681 Open System TMP dir ignored in file uploads 48134 Open crash after a few days (backtrace attached) with worker MPM 48260 Open Size of PHP file affects behaviour of virtual() or #include virtual ===[Arrays related]=== 47221 Open no result from array_diff() ===[BC math related]== 44995 Open bcpowmod() using a scale function always returns 0 46564 Verified bcmod( '1071', '357.5' ) returns '0' ===[Bzip2 Related] 29521 Assigned compress.bzip2 wrapper ===[Calendar related]= 40213 Suspended easter_date() returns wrong timestamp if ... ===[CGI related]== 45217 Open crash if -z and -m are used together 47412 Open PHP_MSHUTDOWN_FUNCTION not being called under FastCGI 47605 Open CGI SAPI can not send HTTP 200 header 47627 Open No input file specified causing crash 48695 Assigned PHP_SELF / SCRIPT_NAME issues not bogus - bugfix in 5.2.9 still causing trouble 48831 Open php -i has different output to php --ini ===[Class/Object related]= 41461 Verified E_STRICT notice when overriding methods not defined by an Interface in hierarchy 46140 Open Unserializing with __wakeup that removes child causes subsequent refs to shift 46812 To be documented get_class_vars() does not include visible private variable looking at subclass 47405 Verified error reports wrong file/line 47664 Assigned get_class returns NULL instead of FALSE. 48623 Open Incorrect scope for static variables in object methods 48804 Open Overriding results in declaration error ===[COM related]== 31327 Assigned chinese char and word problem 32099 Assigned After opening ADO connection and closing it repeatedly, Apache stops service 34253 Assigned COM binary object/array issue (question marks?) 35875 Assigned IE event failure upon scheduling script 36360 Assigned PHP crashes when accessing an object that was just create by parent object 37562 Assigned Unable to lookup ParameterFieldDefinitions 37899 Assigned [PATCH] php_char_to _OLECHAR copies junk bytes 37965 Assigned Multi-dimensional array between PHP and COM 38719 Assigned COM Error during accessing function VirtualMachines 40424 Assigned Fatal error when setting the value of COM object's property array 40581 Assigned Pass Struct type to COM object from PHP 40664 Assigned String conversion functions wrong for multibyte chars 41055 Assigned DOTNET not instantiating fully-pathed assembly 41078 Assigned Its not possible to call Static dotNet Classes with dotnet 41189 Assigned Multi-dimensional array in COM function causes hang 41368 Assigned ADODB.Recordset ActiveConnection property - can't set with PHP 5.2.1+ 41388 Assigned Error in COM Object results 41577 Assigned DOTNET is successful once per server run 42413 Assigned Cannot iterate IE's event object 42551 Assigned new COM(HTMLFile) = warnings 42585 Assigned die() in event handler = PHP hangs 43275 Open get_class problem with COM objects 43432 Open Fatal error when setting the value of COM object's Attribute property 43470 Open COM API fails to correctly return [OUT] VT_PTR references 43506 Open com_get_active_object always fails 43521 Open
[PHP-DEV] PHP 6 Bug Summary Report
PHP 6 Bug Database summary - http://bugs.php.net/ Num Status Summary (87 total -- which includes 39 feature requests) ===[*Unicode Issues]== 48265 Open Source and result of database have different encodings. ===[Apache related]=== 47061 Open User not logged under Apache ===[Apache2 related]== 44083 Open virtual() not outputting results if zlib.output_compression = On ===[Arrays related]=== 35277 Suspended incorrect recursion detection 41758 Assigned SORT_LOCALE_STRING broken for sort() in PHP6 43109 Open array_intersect() emits unexpected no of notices when 2d array is passed as arg 48478 Open Super-globals cannot be accessed with literal keys ===[COM related]== 45836 Open cannot use com 46909 Open COM object not allowing calls to methods ===[Compile Failure]== 42606 Open unicode/constants.c relies on ICU draft api 44502 Suspended Compiling ok with MySQL 5.0 ===[Date/time related] 46948 Assigned ext/date/lib/parse_tz.c:99: Memory leak: buffer ===[Filesystem function related]== 42110 Open fgetcsv doesn't handle \n correctly in multiline csv record 44034 Open FILE_IGNORE_NEW_LINES in FILE does not work as expected when lines end in \r\n 46688 Open Return values differ from 5.3 and are also inconsistent 46689 Open Downcoded notices suggest unfinished code in file system? 46990 Assigned Passing UTF8 strings to filesystem functions produce wrong filenames ===[GD related]=== 34670 Assigned imageTTFText for Indian scripts (Devanagari) 34992 Assigned imageconvolution does not respect alpha ===[I18N and L10N related] 42471 Open locale_set_default returns true on invalid locales ===[ICONV related] 48538 Open iconv_strlen() does not reject invalid charset on PHP6 ===[mcrypt related]=== 46834 Assigned Range of mcrypt functions fail on PHP 6.0 ===[MySQL related] 44076 Open mysql_result returns nothing with blob ===[OpenSSL related]== 25614 Assigned openssl_pkey_get_public() fails when given a private key ===[PDO related]== 35368 Suspended PDO query does not work properly with serialize 48773 Open Incorrect error when setting PDO::ATTR_STATEMENT_CLASS with ctor_args ===[Performance problem]== 42528 Open Out of char(8-bit) range value doesn't roll back, with uni-code ON. 48828 Feedback strtotime() seems surprisingly slow (3x worse than preg_match). ===[Program Execution] 39992 Open proc_terminate() leaves children of child running 43784 Assigned escapeshellarg removes % from given string ===[Regexps related]== 44923 Open ereg functions are not unicode aware: provide wrapper functions in PCRE ===[Reproducible crash]=== 45107 Open setting ext_dir to ./ (and other ini settings) causes apache crash 47756 Open Segfault on HTML Purifier test suite ===[Scripting Engine problem]= 42194 Open $argc/$argv[] won't work when .php extension is assigned to php.exe 47154 Open Object properties unset after setting. ===[Session related]== 44860 Open session_encode() fails for php_binary serializer ===[SimpleXML related] 48601 Open xpath() returns FALSE for legitimate query ===[Strings related]== 45566 Open Strict comparision on $_SERVER values fail 47691 Verified strtr bug. Not replace unicode values from array, in binary string. ===[Unicode Engine related]=== 45087 Open Illegal or truncated character in input 47155 Open PHP 6.0 decodes base64 into incorrect uft-8 string 47164 Assigned uncomfortable (binary)char() append to binary string 48463 Open Strange unicode output for internal main constants
[PHP-DEV] git mirror of svn.php.net
Hi List, Quite a few people mentioned that they want to use git as a frontend to the svn server. Therefore most of them need an initial import of the svn.php.net repository using git-svn. As this operation will retrieve every version in the repository, we decided to offer a semi-official git mirror. This mirror will be hosted on the php.net infrastructure, soon, but until we setup the necessary software, I maintain a manually updated repository at github. The repository has a complete import of php-src with all branches and tags. The repository can be found at: http://github.com/dsp/php/tree/master Please use this clone and do _not_ import the whole repository yourself. A FAQ how to setup the repository to commit back into the svn can be found in the wiki at: http://wiki.php.net/vcs/svnfaq David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] git mirror of svn.php.net
hi david, On Mon, Jul 13, 2009 at 03:38:04PM -0400, David Soria Parra wrote: svn.php.net repository using git-svn. As this operation will retrieve every version in the repository, we decided to offer a semi-official git mirror. This mirror will be hosted on the php.net infrastructure, soon, but until we setup the necessary software, I maintain a manually updated great news, thanks for this! we'll (debian php maintainers) hold off on doing any kind of git-svn mirroring then, and wait for the semi-official one to show up. sean signature.asc Description: Digital signature
Re: [PHP-DEV] git mirror of svn.php.net
On 2009-07-13, sean finney sean...@debian.org wrote: --rwEMma7ioTxnRzrJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable hi david, On Mon, Jul 13, 2009 at 03:38:04PM -0400, David Soria Parra wrote: svn.php.net repository using git-svn. As this operation will retrieve every version in the repository, we decided to offer a semi-official git mirror. =20 This mirror will be hosted on the php.net infrastructure, soon, but until we setup the necessary software, I maintain a manually updated great news, thanks for this! we'll (debian php maintainers) hold off on doing any kind of git-svn mirroring then, and wait for the semi-official one to show up. I'm not sure how long that will take, just use the github mirror for now. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] git mirror of svn.php.net
Very cool. Ilia Alshanetsky On 2009-07-13, at 3:38 PM, David Soria Parra s...@gmx.net wrote: Hi List, Quite a few people mentioned that they want to use git as a frontend to the svn server. Therefore most of them need an initial import of the svn.php.net repository using git-svn. As this operation will retrieve every version in the repository, we decided to offer a semi-official git mirror. This mirror will be hosted on the php.net infrastructure, soon, but until we setup the necessary software, I maintain a manually updated repository at github. The repository has a complete import of php-src with all branches and tags. The repository can be found at: http://github.com/dsp/php/tree/master Please use this clone and do _not_ import the whole repository yourself. A FAQ how to setup the repository to commit back into the svn can be found in the wiki at: http://wiki.php.net/vcs/svnfaq David -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Can't use embeded sapi
Sorry for being a C newby. Could you please help me? I try to follow Sarah's extending PHP book and fail to use the embeded PHP sapi: I compile PHP5.3: ./configure --enable-embed have a c program: #include sapi/embed/php_embed.h int main(int argc, char *argv[]) { PHP_EMBED_START_BLOCK(argc,argv) PHP_EMBED_END_BLOCK() return 0; } and a makefile: CC=gcc CFLAGS=-c -I/usr/local/include/php/ \ -I/usr/local/include/php/main \ -I/usr/local/include/php/Zend \ -I/usr/local/include/php/TSRM \ -Wall -g LDFLAGS=-L/usr/local/lib -lphp5 all: worker.c $(CC) -o worker.o worker.c $(CFLAGS) $(CC) -o worker worker.o $(LDFLAGS) and get after running make: gcc -c -I/usr/local/include/php/ -I/usr/local/include/php/main - I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -Wall -g -o worker.o worker.c gcc -L/usr/local/lib -lphp5 -o worker worker.o worker.o: In function `main': /var/checkouts/gearman-php-worker/worker.c:5: undefined reference to `php_embed_init' /var/checkouts/gearman-php-worker/worker.c:6: undefined reference to `php_embed_shutdown' collect2: ld returned 1 exit status make: *** [all] Error 1 Thomas Koch, http://www.koch.ro -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Can't use embeded sapi
Excerpts from Thomas Koch's message of Mon Jul 13 16:15:10 -0400 2009: worker.o: In function `main': /var/checkouts/gearman-php-worker/worker.c:5: undefined reference to `php_embed_init' /var/checkouts/gearman-php-worker/worker.c:6: undefined reference to `php_embed_shutdown' collect2: ld returned 1 exit status My guess is that you're missing some includes that you may need. Double check your code against that in the book. Cheers, Edward -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] git mirror of svn.php.net
Excerpts from David Soria Parra's message of Mon Jul 13 15:38:04 -0400 2009: Quite a few people mentioned that they want to use git as a frontend to the svn server. Therefore most of them need an initial import of the svn.php.net repository using git-svn. As this operation will retrieve every version in the repository, we decided to offer a semi-official git mirror. Awesome! Cheers, Edward -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Can't use embeded sapi
Hi Thomas, On Mon, Jul 13, 2009 at 9:15 PM, Thomas Kochtho...@koch.ro wrote: gcc -c -I/usr/local/include/php/ -I/usr/local/include/php/main - I/usr/local/include/php/Zend -I/usr/local/include/php/TSRM -Wall -g -o worker.o worker.c gcc -L/usr/local/lib -lphp5 -o worker worker.o worker.o: In function `main': /var/checkouts/gearman-php-worker/worker.c:5: undefined reference to `php_embed_init' /var/checkouts/gearman-php-worker/worker.c:6: undefined reference to `php_embed_shutdown' collect2: ld returned 1 exit status make: *** [all] Error 1 This worked for me, with your commands and program. Since its a linker error, it seems likely that you haven't installed libphp5.so properly. You didn't indicate that you ran make install, did you? If so, you may want to verify that there is a libphp5.so in /usr/local/lib, and that it is a shared library. Paul -- Paul Biggar paul.big...@gmail.com -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Re: [PHP-CVS] svn: php/php-src/trunk/win32/build/
On Jul 13, 2009, at 12:51 PM, Pierre Joye wrote: pajoye Mon, 13 Jul 2009 16:11:45 + ViewVC URL: http://svn.php.net/viewvc?view=revisionrevision=284019 Changed paths: A php/php-src/trunk/win32/build/svnclean.js Log: - rename to svn Copied: php/php-src/trunk/win32/build/svnclean.js (from rev 284013, php/php-src/trunk/win32/build/cvsclean.js) === (Binary files differ) ..binary? Let me guess: your editor still adds that BOM automatically to all files you open? :D No, it has to be set in the svn repo directly, afaik Gwynne is on it. I've now made five or six attempts to fix this, all of which obviously missed at least some affected files. Everyone who runs accross a file with this problem, please execute: svn propdel svn:mime-type path to affected file Before you commit if possible, or afterwards and re-commit otherwise. -- Gwynne -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] Commit freeze is officially over
As of right now, I'm declaring SVN open to full time use. Commit away, everyone! There are still a number of issues to resolve, but development's been held up too long. We'll fix the issues as we go. Some known issues: - Rsync is still down. Derick's working on this. - SVN access over HTTP is slow. We're looking into making svnserve available. - phpdoc is more or less completely broken. Ahem, Philip and Hannes. - gd was imported incorrectly. I'm looking into fixing this, but it may require taking the repo down for a few hours at some point. - There's no svnsync to replace CVSup yet. I'm also looking into that. - Several of the PHP boxes are still seeing cronjob failures. Pierre's working on that. - There's no announcement on the PHP front page about the move. I'll poke someone to do something about that. Any other issues, please bring them to my attention. Preferably via email, not IRC :). -- Gwynne -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] [PATCH] Bug #47481
This bug only exists in PHP 5.x. The unicode support in PHP 6 takes care of it already, but I added a PHP 6 version of the test case as well. -- Herman Radtke hermanrad...@gmail.com | http://hermanradtke.com diff --git a/ext/standard/strnatcmp.c b/ext/standard/strnatcmp.c index 2459e46..366c124 100644 --- a/ext/standard/strnatcmp.c +++ b/ext/standard/strnatcmp.c @@ -101,7 +101,7 @@ compare_left(char const **a, char const *aend, char const **b, char const *bend) */ PHPAPI int strnatcmp_ex(char const *a, size_t a_len, char const *b, size_t b_len, int fold_case) { - char ca, cb; + unsigned char ca, cb; char const *ap, *bp; char const *aend = a + a_len, *bend = b + b_len; --TEST-- Bug #47481 (natcasesort() does not sort extended ASCII characters correctly) --FILE-- ?php /* Prototype : bool natcasesort(array $array_arg) * Description: Sort an array using case-insensitive natural sort * Source code: ext/standard/array.c */ /* * Test natcasesort() with extended ASCII characters */ $array = array ('Süden', 'spielen','Sonne','Wind','Regen','Meer'); echo \n-- Before sorting: --\n; var_dump($array); echo \n-- After Sorting: --\n; var_dump(natcasesort($array)); var_dump($array); echo Done; ? --EXPECTF-- -- Before sorting: -- array(6) { [0]= string(6) Süden [1]= string(7) spielen [2]= string(5) Sonne [3]= string(4) Wind [4]= string(5) Regen [5]= string(4) Meer } -- After Sorting: -- bool(true) array(6) { [5]= string(4) Meer [4]= string(5) Regen [2]= string(5) Sonne [1]= string(7) spielen [0]= string(6) Süden [3]= string(4) Wind } Done --TEST-- Bug #47481 (natcasesort() does not sort extended ASCII characters correctly) --FILE-- ?php /* Prototype : bool natcasesort(array $array_arg) * Description: Sort an array using case-insensitive natural sort * Source code: ext/standard/array.c */ /* * Test natcasesort() with extended ASCII characters */ $array = array ('Süden', 'spielen','Sonne','Wind','Regen','Meer'); echo \n-- Before sorting: --\n; var_dump($array); echo \n-- After Sorting: --\n; var_dump(natcasesort($array)); var_dump($array); echo Done; ? --EXPECTF-- -- Before sorting: -- array(6) { [0]= unicode(5) Süden [1]= unicode(7) spielen [2]= unicode(5) Sonne [3]= unicode(4) Wind [4]= unicode(5) Regen [5]= unicode(4) Meer } -- After Sorting: -- bool(true) array(6) { [5]= unicode(4) Meer [4]= unicode(5) Regen [2]= unicode(5) Sonne [1]= unicode(7) spielen [0]= unicode(5) Süden [3]= unicode(4) Wind } Done -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php