Re: [PHP-DEV] fopen_wrappers.c DOCUMENT_ROOT .htaccess error
Quoting dan...@zoltak.com: Quoting dan...@zoltak.com: Quoting Scott MacVicar : Ideally both should be performed to ensure the error_log path is within the open_base. In the function OnUpdateErrorLog in main.c is there anyway to obtain the HTTP_HOST or SERVER_NAME variable or ideally the DOCUMENT_ROOT. I have tried using getenv() and sapi_getenv() without success. Are there any other methods? It appears there was a bug in PHP prior to 5.2.7 where PG(open_base_dir) had not been initialised in the OnUpdateErrorLog therefore the php_check_open_basedir() function was never being called if a custom error_log was specified in the .htaccess. So in fact the custom code we had should have never worked when the .htaccess had an error_log defined. I have now reworked our patch to perform some extra validation in our environment so this scenario works. Thanks to everyone that attempted to steer me in the right direction :) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] mysqlnd as a shared extension ?
Well, if you're doing speed comparisons why not just compile both mysqlnd and mysql(i) as static? ;-) On 8/18/09, Remi Collet wrote: > Hi, > > Building 5.3.1 snapshot with options > --with-mysql=shared,mysqlnd > --with-mysqli=shared,mysqlnd > --with-pdo-mysql=shared,mysqlnd > > create 3 .so files, ok. > But mysqlnd extension still build as static within php core. > > Is it a way to build mysqlnd as a shared extension ? > > Don't find any option and .m4 file set this extension as static > (changing this result in a .so which cannot be load) > > My goal will be to provides both solutions (libmysql and mysqlnd) to be > able to quickly switch from one to the other (for tests / benchmark) > > Any idea / solution ? > > Regards. > > P.S. main question is probably, should we use mysqlnd under linux ? > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > -- -- Tjerk -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Re: [PHP] "PHP 6 and MySQL 5 for Dynamic Web Sites" Book
On Thu, August 6, 2009 10:59 am, Lester Caine wrote: > I suspect in 2007/8 Larry thought that PHP6 was actually going to be > released > some time soon, rather than inventing a new roadblock with PHP5.3 - > which is > what the book now needs re-writing to support? At least one of these PHP 6 books has been noticed and rectified: The publisher has stepped up and taken responsibility and apologized for this book's obvious mis-timed release: http://blog.astrumfutura.com/archives/404-Wrox-Press-Respond-to-The-Art-Of-Deception-Or-Publishing-PHP6-Books.html Perhaps some core PHP Devs can "push" their contacts at other publishers to do likewise. -- Some people ask for gifts here. I just want you to buy an Indie CD for yourself: http://cdbaby.com/search/from/lynch -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Design of the Zend Engine's Instruction Set
On Sun, August 16, 2009 11:24 am, Paul Biggar wrote: > Hi Stefan, > > On Sat, Aug 15, 2009 at 8:52 PM, Stefan Marr > wrote: >> Sometimes, it would be really interesting to know >> where some of the used ideas are coming from >> and what the reasoning was. I tend to think that its rather unlikely >> that >> they >> are pulled out of thin air. Some parts of the model remind me of >> CISC >> instruction >> sets... 3-address form, register-memory model... > > I think they are pulled out of thin air. At some point, it was asked what was the "original" of this model. I'd have to hazard the guess that it was Ze'ev and Andi's model in PHP 3 and then re-worked (possibly completely) in PHP 4 that supplanted Rasmus' hack-y version. Considering they did it for a college project and had no intention of it actually replacing the PHP engine at the time, it has held up pretty well :-) -- Some people ask for gifts here. I just want you to buy an Indie CD for yourself: http://cdbaby.com/search/from/lynch -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] mysqlnd as a shared extension ?
Remi Collet schrieb: My goal will be to provides both solutions (libmysql and mysqlnd) to be able to quickly switch from one to the other (for tests / benchmark) Any idea / solution ? Andrey might have. CC'ing him. P.S. main question is probably, should we use mysqlnd under linux ? Depends who you ask. If you ask me, go for it. If you don't, it remains "untested" forever. "untested"? Well not really. We never had that many tests before. Ulf -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Re: SOAP_MARSHAL_DATETIME (or: bug #44383)
On Tue, 2009-08-11 at 14:05 +0400, Dmitry Stogov wrote: > > We can also just export them... Which symbols are they? > > > > Probably it make sense for the future release. php6? I think it's quite useful to export timelib as time manipulation is quite often needed. In the past we sometimes added new APIs to bug fix releases .. while I won't advise doing that .. which APIs should be exported to have proper support? johannes -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] mysqlnd as a shared extension ?
On 08/17/2009 08:12 PM, Remi Collet wrote: Hi, Building 5.3.1 snapshot with options --with-mysql=shared,mysqlnd --with-mysqli=shared,mysqlnd --with-pdo-mysql=shared,mysqlnd create 3 .so files, ok. But mysqlnd extension still build as static within php core. It's not an extension. Is it a way to build mysqlnd as a shared extension ? No, it's not an extension. Don't find any option and .m4 file set this extension as static (changing this result in a .so which cannot be load) My goal will be to provides both solutions (libmysql and mysqlnd) to be able to quickly switch from one to the other (for tests / benchmark) Not possible. Any idea / solution ? No idea or solutions. P.S. main question is probably, should we use mysqlnd under linux ? If you want to use experimental stuff then yes. Otherwise not. --Jani -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] mysqlnd as a shared extension ?
Hi, Building 5.3.1 snapshot with options --with-mysql=shared,mysqlnd --with-mysqli=shared,mysqlnd --with-pdo-mysql=shared,mysqlnd create 3 .so files, ok. But mysqlnd extension still build as static within php core. Is it a way to build mysqlnd as a shared extension ? Don't find any option and .m4 file set this extension as static (changing this result in a .so which cannot be load) My goal will be to provides both solutions (libmysql and mysqlnd) to be able to quickly switch from one to the other (for tests / benchmark) Any idea / solution ? Regards. P.S. main question is probably, should we use mysqlnd under linux ? -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DEV] Design of the Zend Engine's Instruction Set
Lothar Scholz wrote: > Hello Stanislav, > > Monday, August 17, 2009, 9:46:19 AM, you wrote: > > SM> Hi! > >>> A buggy implementation should solve as reference? Damn'd fucking >>> college boys. This was an acceptable development method for PHP3. > > SM> So, you came to PHP developers list to call people names and whine about > SM> how the thing mostly done by volunteers and used by millions sucks? > > If they are doing bad - yes i do. I have to say i give a fuck about > volunteers trolldon't feed it -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-DEV] PHP 6 Bug Summary Report
PHP 6 Bug Database summary - http://bugs.php.net/ Num Status Summary (90 total -- which includes 41 feature requests) ===[*Compile Issues]== 49270 Open configure fails if PHP source folder path contains spaces ===[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 ===[Documentation problem] 49126 Open unicode_set_error_handler undocumented ===[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]=== 34992 Assigned imageconvolution does not respect alpha 43899 Assigned Problem in displaying right to left connected languages (like persian, arabic) ===[HTTP related]= 49273 Open setcookie() segfaults the php process when adding a positive expires value ===[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 ===[Performance problem]== 42528 Open Out of "char"(8-bit) range value doesn't roll back, with uni-code ON. ===[PostgreSQL related]=== 48265 Open Source and result of database have different encodings. ===[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]= 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 ===[SPL related]== 47987 Assigned Autoload stops working if E_DEPRECATED occurs ===[Streams related]== 49200 Open stream bindto context generates an error ===[Strings related]==
Re: [PHP-DEV] Design of the Zend Engine's Instruction Set
Pierre Joye wrote: On Mon, Aug 17, 2009 at 7:40 AM, Lothar Scholz wrote: Hello Stanislav, Monday, August 17, 2009, 9:46:19 AM, you wrote: SM> Hi! A buggy implementation should solve as reference? Damn'd fucking college boys. This was an acceptable development method for PHP3. SM> So, you came to PHP developers list to call people names and whine about SM> how the thing mostly done by volunteers and used by millions sucks? If they are doing bad - yes i do. I have to say i give a fuck about volunteers - most of them should go to hell because most of them are worse to projects and they should/would go better without them and with a strict core team. If you base a project only on volunteers its just digital environment pollution - and you should be punished for putting it out. I would suggest to fix your language too. You may also read about open source software developments, how it works, where it came from, etc. It could help you to do not pollute our list with pointless (and respectless) mails. Something that we can agree on Pierre! I much prefer working with 'volunteers' that '9to5 clock watchers' ... -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk// Firebird - http://www.firebirdsql.org/index.php -- 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 (1483 total -- which includes 913 feature requests) ===[*General Issues]== 48597 Open Unclosed array keys break space escaping in $_GET/POST/REQUEST 48778 Feedback Files on NTFS Mounted Volumes (Junctions) inaccessible ===[*Network Functions]=== 48167 To be documented undefined function checkdnsrr() ===[*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 45945 Open Apache byterange output filter nullified if mod_php5 output > 8000 bytes 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 49106 Open PHP incorrectly sets no_local_copy=1 on response as Apache 2 module 49224 Open Segmentation fault ===[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 48831 Assigned php -i has different output to php --ini 49039 Feedback Can't pass file name with subfolder name 3 characters or less 49040 Feedback GPF when passing non-absolute file name ===[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 49143 Open is_callable() and unnecessary backslash ===[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 Problem with Variant/Parameters 43838 Open variant_set with IE leads to hang 43897 Open $ie not cleared on IE quit 44256 Open Pb with COM in PHP5 44578 Open Strange Behavio
Re: [PHP-DEV] Design of the Zend Engine's Instruction Set
On Mon, Aug 17, 2009 at 12:40:54PM +0700, Lothar Scholz wrote: > Hello Stanislav, > > Monday, August 17, 2009, 9:46:19 AM, you wrote: > > SM> Hi! > > >> A buggy implementation should solve as reference? Damn'd fucking > >> college boys. This was an acceptable development method for PHP3. Language like that is really going to get your comments listened to -- not! > SM> So, you came to PHP developers list to call people names and whine about > SM> how the thing mostly done by volunteers and used by millions sucks? > > If they are doing bad - yes i do. I have to say i give a fuck about > volunteers - most of them should go to hell because most of them are > worse to projects and they should/would go better without them and > with a strict core team. If you base a project only on volunteers its > just digital environment pollution - and you should be punished for > putting it out. > > If your company is not able to finance a solid - even pretty small team > - of a skilled persons who work on the core it's a huge problem for PHP. If you don't like it you can: a) either walk away from PHP & go to use Java/.Net/... b) try to fix the problems. 1) work with the existing PHP team, fix what you see as issues 2) fork the project, attract a bunch of good developers on the basis of the strength of your ideas and your charisma Yes: PHP has got problems, but it does seem to have much more that is right than is wrong. PHP documentation is good when compared to many FLOSS projects; I do agree that some parts of the language description/definition are a bit fuzzy. The language has inconsistencies: everyone agrees that, but it has evolved into something that Rasmus would not have believed when he first started. Oh: which of the actions above is more likely to produce good results for everyone: b1. > Well i'm not a fan of all this free open source as it shows that it is > a total enemy against progress in the IT and slows down development > enourmously I don't have a problem in you believing that. Now: off you go and pay all your MS license fees and marvel as to how secure it is and how quickly and openly they address bugs. We will still accept you back when you become disillusioned. Regards -- Alain Williams Linux/GNU Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer. +44 (0) 787 668 0256 http://www.phcomp.co.uk/ Parliament Hill Computers Ltd. Registration Information: http://www.phcomp.co.uk/contact.php Past chairman of UKUUG: http://www.ukuug.org/ #include -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re[2]: [PHP-DEV] Design of the Zend Engine's Instruction Set
On Mon, Aug 17, 2009 at 7:40 AM, Lothar Scholz wrote: > Hello Stanislav, > > Monday, August 17, 2009, 9:46:19 AM, you wrote: > > SM> Hi! > >>> A buggy implementation should solve as reference? Damn'd fucking >>> college boys. This was an acceptable development method for PHP3. > > SM> So, you came to PHP developers list to call people names and whine about > SM> how the thing mostly done by volunteers and used by millions sucks? > > If they are doing bad - yes i do. I have to say i give a fuck about > volunteers - most of them should go to hell because most of them are > worse to projects and they should/would go better without them and > with a strict core team. If you base a project only on volunteers its > just digital environment pollution - and you should be punished for > putting it out. I would suggest to fix your language too. You may also read about open source software developments, how it works, where it came from, etc. It could help you to do not pollute our list with pointless (and respectless) mails. Thanks. Cheers, -- Pierre http://blog.thepimp.net | http://www.libgd.org -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php